Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001398/0.001398, allocations: 105.1 kB / 21.22 MB, free: 0.6289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001437/0.001437, allocations: 211.8 kB / 24.51 MB, free: 3.914 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.463/1.463, allocations: 230.6 MB / 258.3 MB, free: 7.75 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2389/0.2389, allocations: 46.96 MB / 361.7 MB, free: 4.016 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Utilities.TestWriteFile,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Utilities_TestWriteFile",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestWriteFile,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Utilities_TestWriteFile",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00207/0.00207, allocations: 71.89 kB / 0.4969 GB, free: 7.719 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3036/0.3057, allocations: 66.03 MB / 0.5613 GB, free: 4.211 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001676/0.3073, allocations: 481 kB / 0.5618 GB, free: 3.738 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006128/0.308, allocations: 225.7 kB / 0.562 GB, free: 3.52 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.882e-05/0.308, allocations: 0 / 0.562 GB, free: 3.52 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.631e-05/0.308, allocations: 4 kB / 0.562 GB, free: 3.516 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.949e-06/0.308, allocations: 0 / 0.562 GB, free: 3.516 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Utilities.mo:289:3-320:16:writable] Warning: Pure function 'ModelicaTest.Utilities.WriteFile' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0002787/0.3083, allocations: 43.83 kB / 0.5621 GB, free: 3.473 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.141e-05/0.3083, allocations: 8 kB / 0.5621 GB, free: 3.465 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.67e-05/0.3084, allocations: 0 / 0.5621 GB, free: 3.465 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.323e-05/0.3084, allocations: 0 / 0.5621 GB, free: 3.465 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.046e-05/0.3084, allocations: 0 / 0.5621 GB, free: 3.465 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.678e-06/0.3084, allocations: 4 kB / 0.5621 GB, free: 3.461 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000135/0.3085, allocations: 47.95 kB / 0.5621 GB, free: 3.414 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.065e-05/0.3085, allocations: 3.984 kB / 0.5621 GB, free: 3.41 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.931e-05/0.3086, allocations: 0 / 0.5621 GB, free: 3.41 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001281/0.3087, allocations: 55.67 kB / 0.5622 GB, free: 3.359 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.3087, allocations: 3.938 kB / 0.5622 GB, free: 3.355 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.3087, allocations: 0 / 0.5622 GB, free: 3.355 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.318e-06/0.3087, allocations: 3.938 kB / 0.5622 GB, free: 3.352 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003291/0.309, allocations: 278 kB / 0.5624 GB, free: 3.043 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.994e-05/0.3091, allocations: 12.03 kB / 0.5625 GB, free: 3.031 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.183e-05/0.3091, allocations: 192 / 0.5625 GB, free: 3.031 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.457e-05/0.3091, allocations: 30.75 kB / 0.5625 GB, free: 2.992 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.261e-05/0.3091, allocations: 0.9375 kB / 0.5625 GB, free: 2.992 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.773e-05/0.3092, allocations: 102.5 kB / 0.5626 GB, free: 2.867 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.301e-06/0.3092, allocations: 4.375 kB / 0.5626 GB, free: 2.863 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.937e-06/0.3092, allocations: 4.375 kB / 0.5626 GB, free: 2.859 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.881e-05/0.3093, allocations: 59.72 kB / 0.5626 GB, free: 2.789 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.855e-06/0.3093, allocations: 0 / 0.5626 GB, free: 2.789 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.202e-06/0.3094, allocations: 0 / 0.5626 GB, free: 2.789 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.221e-06/0.3094, allocations: 3.984 kB / 0.5627 GB, free: 2.785 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.732e-05/0.3094, allocations: 33.64 kB / 0.5627 GB, free: 2.746 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001373/0.3095, allocations: 116.8 kB / 0.5628 GB, free: 2.59 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.219e-05/0.3096, allocations: 40.28 kB / 0.5628 GB, free: 2.535 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.016e-05/0.3096, allocations: 34.66 kB / 0.5629 GB, free: 2.492 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.388e-06/0.3096, allocations: 0 / 0.5629 GB, free: 2.492 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.565e-05/0.3097, allocations: 72.19 kB / 0.5629 GB, free: 2.406 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.82e-07/0.3097, allocations: 0 / 0.5629 GB, free: 2.406 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001957/0.3099, allocations: 114.8 kB / 0.563 GB, free: 2.27 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.524e-05/0.3099, allocations: 81.11 kB / 0.5631 GB, free: 2.172 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.31e-05/0.31, allocations: 101.8 kB / 0.5632 GB, free: 2.062 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.364e-05/0.31, allocations: 25.7 kB / 0.5632 GB, free: 2.031 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.797e-05/0.31, allocations: 80.14 kB / 0.5633 GB, free: 1.949 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.873e-05/0.3101, allocations: 0 / 0.5633 GB, free: 1.949 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.898e-05/0.3101, allocations: 13.72 kB / 0.5633 GB, free: 1.93 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001335/0.3102, allocations: 314.8 kB / 0.5636 GB, free: 1.613 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.275e-05/0.3102, allocations: 29.83 kB / 0.5637 GB, free: 1.578 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.907e-05/0.3103, allocations: 29.7 kB / 0.5637 GB, free: 1.543 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.865e-05/0.3103, allocations: 64.27 kB / 0.5638 GB, free: 1.465 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.3103, allocations: 0 / 0.5638 GB, free: 1.465 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.028e-05/0.3104, allocations: 93.03 kB / 0.5638 GB, free: 1.355 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.742e-05/0.3105, allocations: 33.64 kB / 0.5639 GB, free: 1.316 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.548e-06/0.3105, allocations: 0 / 0.5639 GB, free: 1.316 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.435e-05/0.3105, allocations: 0 / 0.5639 GB, free: 1.316 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.926e-06/0.3105, allocations: 4 kB / 0.5639 GB, free: 1.312 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.252e-06/0.3105, allocations: 8.078 kB / 0.5639 GB, free: 1.305 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.753e-05/0.3105, allocations: 4 kB / 0.5639 GB, free: 1.301 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.486e-06/0.3105, allocations: 7.922 kB / 0.5639 GB, free: 1.293 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.394e-05/0.3106, allocations: 135.5 kB / 0.564 GB, free: 1.145 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.738e-06/0.3106, allocations: 7.938 kB / 0.564 GB, free: 1.137 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.052e-05/0.3106, allocations: 3 kB / 0.564 GB, free: 1.133 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.3106, allocations: 0 / 0.564 GB, free: 1.133 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.3106, allocations: 0 / 0.564 GB, free: 1.133 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.743e-06/0.3106, allocations: 0 / 0.564 GB, free: 1.133 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.732e-05/0.3107, allocations: 120.8 kB / 0.5642 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.3107, allocations: 4 kB / 0.5642 GB, free: 0.9688 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.11e-07/0.3107, allocations: 0 / 0.5642 GB, free: 0.9688 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.3107, allocations: 3.938 kB / 0.5642 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.913e-06/0.3107, allocations: 0 / 0.5642 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.3107, allocations: 0 / 0.5642 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.3107, allocations: 0 / 0.5642 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001267/0.3109, allocations: 128.4 kB / 0.5643 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.659e-06/0.3109, allocations: 4 kB / 0.5643 GB, free: 0.8047 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.259e-05/0.3109, allocations: 3.938 kB / 0.5643 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.355e-06/0.3109, allocations: 0 / 0.5643 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.227e-06/0.3109, allocations: 0 / 0.5643 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.789e-06/0.3109, allocations: 8.031 kB / 0.5643 GB, free: 0.793 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.539e-05/0.3109, allocations: 79.28 kB / 0.5644 GB, free: 0.7148 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3109, allocations: 0 / 0.5644 GB, free: 0.7148 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002304/0.3112, allocations: 19.92 kB / 0.5644 GB, free: 0.6953 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007834/0.312, allocations: 0.7432 MB / 0.5651 GB, free: 15.94 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001307/0.3121, allocations: 114.8 kB / 0.5652 GB, free: 15.8 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.3121, allocations: 0 / 0.5652 GB, free: 15.8 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.786e-05/0.3121, allocations: 81.11 kB / 0.5653 GB, free: 15.71 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001216/0.3123, allocations: 4 kB / 0.5653 GB, free: 15.7 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003227/0.3126, allocations: 148.5 kB / 0.5654 GB, free: 15.51 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.642e-05/0.3126, allocations: 59.34 kB / 0.5655 GB, free: 15.43 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.571e-06/0.3126, allocations: 0 / 0.5655 GB, free: 15.43 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.365e-05/0.3126, allocations: 7.438 kB / 0.5655 GB, free: 15.43 MB / 414.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3126, allocations: 0 / 0.5655 GB, free: 15.43 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02123/0.3339, allocations: 1.591 MB / 0.5671 GB, free: 13.98 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.49/11.82, allocations: 14.27 kB / 0.5671 GB, free: 13.96 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Utilities_TestWriteFile_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Utilities_TestWriteFile.fmu > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.725866550928913]