Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater") translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00136/0.001361, allocations: 96.77 kB / 17 MB, free: 6.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001784/0.001784, allocations: 184 kB / 17.89 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.527/1.527, allocations: 223.3 MB / 241.9 MB, free: 14.4 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2018/0.2018, allocations: 44.25 MB / 337.3 MB, free: 2.508 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004917/0.0004918, allocations: 11.94 kB / 409.7 MB, free: 27.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1285/0.129, allocations: 61.92 MB / 471.6 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater): time 0.0213/0.1504, allocations: 19.13 MB / 490.7 MB, free: 10.46 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.006502/0.1569, allocations: 4.132 MB / 494.9 MB, free: 6.316 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007316/0.1577, allocations: 23.81 kB / 494.9 MB, free: 6.293 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009025/0.1586, allocations: 250.4 kB / 495.1 MB, free: 6.047 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Sources.mo:784:36-785:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Sources.mo:782:36-783:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.002104/0.1607, allocations: 0.8004 MB / 495.9 MB, free: 5.242 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002188/0.1629, allocations: 0.6842 MB / 496.6 MB, free: 4.562 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002538/0.1655, allocations: 2.195 MB / 498.8 MB, free: 2.363 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007173/0.1662, allocations: 381.2 kB / 499.2 MB, free: 1.984 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001722/0.1679, allocations: 0.7664 MB / 500 MB, free: 1.215 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001012/0.169, allocations: 0.6228 MB / 0.4888 GB, free: 0.5898 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001534/0.1691, allocations: 32 kB / 0.4889 GB, free: 0.5586 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007298/0.1699, allocations: 207.7 kB / 0.4891 GB, free: 364 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003141/0.1702, allocations: 227.3 kB / 0.4893 GB, free: 136 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002959/0.1705, allocations: 165.4 kB / 0.4894 GB, free: 15.96 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009615/0.1715, allocations: 0.7717 MB / 0.4902 GB, free: 15.19 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.1715, allocations: 0 / 0.4902 GB, free: 15.19 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.1715, allocations: 0 / 0.4902 GB, free: 15.19 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.125e-05/0.1715, allocations: 0 / 0.4902 GB, free: 15.19 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 130 * Number of variables: 130 Notification: Performance of Generate backend data structure: time 0.001989/0.1735, allocations: 0.923 MB / 0.4911 GB, free: 14.22 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.085e-05/0.1736, allocations: 20.5 kB / 0.4911 GB, free: 14.2 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004022/0.174, allocations: 91.14 kB / 0.4912 GB, free: 14.11 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009123/0.1749, allocations: 492.6 kB / 0.4917 GB, free: 13.59 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00012/0.175, allocations: 108.3 kB / 0.4918 GB, free: 13.47 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.801e-05/0.1751, allocations: 48 kB / 0.4918 GB, free: 13.42 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00144/0.1766, allocations: 0.8221 MB / 0.4926 GB, free: 12.53 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.076e-05/0.1766, allocations: 0 / 0.4926 GB, free: 12.53 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.11e-05/0.1767, allocations: 24 kB / 0.4927 GB, free: 12.5 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.525e-05/0.1767, allocations: 40.98 kB / 0.4927 GB, free: 12.46 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001055/0.1778, allocations: 0.6438 MB / 0.4933 GB, free: 11.82 MB / 382.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004735/0.1825, allocations: 4.209 MB / 0.4974 GB, free: 7.316 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008609/0.1834, allocations: 426.8 kB / 0.4978 GB, free: 6.898 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003636/0.1838, allocations: 205.4 kB / 0.498 GB, free: 6.695 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004605/0.1843, allocations: 0.4989 MB / 0.4985 GB, free: 6.086 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.297e-05/0.1843, allocations: 46.83 kB / 0.4986 GB, free: 6.031 MB / 382.1 MB Notification: Performance of pre-optimization done (n=40): time 2.695e-06/0.1843, allocations: 0 / 0.4986 GB, free: 6.031 MB / 382.1 MB Notification: Performance of matching and sorting (n=45): time 0.00331/0.1876, allocations: 1.524 MB / 0.5001 GB, free: 4.453 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001046/0.1878, allocations: 136.5 kB / 0.5002 GB, free: 4.289 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008762/0.1887, allocations: 0.5653 MB / 0.5007 GB, free: 3.715 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.632e-05/0.1887, allocations: 33.7 kB / 0.5008 GB, free: 3.676 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000307/0.189, allocations: 358.9 kB / 0.5011 GB, free: 3.32 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001648/0.1892, allocations: 165.7 kB / 0.5013 GB, free: 3.156 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.499e-05/0.1892, allocations: 12 kB / 0.5013 GB, free: 3.145 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000191/0.1894, allocations: 378.8 kB / 0.5016 GB, free: 2.766 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004191/0.1899, allocations: 225.9 kB / 0.5019 GB, free: 2.547 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006288/0.1905, allocations: 0.5123 MB / 0.5024 GB, free: 1.895 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005694/0.1911, allocations: 316.6 kB / 0.5027 GB, free: 1.586 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.626e-06/0.1911, allocations: 7.953 kB / 0.5027 GB, free: 1.578 MB / 382.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001983/0.1931, allocations: 0.9608 MB / 0.5036 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.134e-05/0.1931, allocations: 12.06 kB / 0.5036 GB, free: 0.5938 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.835e-05/0.1932, allocations: 12 kB / 0.5036 GB, free: 0.582 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00108/0.1942, allocations: 264.6 kB / 0.5039 GB, free: 328 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004284/0.1947, allocations: 127.8 kB / 0.504 GB, free: 200 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2278/0.4225, allocations: 0.8511 MB / 0.5048 GB, free: 27.64 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008921/0.4234, allocations: 45.08 kB / 0.5049 GB, free: 27.64 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.159e-05/0.4235, allocations: 36.41 kB / 0.5049 GB, free: 27.64 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 4 (volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (73): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 14} Notification: Performance of prepare postOptimizeDAE: time 0.0003993/0.4239, allocations: 252.5 kB / 0.5052 GB, free: 27.53 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001103/0.424, allocations: 68.11 kB / 0.5052 GB, free: 27.53 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001318/0.4254, allocations: 0.7047 MB / 0.5059 GB, free: 27.46 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.138e-05/0.4254, allocations: 6.578 kB / 0.5059 GB, free: 27.46 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.193e-06/0.4254, allocations: 6.797 kB / 0.5059 GB, free: 27.46 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.568e-06/0.4254, allocations: 4.062 kB / 0.5059 GB, free: 27.46 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002632/0.428, allocations: 1.393 MB / 0.5073 GB, free: 27.1 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.652e-06/0.4281, allocations: 3.25 kB / 0.5073 GB, free: 27.1 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009713/0.429, allocations: 196.3 kB / 0.5075 GB, free: 27.1 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002859/0.4293, allocations: 65.02 kB / 0.5075 GB, free: 27.09 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.181e-05/0.4294, allocations: 14.44 kB / 0.5075 GB, free: 27.09 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001804/0.4312, allocations: 2.792 MB / 0.5103 GB, free: 24.53 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.579e-06/0.4312, allocations: 6.062 kB / 0.5103 GB, free: 24.53 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001437/0.4327, allocations: 0.9923 MB / 0.5112 GB, free: 24.33 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003468/0.433, allocations: 204.4 kB / 0.5114 GB, free: 24.2 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.79e-05/0.4331, allocations: 14.25 kB / 0.5115 GB, free: 24.2 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000382/0.4335, allocations: 26.56 kB / 0.5115 GB, free: 24.2 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001017/0.4336, allocations: 42.52 kB / 0.5115 GB, free: 24.2 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.939e-05/0.4337, allocations: 20.94 kB / 0.5115 GB, free: 24.2 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005461/0.4342, allocations: 391.9 kB / 0.5119 GB, free: 24.11 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.322e-06/0.4342, allocations: 0 / 0.5119 GB, free: 24.11 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008251/0.4351, allocations: 208.2 kB / 0.5121 GB, free: 24.11 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (volume.medium.p,volume.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (47): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004454/0.4355, allocations: 246 kB / 0.5124 GB, free: 24.02 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001111/0.4366, allocations: 0.5943 MB / 0.5129 GB, free: 24.01 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.4367, allocations: 1.375 kB / 0.5129 GB, free: 24.01 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001075/0.4377, allocations: 490.8 kB / 0.5134 GB, free: 23.89 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001507/0.4393, allocations: 336.4 kB / 0.5137 GB, free: 23.89 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002156/0.4414, allocations: 1.655 MB / 0.5153 GB, free: 23.09 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003925/0.4418, allocations: 0.9411 MB / 0.5163 GB, free: 22.38 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007405/0.4426, allocations: 198.3 kB / 0.5164 GB, free: 22.34 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001513/0.4427, allocations: 61.62 kB / 0.5165 GB, free: 22.34 MB / 382.1 MB Notification: Performance of SimCode: time 4.81e-07/0.4427, allocations: 4 kB / 0.5165 GB, free: 22.33 MB / 382.1 MB Notification: Performance of Templates: time 0.0217/0.4644, allocations: 13.49 MB / 0.5297 GB, free: 18.36 MB / 382.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.sim & ./ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/LinearFluid/LinearColdWater/LinearColdWater.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches