Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.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.LinearWater_pT,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.LinearWater_pT") translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT,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.LinearWater_pT") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001228/0.001228, allocations: 92.88 kB / 17 MB, free: 6.082 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.002221/0.002221, allocations: 183.3 kB / 17.89 MB, free: 5.66 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.501/1.501, allocations: 223.3 MB / 241.9 MB, free: 348 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1762/0.1762, allocations: 44.25 MB / 337.3 MB, free: 2.801 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003381/0.0003381, allocations: 8 kB / 409.7 MB, free: 27.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1401/0.1404, allocations: 61.94 MB / 471.6 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT): time 0.04625/0.1867, allocations: 41.21 MB / 0.5008 GB, free: 4.379 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006303/0.1931, allocations: 4.243 MB / 0.5049 GB, free: 128 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008819/0.194, allocations: 27.75 kB / 0.505 GB, free: 100 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2491/0.4431, allocations: 243.1 kB / 0.5052 GB, free: 11.97 MB / 382.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.002605/0.4458, allocations: 0.7914 MB / 0.506 GB, free: 11.96 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002253/0.4481, allocations: 0.6838 MB / 0.5066 GB, free: 11.96 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003238/0.4513, allocations: 2.201 MB / 0.5088 GB, free: 11.96 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007704/0.4521, allocations: 369.1 kB / 0.5091 GB, free: 11.94 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1261/0.5782, allocations: 73.51 MB / 0.5809 GB, free: 9.992 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02422/0.6025, allocations: 13.72 MB / 0.5943 GB, free: 13.54 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000249/0.6028, allocations: 36 kB / 0.5944 GB, free: 13.51 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03325/0.6361, allocations: 18.71 MB / 0.6126 GB, free: 12.32 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006216/0.6367, allocations: 226 kB / 0.6129 GB, free: 12.17 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004079/0.6372, allocations: 173.3 kB / 0.613 GB, free: 12.06 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001116/0.6383, allocations: 0.7645 MB / 0.6138 GB, free: 11.4 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.6383, allocations: 0 / 0.6138 GB, free: 11.4 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.6383, allocations: 0 / 0.6138 GB, free: 11.4 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.022e-05/0.6383, allocations: 0 / 0.6138 GB, free: 11.4 MB / 462.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.002017/0.6403, allocations: 0.9367 MB / 0.6147 GB, free: 10.48 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.029e-05/0.6404, allocations: 8.562 kB / 0.6147 GB, free: 10.47 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003192/0.6407, allocations: 87.14 kB / 0.6148 GB, free: 10.38 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006969/0.6414, allocations: 495.2 kB / 0.6152 GB, free: 9.941 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.977e-05/0.6415, allocations: 100.5 kB / 0.6153 GB, free: 9.848 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.88e-05/0.6416, allocations: 52.84 kB / 0.6154 GB, free: 9.816 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001267/0.6429, allocations: 0.8164 MB / 0.6162 GB, free: 9.148 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.147e-05/0.6429, allocations: 11.92 kB / 0.6162 GB, free: 9.137 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.848e-05/0.643, allocations: 21.36 kB / 0.6162 GB, free: 9.133 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.653e-05/0.6431, allocations: 36.73 kB / 0.6163 GB, free: 9.102 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001049/0.6441, allocations: 0.6431 MB / 0.6169 GB, free: 8.664 MB / 462.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.004768/0.6489, allocations: 4.218 MB / 0.621 GB, free: 4.75 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000856/0.6498, allocations: 414.1 kB / 0.6214 GB, free: 4.477 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003244/0.6501, allocations: 205.5 kB / 0.6216 GB, free: 4.352 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005406/0.6507, allocations: 0.502 MB / 0.6221 GB, free: 3.75 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.64e-05/0.6507, allocations: 46.34 kB / 0.6221 GB, free: 3.699 MB / 462.1 MB Notification: Performance of pre-optimization done (n=40): time 2.826e-06/0.6508, allocations: 0 / 0.6221 GB, free: 3.699 MB / 462.1 MB Notification: Performance of matching and sorting (n=45): time 0.003145/0.6539, allocations: 1.52 MB / 0.6236 GB, free: 2.535 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.868e-05/0.654, allocations: 132.5 kB / 0.6237 GB, free: 2.375 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007341/0.6547, allocations: 0.5698 MB / 0.6243 GB, free: 1.922 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001016/0.6548, allocations: 31.77 kB / 0.6243 GB, free: 1.891 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002665/0.6551, allocations: 355.8 kB / 0.6247 GB, free: 1.609 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001297/0.6552, allocations: 169.3 kB / 0.6248 GB, free: 1.445 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.302e-05/0.6553, allocations: 12 kB / 0.6248 GB, free: 1.434 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000181/0.6555, allocations: 380.8 kB / 0.6252 GB, free: 1.055 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003782/0.6559, allocations: 225.8 kB / 0.6254 GB, free: 0.8359 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00057/0.6564, allocations: 0.5162 MB / 0.6259 GB, free: 188 kB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004998/0.6569, allocations: 316.6 kB / 0.6262 GB, free: 15.88 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.11e-06/0.657, allocations: 0 / 0.6262 GB, free: 15.88 MB / 478.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001899/0.6589, allocations: 0.966 MB / 0.6272 GB, free: 14.9 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.298e-05/0.6589, allocations: 11.95 kB / 0.6272 GB, free: 14.89 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.408e-05/0.6589, allocations: 11.98 kB / 0.6272 GB, free: 14.88 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001062/0.66, allocations: 267.5 kB / 0.6274 GB, free: 14.62 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004151/0.6604, allocations: 123.8 kB / 0.6276 GB, free: 14.5 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009626/0.6614, allocations: 0.8667 MB / 0.6284 GB, free: 13.61 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004997/0.6619, allocations: 43.97 kB / 0.6285 GB, free: 13.56 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.203e-05/0.662, allocations: 40.05 kB / 0.6285 GB, free: 13.52 MB / 478.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.0003178/0.6623, allocations: 253.4 kB / 0.6287 GB, free: 13.27 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001094/0.6624, allocations: 66.56 kB / 0.6288 GB, free: 13.2 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001319/0.6638, allocations: 0.7094 MB / 0.6295 GB, free: 12.49 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.349e-05/0.6638, allocations: 4 kB / 0.6295 GB, free: 12.48 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.152e-06/0.6638, allocations: 1.75 kB / 0.6295 GB, free: 12.48 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.394e-06/0.6638, allocations: 7.984 kB / 0.6295 GB, free: 12.48 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002094/0.6659, allocations: 1.403 MB / 0.6309 GB, free: 11 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.518e-06/0.6659, allocations: 0 / 0.6309 GB, free: 11 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009697/0.6669, allocations: 196 kB / 0.6311 GB, free: 10.81 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002868/0.6672, allocations: 60.78 kB / 0.6311 GB, free: 10.75 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.104e-05/0.6672, allocations: 15.98 kB / 0.6311 GB, free: 10.73 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002587/0.6698, allocations: 2.792 MB / 0.6339 GB, free: 7.684 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.709e-06/0.6699, allocations: 0.875 kB / 0.6339 GB, free: 7.684 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001604/0.6715, allocations: 0.9994 MB / 0.6348 GB, free: 6.645 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000294/0.6718, allocations: 200.2 kB / 0.635 GB, free: 6.43 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.744e-05/0.6719, allocations: 13.41 kB / 0.635 GB, free: 6.418 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003834/0.6723, allocations: 23.98 kB / 0.6351 GB, free: 6.395 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.999e-05/0.6724, allocations: 50.42 kB / 0.6351 GB, free: 6.348 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.448e-05/0.6724, allocations: 19.98 kB / 0.6351 GB, free: 6.328 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0005632/0.673, allocations: 394.8 kB / 0.6355 GB, free: 5.945 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.673, allocations: 0 / 0.6355 GB, free: 5.945 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0008516/0.6739, allocations: 203.9 kB / 0.6357 GB, free: 5.746 MB / 478.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.0005439/0.6744, allocations: 243.7 kB / 0.6359 GB, free: 5.523 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.001263/0.6757, allocations: 0.594 MB / 0.6365 GB, free: 4.93 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.363e-06/0.6757, allocations: 4 kB / 0.6365 GB, free: 4.926 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00113/0.6768, allocations: 487.4 kB / 0.637 GB, free: 4.441 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001476/0.6783, allocations: 323.1 kB / 0.6373 GB, free: 4.137 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002466/0.6808, allocations: 1.654 MB / 0.6389 GB, free: 2.445 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005976/0.6814, allocations: 0.9386 MB / 0.6398 GB, free: 1.48 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0007482/0.6822, allocations: 203.6 kB / 0.64 GB, free: 1.289 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001695/0.6824, allocations: 63.42 kB / 0.6401 GB, free: 1.227 MB / 478.1 MB Notification: Performance of SimCode: time 6.61e-07/0.6824, allocations: 0 / 0.6401 GB, free: 1.227 MB / 478.1 MB Notification: Performance of Templates: time 0.02629/0.7087, allocations: 13.48 MB / 0.6532 GB, free: 3.984 MB / 494.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.sim & ./ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/LinearFluid/LinearWater_pT/LinearWater_pT.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches