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.0009442/0.0009445, allocations: 91.27 kB / 17 MB, free: 6.84 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.001145/0.001145, allocations: 186.7 kB / 17.89 MB, free: 6.055 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.376/1.376, allocations: 223.3 MB / 241.9 MB, free: 14.63 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.202/0.202, allocations: 44.22 MB / 337.2 MB, free: 2.586 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004638/0.0004643, allocations: 8 kB / 409.7 MB, free: 27.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1096, allocations: 61.92 MB / 471.7 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater): time 0.01803/0.1276, allocations: 19.12 MB / 490.8 MB, free: 10.43 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.006413/0.1342, allocations: 4.148 MB / 494.9 MB, free: 6.277 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000862/0.1351, allocations: 27.81 kB / 495 MB, free: 6.25 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007772/0.1359, allocations: 254.4 kB / 495.2 MB, free: 6 MB / 366.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.001863/0.1377, allocations: 0.7926 MB / 496 MB, free: 5.203 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001803/0.1395, allocations: 0.694 MB / 496.7 MB, free: 4.512 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002091/0.1416, allocations: 2.199 MB / 498.9 MB, free: 2.309 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005219/0.1422, allocations: 369.2 kB / 499.2 MB, free: 1.941 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001343/0.1435, allocations: 0.7664 MB / 0.4883 GB, free: 1.172 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007773/0.1443, allocations: 0.6306 MB / 0.4889 GB, free: 0.5391 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.881e-05/0.1444, allocations: 32 kB / 0.4889 GB, free: 0.5078 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006045/0.145, allocations: 203.7 kB / 0.4891 GB, free: 316 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002373/0.1453, allocations: 231.2 kB / 0.4894 GB, free: 84 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000177/0.1455, allocations: 165.4 kB / 0.4895 GB, free: 15.91 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007674/0.1462, allocations: 0.764 MB / 0.4903 GB, free: 15.15 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.1462, allocations: 3.938 kB / 0.4903 GB, free: 15.14 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.976e-06/0.1463, allocations: 4 kB / 0.4903 GB, free: 15.14 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.478e-06/0.1463, allocations: 0 / 0.4903 GB, free: 15.14 MB / 382.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.001779/0.1481, allocations: 0.9232 MB / 0.4912 GB, free: 14.17 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.786e-05/0.1481, allocations: 12.03 kB / 0.4912 GB, free: 14.16 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001316/0.1482, allocations: 102.5 kB / 0.4913 GB, free: 14.05 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002817/0.1485, allocations: 87.06 kB / 0.4914 GB, free: 13.96 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000644/0.1492, allocations: 0.4889 MB / 0.4918 GB, free: 13.43 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.13e-05/0.1493, allocations: 108.3 kB / 0.4919 GB, free: 13.31 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.523e-05/0.1494, allocations: 48 kB / 0.492 GB, free: 13.27 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001073/0.1504, allocations: 0.8182 MB / 0.4928 GB, free: 12.38 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.665e-05/0.1505, allocations: 0 / 0.4928 GB, free: 12.38 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.213e-05/0.1505, allocations: 23.98 kB / 0.4928 GB, free: 12.35 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.359e-05/0.1506, allocations: 44.91 kB / 0.4929 GB, free: 12.3 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009257/0.1515, allocations: 0.64 MB / 0.4935 GB, free: 11.67 MB / 382.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.004008/0.1556, allocations: 4.221 MB / 0.4976 GB, free: 7.152 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007978/0.1564, allocations: 415.9 kB / 0.498 GB, free: 6.738 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002983/0.1567, allocations: 205.4 kB / 0.4982 GB, free: 6.535 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004305/0.1571, allocations: 0.5029 MB / 0.4987 GB, free: 5.922 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.532e-05/0.1571, allocations: 34.89 kB / 0.4987 GB, free: 5.879 MB / 382.1 MB Notification: Performance of pre-optimization done (n=40): time 2.124e-06/0.1572, allocations: 0 / 0.4987 GB, free: 5.879 MB / 382.1 MB Notification: Performance of matching and sorting (n=45): time 0.003244/0.1604, allocations: 1.525 MB / 0.5002 GB, free: 4.301 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.37e-05/0.1605, allocations: 132.5 kB / 0.5003 GB, free: 4.141 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007787/0.1613, allocations: 0.5653 MB / 0.5009 GB, free: 3.566 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.404e-05/0.1614, allocations: 37.7 kB / 0.5009 GB, free: 3.523 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002662/0.1616, allocations: 351 kB / 0.5013 GB, free: 3.176 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001469/0.1618, allocations: 169.7 kB / 0.5014 GB, free: 3.008 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.426e-05/0.1618, allocations: 12 kB / 0.5014 GB, free: 2.996 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000179/0.162, allocations: 374.8 kB / 0.5018 GB, free: 2.621 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003788/0.1624, allocations: 221.9 kB / 0.502 GB, free: 2.406 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005863/0.163, allocations: 0.5123 MB / 0.5025 GB, free: 1.754 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004999/0.1635, allocations: 320.5 kB / 0.5028 GB, free: 1.441 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.239e-06/0.1635, allocations: 4 kB / 0.5028 GB, free: 1.438 MB / 382.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001816/0.1654, allocations: 0.9685 MB / 0.5038 GB, free: 468 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.64e-05/0.1654, allocations: 8 kB / 0.5038 GB, free: 460 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.831e-05/0.1654, allocations: 12 kB / 0.5038 GB, free: 448 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001076/0.1665, allocations: 264.9 kB / 0.504 GB, free: 180 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003943/0.1669, allocations: 135.7 kB / 0.5042 GB, free: 44 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.222/0.3889, allocations: 0.8497 MB / 0.505 GB, free: 27.61 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007599/0.3897, allocations: 46.06 kB / 0.505 GB, free: 27.61 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.519e-05/0.3898, allocations: 36.59 kB / 0.5051 GB, free: 27.61 MB / 382.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.0003807/0.3902, allocations: 247 kB / 0.5053 GB, free: 27.5 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001058/0.3903, allocations: 68.11 kB / 0.5054 GB, free: 27.5 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001359/0.3917, allocations: 0.7181 MB / 0.5061 GB, free: 27.43 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.402e-05/0.3917, allocations: 8.297 kB / 0.5061 GB, free: 27.43 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/0.3917, allocations: 0.8125 kB / 0.5061 GB, free: 27.43 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.396e-06/0.3917, allocations: 7.469 kB / 0.5061 GB, free: 27.43 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002189/0.3939, allocations: 1.393 MB / 0.5074 GB, free: 27.07 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.711e-06/0.394, allocations: 3.969 kB / 0.5074 GB, free: 27.07 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009039/0.3949, allocations: 198.1 kB / 0.5076 GB, free: 27.07 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002695/0.3951, allocations: 62.36 kB / 0.5077 GB, free: 27.06 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.704e-05/0.3952, allocations: 13.33 kB / 0.5077 GB, free: 27.06 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001697/0.3969, allocations: 2.801 MB / 0.5104 GB, free: 24.5 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/0.3969, allocations: 2.375 kB / 0.5104 GB, free: 24.5 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001463/0.3984, allocations: 0.9897 MB / 0.5114 GB, free: 24.3 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002657/0.3987, allocations: 198 kB / 0.5116 GB, free: 24.17 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.412e-05/0.3988, allocations: 17.25 kB / 0.5116 GB, free: 24.17 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003646/0.3991, allocations: 28.05 kB / 0.5116 GB, free: 24.17 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.986e-05/0.3992, allocations: 42.36 kB / 0.5117 GB, free: 24.17 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.809e-05/0.3993, allocations: 22.95 kB / 0.5117 GB, free: 24.17 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005022/0.3998, allocations: 392.7 kB / 0.5121 GB, free: 24.08 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3998, allocations: 0 / 0.5121 GB, free: 24.08 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007843/0.4006, allocations: 209 kB / 0.5123 GB, free: 24.08 MB / 382.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.001865/0.4025, allocations: 1.66 MB / 0.5139 GB, free: 23.31 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001132/0.4036, allocations: 0.5983 MB / 0.5145 GB, free: 23.3 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.4036, allocations: 7.438 kB / 0.5145 GB, free: 23.3 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001035/0.4047, allocations: 496.7 kB / 0.515 GB, free: 23.18 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001422/0.4061, allocations: 330 kB / 0.5153 GB, free: 23.16 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006007/0.4121, allocations: 4.338 MB / 0.5195 GB, free: 21.54 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004058/0.4125, allocations: 0.9388 MB / 0.5204 GB, free: 20.83 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007518/0.4133, allocations: 199.3 kB / 0.5206 GB, free: 20.8 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002802/0.4136, allocations: 231.9 kB / 0.5208 GB, free: 20.79 MB / 382.1 MB Notification: Performance of SimCode: time 8.11e-07/0.4136, allocations: 6.625 kB / 0.5208 GB, free: 20.79 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08753/0.5011, allocations: 20.03 MB / 0.5404 GB, free: 11.09 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001704/0.5014, allocations: 292.3 kB / 0.5407 GB, free: 10.74 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.493/2.995, allocations: 0 / 0.5407 GB, free: 10.74 MB / 382.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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_LinearFluid_LinearColdWater_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_LinearFluid_LinearColdWater.fmu > ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater_res.mat does not exist to compare? outputFormat=mat