Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT") translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001298/0.001297, allocations: 179.5 kB / 16.41 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.862/1.862, allocations: 205.4 MB / 222.5 MB, free: 9.117 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009134/0.0009132, allocations: 90.3 kB / 270.9 MB, free: 8.352 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4264/0.4264, allocations: 43.55 MB / 362.7 MB, free: 52.14 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003684/0.0003686, allocations: 12 kB / 431.4 MB, free: 6.137 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1211/0.1215, allocations: 58.84 MB / 490.2 MB, free: 11.21 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT): time 0.2639/0.3854, allocations: 36.63 MB / 0.5145 GB, free: 24.68 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0181/0.4036, allocations: 18.87 MB / 0.5329 GB, free: 11.27 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001287/0.4049, allocations: 24.97 kB / 0.533 GB, free: 11.26 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001231/0.4062, allocations: 374.8 kB / 0.5333 GB, free: 11.06 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:788:36-789:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:786:36-787:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:734:36-735:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:732:36-733:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.01312/0.4193, allocations: 4.054 MB / 0.5373 GB, free: 9.207 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007519/0.4269, allocations: 2.022 MB / 0.5393 GB, free: 8.148 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.003419/0.4303, allocations: 2.361 MB / 0.5416 GB, free: 7.25 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001129/0.4315, allocations: 399.4 kB / 0.5419 GB, free: 7.105 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01186/0.4433, allocations: 6.398 MB / 0.5482 GB, free: 6.191 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.015/0.4584, allocations: 9.098 MB / 0.5571 GB, free: 5.094 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004114/0.4588, allocations: 34.53 kB / 0.5571 GB, free: 5.094 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01348/0.4723, allocations: 6.824 MB / 0.5638 GB, free: 15.51 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007937/0.4731, allocations: 239.2 kB / 0.564 GB, free: 15.28 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006762/0.4738, allocations: 189.3 kB / 0.5642 GB, free: 15.09 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007862/0.4817, allocations: 3.372 MB / 0.5675 GB, free: 11.71 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.4817, allocations: 8 kB / 0.5675 GB, free: 11.7 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.362e-06/0.4818, allocations: 0 / 0.5675 GB, free: 11.7 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.427e-05/0.4818, allocations: 0 / 0.5675 GB, free: 11.7 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 160 * Number of variables: 160 Notification: Performance of Generate backend data structure: time 0.004552/0.4864, allocations: 1.473 MB / 0.5689 GB, free: 10.18 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.418e-05/0.4864, allocations: 16.02 kB / 0.5689 GB, free: 10.16 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001558/0.488, allocations: 222.8 kB / 0.5692 GB, free: 9.945 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001048/0.4891, allocations: 0.5161 MB / 0.5697 GB, free: 9.387 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000134/0.4892, allocations: 118 kB / 0.5698 GB, free: 9.262 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001514/0.4894, allocations: 63.89 kB / 0.5698 GB, free: 9.199 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00218/0.4916, allocations: 1.064 MB / 0.5709 GB, free: 8.027 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.166e-05/0.4916, allocations: 11.94 kB / 0.5709 GB, free: 8.016 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001079/0.4917, allocations: 24 kB / 0.5709 GB, free: 7.992 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.92e-05/0.4918, allocations: 40.98 kB / 0.5709 GB, free: 7.949 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001762/0.4936, allocations: 0.8193 MB / 0.5717 GB, free: 7.133 MB / 394.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.006884/0.5005, allocations: 5.565 MB / 0.5772 GB, free: 1.207 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001273/0.5018, allocations: 0.5331 MB / 0.5777 GB, free: 0.6484 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003435/0.5021, allocations: 210.5 kB / 0.5779 GB, free: 444 kB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09262/0.5948, allocations: 47.87 MB / 0.6247 GB, free: 10.95 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.664e-05/0.5948, allocations: 42.52 kB / 0.6247 GB, free: 10.9 MB / 458.7 MB Notification: Performance of pre-optimization done (n=39): time 1.904e-06/0.5949, allocations: 0 / 0.6247 GB, free: 10.9 MB / 458.7 MB Notification: Performance of matching and sorting (n=44): time 0.006454/0.6013, allocations: 2.141 MB / 0.6268 GB, free: 8.695 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001054/0.6014, allocations: 187.9 kB / 0.627 GB, free: 8.469 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000801/0.6023, allocations: 0.6367 MB / 0.6276 GB, free: 7.824 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 4.997e-05/0.6023, allocations: 29.7 kB / 0.6276 GB, free: 7.789 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003038/0.6026, allocations: 403.1 kB / 0.628 GB, free: 7.387 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001459/0.6028, allocations: 165.7 kB / 0.6282 GB, free: 7.223 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.407e-05/0.6028, allocations: 16 kB / 0.6282 GB, free: 7.207 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001653/0.603, allocations: 374.8 kB / 0.6285 GB, free: 6.832 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003913/0.6034, allocations: 233.9 kB / 0.6288 GB, free: 6.605 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006342/0.604, allocations: 0.5783 MB / 0.6293 GB, free: 5.852 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005302/0.6046, allocations: 339.6 kB / 0.6296 GB, free: 5.52 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.013e-06/0.6046, allocations: 4 kB / 0.6296 GB, free: 5.516 MB / 458.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001437/0.606, allocations: 0.8962 MB / 0.6305 GB, free: 4.609 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.177e-05/0.6061, allocations: 15.16 kB / 0.6305 GB, free: 4.598 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.88e-05/0.6061, allocations: 14.06 kB / 0.6305 GB, free: 4.586 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003123/0.6092, allocations: 276.5 kB / 0.6308 GB, free: 4.312 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001169/0.6104, allocations: 287.5 kB / 0.6311 GB, free: 4.031 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0017/0.6122, allocations: 2.015 MB / 0.6331 GB, free: 1.859 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006382/0.6128, allocations: 67.83 kB / 0.6331 GB, free: 1.793 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.344e-05/0.6129, allocations: 40 kB / 0.6332 GB, free: 1.754 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 10 (volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1],volume.medium.phase,shortPipe.flowModel.states[2].phase,shortPipe.flowModel.states[1].phase,ambient.state.phase,ambient.medium.phase,fixedMassFlowRate.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (94): * Single equations (assignments): 92 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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: 0 * Non-linear torn systems: 1 {2 1} Notification: Performance of prepare postOptimizeDAE: time 0.0004025/0.6133, allocations: 265.5 kB / 0.6334 GB, free: 1.484 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001644/0.6135, allocations: 75.09 kB / 0.6335 GB, free: 1.41 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00238/0.6159, allocations: 2.027 MB / 0.6355 GB, free: 15.37 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.308e-05/0.6159, allocations: 23.95 kB / 0.6355 GB, free: 15.35 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.056e-06/0.6159, allocations: 0 / 0.6355 GB, free: 15.35 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.107e-06/0.6159, allocations: 7.953 kB / 0.6355 GB, free: 15.34 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003662/0.6196, allocations: 2.996 MB / 0.6384 GB, free: 12.27 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.831e-06/0.6196, allocations: 0 / 0.6384 GB, free: 12.27 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008935/0.6205, allocations: 187.8 kB / 0.6386 GB, free: 12.09 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001803/0.6223, allocations: 307.9 kB / 0.6389 GB, free: 11.79 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.511e-05/0.6224, allocations: 19.95 kB / 0.6389 GB, free: 11.77 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001629/0.624, allocations: 2.077 MB / 0.6409 GB, free: 9.531 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.699e-06/0.6241, allocations: 4.031 kB / 0.6409 GB, free: 9.527 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002164/0.6262, allocations: 1.947 MB / 0.6428 GB, free: 7.559 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004881/0.6267, allocations: 283.4 kB / 0.6431 GB, free: 7.262 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001446/0.6269, allocations: 12 kB / 0.6431 GB, free: 7.25 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005376/0.6274, allocations: 31.83 kB / 0.6432 GB, free: 7.219 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.495e-05/0.6275, allocations: 40.39 kB / 0.6432 GB, free: 7.18 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.493e-05/0.6276, allocations: 19.98 kB / 0.6432 GB, free: 7.16 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0007798/0.6284, allocations: 0.5654 MB / 0.6438 GB, free: 6.598 MB / 474.7 MB Notification: Performance of sort global known variables: time 6.01e-07/0.6284, allocations: 0 / 0.6438 GB, free: 6.598 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.003472/0.6318, allocations: 1.085 MB / 0.6448 GB, free: 5.512 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (volume.medium.p,volume.medium.T) * Number of discrete variables: 12 ($cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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: 0 * Non-linear torn systems: 1 {2 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.005169/0.637, allocations: 1.185 MB / 0.646 GB, free: 4.316 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.002043/0.6391, allocations: 0.9046 MB / 0.6469 GB, free: 3.414 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 4.899e-06/0.6391, allocations: 0 / 0.6469 GB, free: 3.414 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001197/0.6403, allocations: 0.6287 MB / 0.6475 GB, free: 2.789 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002243/0.6426, allocations: 389.8 kB / 0.6479 GB, free: 2.418 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003542/0.6461, allocations: 2.622 MB / 0.6504 GB, free: 15.75 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007234/0.6469, allocations: 1.093 MB / 0.6515 GB, free: 14.62 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001896/0.6471, allocations: 63.44 kB / 0.6515 GB, free: 14.57 MB / 490.7 MB Notification: Performance of SimCode: time 1.001e-06/0.6471, allocations: 0 / 0.6515 GB, free: 14.57 MB / 490.7 MB Notification: Performance of Templates: time 0.2292/0.8763, allocations: 37.02 MB / 0.6877 GB, free: 160.3 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe 2>&1)