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.0009921/0.0009921, allocations: 198.2 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.224/1.224, allocations: 226.5 MB / 243.4 MB, free: 6.465 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008035/0.0008033, allocations: 101.9 kB / 295.5 MB, free: 6.684 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2878/0.2878, allocations: 44.83 MB / 392.3 MB, free: 35.69 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002418/0.0002418, allocations: 8 kB / 465.3 MB, free: 12.66 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3305/0.3307, allocations: 62.95 MB / 0.5159 GB, free: 37.19 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater): time 0.01368/0.3445, allocations: 19.23 MB / 0.5347 GB, free: 23.38 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.005099/0.3496, allocations: 4.142 MB / 0.5387 GB, free: 20.43 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008107/0.3505, allocations: 23.34 kB / 0.5387 GB, free: 20.42 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007691/0.3512, allocations: 248.9 kB / 0.539 GB, free: 20.29 MB / 378.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.001895/0.3532, allocations: 0.8438 MB / 0.5398 GB, free: 19.81 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001963/0.3551, allocations: 0.7151 MB / 0.5405 GB, free: 19.47 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.001901/0.357, allocations: 2.209 MB / 0.5426 GB, free: 18.66 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005101/0.3576, allocations: 399 kB / 0.543 GB, free: 18.51 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00153/0.3591, allocations: 0.8147 MB / 0.5438 GB, free: 18.2 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008288/0.3599, allocations: 0.6217 MB / 0.5444 GB, free: 17.98 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 8.81e-05/0.36, allocations: 31.5 kB / 0.5445 GB, free: 17.98 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007971/0.3608, allocations: 259 kB / 0.5447 GB, free: 17.91 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002531/0.3611, allocations: 232.6 kB / 0.5449 GB, free: 17.84 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003694/0.3615, allocations: 372.5 kB / 0.5453 GB, free: 17.64 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009699/0.3625, allocations: 0.7909 MB / 0.5461 GB, free: 17.46 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.3625, allocations: 0 / 0.5461 GB, free: 17.46 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.794e-06/0.3625, allocations: 0 / 0.5461 GB, free: 17.46 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.558e-06/0.3625, allocations: 4 kB / 0.5461 GB, free: 17.46 MB / 378.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.001857/0.3644, allocations: 0.9111 MB / 0.5469 GB, free: 16.82 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.97e-05/0.3644, allocations: 9.828 kB / 0.547 GB, free: 16.82 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003303/0.3647, allocations: 86.84 kB / 0.547 GB, free: 16.79 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007788/0.3655, allocations: 0.5116 MB / 0.5475 GB, free: 16.42 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.986e-05/0.3656, allocations: 100.2 kB / 0.5476 GB, free: 16.34 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.419e-05/0.3657, allocations: 52.64 kB / 0.5477 GB, free: 16.32 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001271/0.367, allocations: 0.814 MB / 0.5485 GB, free: 15.87 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.256e-05/0.367, allocations: 5.375 kB / 0.5485 GB, free: 15.87 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.082e-05/0.3671, allocations: 31.56 kB / 0.5485 GB, free: 15.84 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.225e-05/0.3672, allocations: 38.62 kB / 0.5486 GB, free: 15.84 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00107/0.3683, allocations: 0.6402 MB / 0.5492 GB, free: 15.62 MB / 378.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.004269/0.3725, allocations: 4.228 MB / 0.5533 GB, free: 12.19 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008629/0.3734, allocations: 416.1 kB / 0.5537 GB, free: 12.02 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003217/0.3738, allocations: 209 kB / 0.5539 GB, free: 11.93 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003755/0.3742, allocations: 0.5011 MB / 0.5544 GB, free: 11.36 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.708e-05/0.3742, allocations: 39.77 kB / 0.5544 GB, free: 11.31 MB / 378.7 MB Notification: Performance of pre-optimization done (n=40): time 2.094e-06/0.3742, allocations: 0 / 0.5544 GB, free: 11.31 MB / 378.7 MB Notification: Performance of matching and sorting (n=45): time 0.003206/0.3774, allocations: 1.52 MB / 0.5559 GB, free: 10.5 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.606e-05/0.3775, allocations: 142 kB / 0.556 GB, free: 10.33 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007096/0.3782, allocations: 0.5633 MB / 0.5566 GB, free: 10.08 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.037e-05/0.3782, allocations: 32.45 kB / 0.5566 GB, free: 10.04 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002228/0.3785, allocations: 357.6 kB / 0.557 GB, free: 9.754 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000125/0.3786, allocations: 161.4 kB / 0.5571 GB, free: 9.629 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.387e-05/0.3786, allocations: 14.75 kB / 0.5571 GB, free: 9.617 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000108/0.3788, allocations: 375.9 kB / 0.5575 GB, free: 9.277 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003669/0.3791, allocations: 223.9 kB / 0.5577 GB, free: 9.199 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005262/0.3797, allocations: 0.5244 MB / 0.5582 GB, free: 8.723 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009293/0.3806, allocations: 0.7646 MB / 0.559 GB, free: 8.129 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.841e-06/0.3806, allocations: 3.031 kB / 0.559 GB, free: 8.129 MB / 378.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001926/0.3825, allocations: 0.9649 MB / 0.5599 GB, free: 7.707 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.287e-05/0.3826, allocations: 9 kB / 0.5599 GB, free: 7.707 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.44e-05/0.3826, allocations: 13.06 kB / 0.5599 GB, free: 7.703 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001115/0.3837, allocations: 273 kB / 0.5602 GB, free: 7.578 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004112/0.3841, allocations: 123.5 kB / 0.5603 GB, free: 7.551 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008442/0.385, allocations: 0.8727 MB / 0.5612 GB, free: 6.832 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006105/0.3856, allocations: 35.45 kB / 0.5612 GB, free: 6.82 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.337e-05/0.3857, allocations: 40.95 kB / 0.5612 GB, free: 6.809 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.0003472/0.3861, allocations: 243 kB / 0.5615 GB, free: 6.613 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001007/0.3862, allocations: 63.91 kB / 0.5615 GB, free: 6.582 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001224/0.3874, allocations: 0.7161 MB / 0.5622 GB, free: 6.148 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.314e-05/0.3874, allocations: 8.938 kB / 0.5622 GB, free: 6.145 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.985e-06/0.3874, allocations: 0.9688 kB / 0.5622 GB, free: 6.145 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.655e-06/0.3874, allocations: 3.984 kB / 0.5622 GB, free: 6.141 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002105/0.3896, allocations: 1.401 MB / 0.5636 GB, free: 5.121 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.562e-06/0.3896, allocations: 1.219 kB / 0.5636 GB, free: 5.121 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009845/0.3906, allocations: 202.1 kB / 0.5638 GB, free: 5.062 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002869/0.3909, allocations: 58.5 kB / 0.5639 GB, free: 5.027 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.935e-05/0.3909, allocations: 14 kB / 0.5639 GB, free: 5.02 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00166/0.3926, allocations: 2.794 MB / 0.5666 GB, free: 2.168 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/0.3926, allocations: 5.969 kB / 0.5666 GB, free: 2.164 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001539/0.3942, allocations: 0.9966 MB / 0.5676 GB, free: 1.523 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003716/0.3945, allocations: 206.8 kB / 0.5678 GB, free: 1.336 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.119e-05/0.3946, allocations: 12.69 kB / 0.5678 GB, free: 1.328 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004139/0.3951, allocations: 30.64 kB / 0.5678 GB, free: 1.312 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001025/0.3952, allocations: 35.58 kB / 0.5679 GB, free: 1.293 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.139e-05/0.3952, allocations: 25.89 kB / 0.5679 GB, free: 1.281 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005359/0.3958, allocations: 391 kB / 0.5683 GB, free: 1.055 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3958, allocations: 0 / 0.5683 GB, free: 1.055 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009685/0.3968, allocations: 207.4 kB / 0.5685 GB, free: 1.023 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.0005674/0.3973, allocations: 230.6 kB / 0.5687 GB, free: 0.8672 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001193/0.3985, allocations: 0.6039 MB / 0.5693 GB, free: 0.5781 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.581e-06/0.3986, allocations: 5.469 kB / 0.5693 GB, free: 0.5742 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001058/0.3996, allocations: 469.4 kB / 0.5697 GB, free: 312 kB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001713/0.4013, allocations: 337.8 kB / 0.57 GB, free: 144 kB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002441/0.4038, allocations: 1.701 MB / 0.5717 GB, free: 14.78 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000528/0.4043, allocations: 0.9348 MB / 0.5726 GB, free: 13.82 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002294/0.4046, allocations: 63.42 kB / 0.5727 GB, free: 13.75 MB / 394.7 MB Notification: Performance of SimCode: time 7.51e-07/0.4046, allocations: 0 / 0.5727 GB, free: 13.75 MB / 394.7 MB Notification: Performance of Templates: time 0.02152/0.4261, allocations: 15.16 MB / 0.5875 GB, free: 14.67 MB / 410.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