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.001095/0.001095, allocations: 108.7 kB / 18.45 MB, free: 4.645 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.0009979/0.000998, allocations: 183.1 kB / 19.38 MB, free: 3.723 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.279/1.279, allocations: 222.9 MB / 243.1 MB, free: 15.09 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.1979/0.1979, allocations: 44.19 MB / 337.4 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001214/0.001214, allocations: 71.83 kB / 471.2 MB, free: 13.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.34/0.3413, allocations: 60.82 MB / 0.5196 GB, free: 3.617 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater): time 0.02027/0.3616, allocations: 20.24 MB / 0.5393 GB, free: 4.227 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.006277/0.3679, allocations: 4.287 MB / 0.5435 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005331/0.3684, allocations: 18.78 kB / 0.5435 GB, free: 0.7344 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008814/0.3693, allocations: 310.2 kB / 0.5438 GB, free: 484 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001836/0.3712, allocations: 0.8515 MB / 0.5447 GB, free: 15.79 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002349/0.3736, allocations: 0.8976 MB / 0.5456 GB, free: 15.11 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.002109/0.3757, allocations: 1.793 MB / 0.5473 GB, free: 14.09 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006076/0.3763, allocations: 468.2 kB / 0.5478 GB, free: 13.79 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001643/0.378, allocations: 0.9309 MB / 0.5487 GB, free: 13.24 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008718/0.3788, allocations: 0.634 MB / 0.5493 GB, free: 12.88 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001218/0.379, allocations: 63.41 kB / 0.5493 GB, free: 12.88 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008124/0.3798, allocations: 304.1 kB / 0.5496 GB, free: 12.76 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003025/0.3801, allocations: 263 kB / 0.5499 GB, free: 12.58 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004263/0.3805, allocations: 396.2 kB / 0.5503 GB, free: 12.33 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00135/0.3819, allocations: 1.08 MB / 0.5513 GB, free: 11.5 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.3819, allocations: 3.938 kB / 0.5513 GB, free: 11.5 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.3819, allocations: 0 / 0.5513 GB, free: 11.5 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.061e-05/0.3819, allocations: 0 / 0.5513 GB, free: 11.5 MB / 414.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.002152/0.3841, allocations: 1.056 MB / 0.5523 GB, free: 10.39 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.407e-05/0.3841, allocations: 8.031 kB / 0.5524 GB, free: 10.39 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003387/0.3845, allocations: 88.08 kB / 0.5524 GB, free: 10.3 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008515/0.3853, allocations: 0.5287 MB / 0.553 GB, free: 9.73 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.92e-05/0.3855, allocations: 105 kB / 0.5531 GB, free: 9.617 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.415e-05/0.3856, allocations: 44.38 kB / 0.5531 GB, free: 9.574 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001204/0.3868, allocations: 0.8291 MB / 0.5539 GB, free: 8.672 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.959e-05/0.3868, allocations: 0 / 0.5539 GB, free: 8.672 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.971e-05/0.3869, allocations: 24 kB / 0.5539 GB, free: 8.648 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.151e-05/0.3869, allocations: 40.98 kB / 0.554 GB, free: 8.605 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001051/0.388, allocations: 0.6477 MB / 0.5546 GB, free: 7.957 MB / 414.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.005282/0.3933, allocations: 4.213 MB / 0.5587 GB, free: 3.453 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009557/0.3943, allocations: 415.6 kB / 0.5591 GB, free: 3.043 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003284/0.3946, allocations: 209.4 kB / 0.5593 GB, free: 2.836 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005163/0.3951, allocations: 0.5029 MB / 0.5598 GB, free: 2.223 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.262e-05/0.3952, allocations: 38.89 kB / 0.5598 GB, free: 2.176 MB / 414.1 MB Notification: Performance of pre-optimization done (n=40): time 1.703e-06/0.3952, allocations: 8 kB / 0.5598 GB, free: 2.168 MB / 414.1 MB Notification: Performance of matching and sorting (n=45): time 0.003134/0.3983, allocations: 1.528 MB / 0.5613 GB, free: 0.582 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.815e-05/0.3984, allocations: 136.5 kB / 0.5615 GB, free: 428 kB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006172/0.399, allocations: 0.5693 MB / 0.562 GB, free: 15.84 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 4.813e-05/0.3991, allocations: 37.7 kB / 0.5621 GB, free: 15.79 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002497/0.3994, allocations: 351 kB / 0.5624 GB, free: 15.45 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001315/0.3995, allocations: 165.7 kB / 0.5626 GB, free: 15.28 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001959/0.3997, allocations: 134.5 kB / 0.5627 GB, free: 15.14 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001584/0.3999, allocations: 382.7 kB / 0.563 GB, free: 14.76 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003768/0.4002, allocations: 225.9 kB / 0.5633 GB, free: 14.54 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005664/0.4008, allocations: 0.5162 MB / 0.5638 GB, free: 13.89 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009641/0.4018, allocations: 0.7796 MB / 0.5645 GB, free: 12.98 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/0.4018, allocations: 4 kB / 0.5645 GB, free: 12.98 MB / 430.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.00168/0.4035, allocations: 0.9375 MB / 0.5654 GB, free: 12.03 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.993e-05/0.4035, allocations: 8 kB / 0.5655 GB, free: 12.02 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.182e-05/0.4035, allocations: 12.16 kB / 0.5655 GB, free: 12.01 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001101/0.4046, allocations: 264.7 kB / 0.5657 GB, free: 11.75 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000402/0.4051, allocations: 131.8 kB / 0.5658 GB, free: 11.62 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009152/0.406, allocations: 0.86 MB / 0.5667 GB, free: 10.74 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004232/0.4064, allocations: 35.98 kB / 0.5667 GB, free: 10.7 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.333e-05/0.4065, allocations: 32 kB / 0.5668 GB, free: 10.67 MB / 430.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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,14)} Notification: Performance of prepare postOptimizeDAE: time 0.0003066/0.4068, allocations: 245.5 kB / 0.567 GB, free: 10.42 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001115/0.4069, allocations: 71.09 kB / 0.5671 GB, free: 10.35 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001368/0.4083, allocations: 0.7182 MB / 0.5678 GB, free: 9.629 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.169e-05/0.4083, allocations: 8 kB / 0.5678 GB, free: 9.621 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.4083, allocations: 0 / 0.5678 GB, free: 9.621 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.755e-06/0.4083, allocations: 3.984 kB / 0.5678 GB, free: 9.617 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002053/0.4104, allocations: 1.397 MB / 0.5691 GB, free: 8.141 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.748e-06/0.4104, allocations: 7.938 kB / 0.5691 GB, free: 8.133 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009289/0.4114, allocations: 188 kB / 0.5693 GB, free: 7.949 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002348/0.4116, allocations: 64.72 kB / 0.5694 GB, free: 7.883 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.193e-05/0.4116, allocations: 8 kB / 0.5694 GB, free: 7.875 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002358/0.414, allocations: 2.986 MB / 0.5723 GB, free: 4.613 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.16e-06/0.414, allocations: 7.969 kB / 0.5723 GB, free: 4.605 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00148/0.4155, allocations: 1.008 MB / 0.5733 GB, free: 3.551 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002962/0.4158, allocations: 192.2 kB / 0.5735 GB, free: 3.344 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.13e-05/0.4159, allocations: 16 kB / 0.5735 GB, free: 3.328 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003838/0.4163, allocations: 19.98 kB / 0.5735 GB, free: 3.309 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.455e-05/0.4164, allocations: 35.89 kB / 0.5735 GB, free: 3.273 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.162e-05/0.4164, allocations: 19.98 kB / 0.5736 GB, free: 3.254 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004833/0.4169, allocations: 423.1 kB / 0.574 GB, free: 2.84 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4169, allocations: 0 / 0.574 GB, free: 2.84 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0007745/0.4177, allocations: 208 kB / 0.5742 GB, free: 2.637 MB / 430.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 (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004606/0.4182, allocations: 232.5 kB / 0.5744 GB, free: 2.41 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001125/0.4193, allocations: 0.6083 MB / 0.575 GB, free: 1.805 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.4193, allocations: 0.5 kB / 0.575 GB, free: 1.805 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001099/0.4204, allocations: 486.1 kB / 0.5754 GB, free: 1.316 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001506/0.422, allocations: 375.5 kB / 0.5758 GB, free: 0.9609 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00211/0.4241, allocations: 1.428 MB / 0.5772 GB, free: 15.48 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005036/0.4246, allocations: 0.9423 MB / 0.5781 GB, free: 14.51 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001675/0.4248, allocations: 63.44 kB / 0.5782 GB, free: 14.45 MB / 446.1 MB Notification: Performance of SimCode: time 3.11e-07/0.4248, allocations: 4 kB / 0.5782 GB, free: 14.44 MB / 446.1 MB Notification: Performance of Templates: time 0.01962/0.4444, allocations: 15.63 MB / 0.5935 GB, free: 14.91 MB / 462.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/LinearFluid/LinearColdWater/LinearColdWater.csv","/var/lib/jenkins1/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