Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_cpp_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_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009404/0.0009405, allocations: 200.9 kB / 15.8 MB, free: 6.309 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.282/1.282, allocations: 226.6 MB / 243.1 MB, free: 14.3 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008102/0.0008102, allocations: 92.62 kB / 295.1 MB, free: 10.05 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1895/0.1895, allocations: 44.83 MB / 392 MB, free: 9.32 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002787/0.0002789, allocations: 4 kB / 464.7 MB, free: 49.76 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09134/0.09164, allocations: 62.95 MB / 0.5153 GB, free: 2.762 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater): time 0.2059/0.2976, allocations: 19.16 MB / 0.534 GB, free: 488 kB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.006583/0.3043, allocations: 4.137 MB / 0.5381 GB, free: 13.54 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009578/0.3052, allocations: 22.5 kB / 0.5381 GB, free: 13.53 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001021/0.3063, allocations: 261.5 kB / 0.5384 GB, free: 13.39 MB / 362.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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 trunk/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 trunk/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 trunk/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.002331/0.3086, allocations: 0.7907 MB / 0.5391 GB, free: 12.94 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002201/0.3108, allocations: 0.6922 MB / 0.5398 GB, free: 12.6 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.002659/0.3135, allocations: 2.202 MB / 0.542 GB, free: 11.79 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005515/0.3141, allocations: 378.7 kB / 0.5423 GB, free: 11.67 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001392/0.3155, allocations: 0.7732 MB / 0.5431 GB, free: 11.37 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008253/0.3163, allocations: 0.6232 MB / 0.5437 GB, free: 11.16 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 9.375e-05/0.3164, allocations: 32.03 kB / 0.5437 GB, free: 11.16 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006588/0.3171, allocations: 208.3 kB / 0.5439 GB, free: 11.11 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002258/0.3173, allocations: 230.6 kB / 0.5441 GB, free: 10.95 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001485/0.3175, allocations: 160 kB / 0.5443 GB, free: 10.87 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007614/0.3183, allocations: 0.7815 MB / 0.545 GB, free: 10.34 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.3183, allocations: 0 / 0.545 GB, free: 10.34 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.262e-06/0.3183, allocations: 0 / 0.545 GB, free: 10.34 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.217e-05/0.3183, allocations: 1.406 kB / 0.545 GB, free: 10.34 MB / 362.7 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.001764/0.3201, allocations: 0.9243 MB / 0.546 GB, free: 9.609 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.098e-05/0.3201, allocations: 9.875 kB / 0.546 GB, free: 9.609 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002963/0.3204, allocations: 91.06 kB / 0.546 GB, free: 9.566 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000688/0.3211, allocations: 494.9 kB / 0.5465 GB, free: 9.152 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.57e-05/0.3212, allocations: 104.7 kB / 0.5466 GB, free: 9.066 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.983e-05/0.3213, allocations: 51.58 kB / 0.5467 GB, free: 9.047 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001173/0.3225, allocations: 0.8188 MB / 0.5475 GB, free: 8.457 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.745e-05/0.3225, allocations: 1.031 kB / 0.5475 GB, free: 8.457 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.689e-05/0.3226, allocations: 27.86 kB / 0.5475 GB, free: 8.438 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.851e-05/0.3226, allocations: 41.5 kB / 0.5475 GB, free: 8.422 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001008/0.3236, allocations: 0.6474 MB / 0.5482 GB, free: 8.098 MB / 362.7 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.004441/0.3281, allocations: 4.205 MB / 0.5523 GB, free: 4.273 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008182/0.3289, allocations: 424.5 kB / 0.5527 GB, free: 4.047 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003277/0.3293, allocations: 206 kB / 0.5529 GB, free: 3.941 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004517/0.3297, allocations: 0.502 MB / 0.5534 GB, free: 3.355 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.885e-05/0.3298, allocations: 46.53 kB / 0.5534 GB, free: 3.305 MB / 362.7 MB Notification: Performance of pre-optimization done (n=40): time 2.164e-06/0.3298, allocations: 0 / 0.5534 GB, free: 3.305 MB / 362.7 MB Notification: Performance of matching and sorting (n=45): time 0.003047/0.3328, allocations: 1.517 MB / 0.5549 GB, free: 2.352 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.553e-05/0.3329, allocations: 137.6 kB / 0.555 GB, free: 2.191 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006606/0.3336, allocations: 0.5633 MB / 0.5556 GB, free: 1.855 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.17e-05/0.3336, allocations: 32.02 kB / 0.5556 GB, free: 1.82 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002337/0.3339, allocations: 361.7 kB / 0.5559 GB, free: 1.5 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001384/0.334, allocations: 162 kB / 0.5561 GB, free: 1.359 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.282e-05/0.3341, allocations: 10.88 kB / 0.5561 GB, free: 1.352 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001547/0.3342, allocations: 378.7 kB / 0.5565 GB, free: 0.9883 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003657/0.3346, allocations: 218.7 kB / 0.5567 GB, free: 0.8828 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005574/0.3352, allocations: 0.5272 MB / 0.5572 GB, free: 368 kB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004534/0.3356, allocations: 307.9 kB / 0.5575 GB, free: 204 kB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.149e-06/0.3356, allocations: 4 kB / 0.5575 GB, free: 204 kB / 362.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001807/0.3374, allocations: 0.9636 MB / 0.5584 GB, free: 15.68 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.49e-05/0.3375, allocations: 14.58 kB / 0.5584 GB, free: 15.67 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.196e-05/0.3375, allocations: 10.19 kB / 0.5585 GB, free: 15.67 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001082/0.3386, allocations: 276 kB / 0.5587 GB, free: 15.55 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004146/0.339, allocations: 126.1 kB / 0.5588 GB, free: 15.52 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008983/0.3399, allocations: 0.8618 MB / 0.5597 GB, free: 14.81 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005063/0.3405, allocations: 47.36 kB / 0.5597 GB, free: 14.79 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.069e-05/0.3405, allocations: 36.88 kB / 0.5598 GB, free: 14.78 MB / 378.7 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.0003151/0.3408, allocations: 252.4 kB / 0.56 GB, free: 14.57 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001051/0.341, allocations: 64.25 kB / 0.5601 GB, free: 14.54 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001308/0.3423, allocations: 0.7202 MB / 0.5608 GB, free: 14.1 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.919e-06/0.3423, allocations: 5 kB / 0.5608 GB, free: 14.1 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.572e-06/0.3423, allocations: 0 / 0.5608 GB, free: 14.1 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.582e-06/0.3423, allocations: 1.188 kB / 0.5608 GB, free: 14.1 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002082/0.3444, allocations: 1.408 MB / 0.5621 GB, free: 12.82 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.892e-06/0.3444, allocations: 8.031 kB / 0.5622 GB, free: 12.81 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008967/0.3453, allocations: 187.8 kB / 0.5623 GB, free: 12.62 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002871/0.3456, allocations: 64.72 kB / 0.5624 GB, free: 12.56 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.911e-05/0.3457, allocations: 19.94 kB / 0.5624 GB, free: 12.54 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002233/0.3479, allocations: 2.783 MB / 0.5651 GB, free: 9.496 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.859e-06/0.3479, allocations: 12.09 kB / 0.5651 GB, free: 9.484 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001428/0.3494, allocations: 0.9878 MB / 0.5661 GB, free: 8.461 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002781/0.3497, allocations: 204.2 kB / 0.5663 GB, free: 8.242 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.111e-05/0.3498, allocations: 15.98 kB / 0.5663 GB, free: 8.227 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004004/0.3502, allocations: 36 kB / 0.5664 GB, free: 8.191 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.923e-05/0.3503, allocations: 31.95 kB / 0.5664 GB, free: 8.16 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.45e-05/0.3503, allocations: 19.98 kB / 0.5664 GB, free: 8.141 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004283/0.3508, allocations: 390.8 kB / 0.5668 GB, free: 7.762 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3508, allocations: 0 / 0.5668 GB, free: 7.762 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007781/0.3515, allocations: 208 kB / 0.567 GB, free: 7.559 MB / 378.7 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.0004688/0.352, allocations: 236.2 kB / 0.5672 GB, free: 7.324 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001091/0.3531, allocations: 0.6046 MB / 0.5678 GB, free: 6.719 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.666e-06/0.3531, allocations: 0 / 0.5678 GB, free: 6.719 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001063/0.3542, allocations: 479.4 kB / 0.5682 GB, free: 6.238 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001562/0.3558, allocations: 336.7 kB / 0.5686 GB, free: 5.922 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002293/0.3581, allocations: 1.691 MB / 0.5702 GB, free: 4.172 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004809/0.3586, allocations: 0.9309 MB / 0.5711 GB, free: 3.215 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001737/0.3588, allocations: 67.42 kB / 0.5712 GB, free: 3.148 MB / 378.7 MB Notification: Performance of SimCode: time 2.5e-07/0.3588, allocations: 4 kB / 0.5712 GB, free: 3.145 MB / 378.7 MB Notification: Performance of Templates: time 0.01991/0.3787, allocations: 15.17 MB / 0.586 GB, free: 4.066 MB / 394.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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","../files/ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches