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: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_LinearFluid_LinearColdWater",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_LinearFluid_LinearColdWater",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001501/0.001501, allocations: 113.8 kB / 17.78 MB, free: 5.277 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.001462/0.001462, allocations: 179.9 kB / 18.71 MB, free: 4.363 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.306/1.306, allocations: 222.9 MB / 242.4 MB, free: 15.08 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.1944/0.1944, allocations: 44.18 MB / 336.8 MB, free: 2.66 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001157/0.001157, allocations: 67.89 kB / 470.1 MB, free: 13.64 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3178/0.319, allocations: 60.81 MB / 0.5184 GB, free: 3.289 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater): time 0.02168/0.3407, allocations: 20.25 MB / 0.5382 GB, free: 4.016 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.005956/0.3467, allocations: 4.283 MB / 0.5424 GB, free: 0.5352 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005941/0.3473, allocations: 19.19 kB / 0.5424 GB, free: 0.5273 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008633/0.3482, allocations: 313.7 kB / 0.5427 GB, free: 268 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001853/0.3501, allocations: 0.8691 MB / 0.5436 GB, free: 15.56 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002426/0.3525, allocations: 0.9018 MB / 0.5444 GB, free: 14.88 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.002652/0.3552, allocations: 1.796 MB / 0.5462 GB, free: 13.87 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007678/0.356, allocations: 460.9 kB / 0.5466 GB, free: 13.57 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00211/0.3581, allocations: 0.9431 MB / 0.5476 GB, free: 13 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001132/0.3593, allocations: 0.6304 MB / 0.5482 GB, free: 12.65 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001189/0.3594, allocations: 58.66 kB / 0.5482 GB, free: 12.65 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009064/0.3603, allocations: 304.6 kB / 0.5485 GB, free: 12.53 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003018/0.3606, allocations: 266.5 kB / 0.5488 GB, free: 12.35 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004712/0.3611, allocations: 393.3 kB / 0.5491 GB, free: 12.11 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001709/0.3628, allocations: 1.091 MB / 0.5502 GB, free: 11.39 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.3628, allocations: 0 / 0.5502 GB, free: 11.39 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.3629, allocations: 1.312 kB / 0.5502 GB, free: 11.39 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.489e-05/0.3629, allocations: 0 / 0.5502 GB, free: 11.39 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.002332/0.3652, allocations: 1.075 MB / 0.5513 GB, free: 10.38 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.005e-05/0.3653, allocations: 8.031 kB / 0.5513 GB, free: 10.37 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001316/0.3654, allocations: 98.69 kB / 0.5514 GB, free: 10.27 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003532/0.3658, allocations: 88.47 kB / 0.5514 GB, free: 10.18 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009054/0.3667, allocations: 0.5447 MB / 0.552 GB, free: 9.594 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.799e-05/0.3668, allocations: 105 kB / 0.5521 GB, free: 9.48 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.118e-05/0.3669, allocations: 56.06 kB / 0.5521 GB, free: 9.426 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001181/0.3681, allocations: 0.8097 MB / 0.5529 GB, free: 8.543 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.146e-05/0.3681, allocations: 4 kB / 0.5529 GB, free: 8.539 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.876e-05/0.3682, allocations: 20 kB / 0.5529 GB, free: 8.52 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.191e-05/0.3682, allocations: 48.92 kB / 0.553 GB, free: 8.469 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009966/0.3692, allocations: 0.64 MB / 0.5536 GB, free: 7.828 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.004712/0.374, allocations: 4.218 MB / 0.5577 GB, free: 3.32 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008742/0.3749, allocations: 418.9 kB / 0.5581 GB, free: 2.906 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003235/0.3752, allocations: 213.4 kB / 0.5583 GB, free: 2.695 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004642/0.3757, allocations: 0.5029 MB / 0.5588 GB, free: 2.082 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.682e-05/0.3757, allocations: 42.89 kB / 0.5589 GB, free: 2.031 MB / 414.1 MB Notification: Performance of pre-optimization done (n=40): time 2.004e-06/0.3757, allocations: 0 / 0.5589 GB, free: 2.031 MB / 414.1 MB Notification: Performance of matching and sorting (n=45): time 0.003137/0.3789, allocations: 1.538 MB / 0.5604 GB, free: 448 kB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.921e-05/0.3789, allocations: 140.5 kB / 0.5605 GB, free: 276 kB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006394/0.3796, allocations: 0.5655 MB / 0.5611 GB, free: 15.69 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 4.621e-05/0.3796, allocations: 33.7 kB / 0.5611 GB, free: 15.65 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002457/0.3799, allocations: 363.9 kB / 0.5614 GB, free: 15.29 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001252/0.38, allocations: 166.6 kB / 0.5616 GB, free: 15.13 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001973/0.3802, allocations: 146.6 kB / 0.5617 GB, free: 14.98 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001528/0.3804, allocations: 374.7 kB / 0.5621 GB, free: 14.61 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003632/0.3808, allocations: 217.9 kB / 0.5623 GB, free: 14.39 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005587/0.3813, allocations: 0.524 MB / 0.5628 GB, free: 13.73 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009733/0.3823, allocations: 0.7757 MB / 0.5636 GB, free: 12.83 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.681e-06/0.3823, allocations: 4 kB / 0.5636 GB, free: 12.83 MB / 430.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001767/0.3841, allocations: 0.9457 MB / 0.5645 GB, free: 11.87 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.147e-05/0.3841, allocations: 15.92 kB / 0.5645 GB, free: 11.86 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.292e-05/0.3842, allocations: 12 kB / 0.5645 GB, free: 11.84 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001091/0.3852, allocations: 264.6 kB / 0.5648 GB, free: 11.58 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004133/0.3857, allocations: 123.8 kB / 0.5649 GB, free: 11.46 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009694/0.3867, allocations: 0.8684 MB / 0.5657 GB, free: 10.57 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005158/0.3872, allocations: 24 kB / 0.5658 GB, free: 10.54 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.032e-05/0.3873, allocations: 47.92 kB / 0.5658 GB, free: 10.5 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.0003346/0.3876, allocations: 233.6 kB / 0.566 GB, free: 10.26 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001192/0.3877, allocations: 71.53 kB / 0.5661 GB, free: 10.19 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001293/0.389, allocations: 0.7218 MB / 0.5668 GB, free: 9.461 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.006e-05/0.389, allocations: 4 kB / 0.5668 GB, free: 9.457 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.953e-06/0.3891, allocations: 0 / 0.5668 GB, free: 9.457 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.705e-06/0.3891, allocations: 3.984 kB / 0.5668 GB, free: 9.453 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002193/0.3913, allocations: 1.401 MB / 0.5682 GB, free: 7.973 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.771e-06/0.3913, allocations: 0 / 0.5682 GB, free: 7.973 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001001/0.3923, allocations: 195.9 kB / 0.5684 GB, free: 7.781 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002499/0.3926, allocations: 52.8 kB / 0.5684 GB, free: 7.727 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.548e-05/0.3926, allocations: 19.98 kB / 0.5684 GB, free: 7.707 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002726/0.3954, allocations: 2.986 MB / 0.5714 GB, free: 4.445 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/0.3954, allocations: 8.094 kB / 0.5714 GB, free: 4.438 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001648/0.397, allocations: 1.005 MB / 0.5723 GB, free: 3.387 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004516/0.3975, allocations: 200.6 kB / 0.5725 GB, free: 3.172 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001633/0.3977, allocations: 8 kB / 0.5725 GB, free: 3.164 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004739/0.3981, allocations: 16 kB / 0.5726 GB, free: 3.148 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001238/0.3983, allocations: 35.95 kB / 0.5726 GB, free: 3.113 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.317e-05/0.3983, allocations: 27.98 kB / 0.5726 GB, free: 3.086 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0006546/0.399, allocations: 427 kB / 0.573 GB, free: 2.668 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.2e-07/0.399, allocations: 0 / 0.573 GB, free: 2.668 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00106/0.4001, allocations: 211.8 kB / 0.5732 GB, free: 2.461 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.002676/0.4028, allocations: 1.674 MB / 0.5749 GB, free: 0.7461 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001322/0.4041, allocations: 0.6044 MB / 0.5755 GB, free: 148 kB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.212e-06/0.4041, allocations: 4 kB / 0.5755 GB, free: 144 kB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00126/0.4054, allocations: 491 kB / 0.5759 GB, free: 15.65 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002021/0.4074, allocations: 379 kB / 0.5763 GB, free: 15.29 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0104/0.4179, allocations: 6.543 MB / 0.5827 GB, free: 8.348 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005768/0.4185, allocations: 0.9424 MB / 0.5836 GB, free: 7.379 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0007214/0.4192, allocations: 201.5 kB / 0.5838 GB, free: 7.191 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003637/0.4196, allocations: 231.4 kB / 0.584 GB, free: 6.965 MB / 446.1 MB Notification: Performance of SimCode: time 7.51e-07/0.4196, allocations: 0 / 0.584 GB, free: 6.965 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05168/0.4713, allocations: 22.14 MB / 0.6056 GB, free: 1.203 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.63/13.1, allocations: 4.188 kB / 0.6056 GB, free: 1.199 MB / 462.1 MB (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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater_res.csv --start-time 0 --stop-time 1.01 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000404 ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_LinearFluid_LinearColdWater.fmu > 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.csv","/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