Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.IdealSteam.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: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.IdealSteam,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_IdealSteam",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.IdealSteam,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_IdealSteam",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.000937/0.0009368, allocations: 175.5 kB / 16.72 MB, free: 4.957 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.392/1.392, allocations: 205.4 MB / 222.9 MB, free: 9.016 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.0007282/0.0007282, allocations: 93.3 kB / 271.2 MB, free: 8.238 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.277/0.277, allocations: 43.56 MB / 363.1 MB, free: 52.15 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003233/0.0003234, allocations: 12 kB / 432.1 MB, free: 5.719 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09053/0.09087, allocations: 58.85 MB / 490.9 MB, free: 10.79 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.IdealSteam): time 0.3051/0.396, allocations: 164.7 MB / 0.6403 GB, free: 1.938 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.006579/0.4027, allocations: 5.485 MB / 0.6456 GB, free: 12.44 MB / 474.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000705/0.4034, allocations: 19.81 kB / 0.6457 GB, free: 12.42 MB / 474.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007823/0.4042, allocations: 262.3 kB / 0.6459 GB, free: 12.16 MB / 474.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.003512/0.4077, allocations: 1.4 MB / 0.6473 GB, free: 10.77 MB / 474.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002595/0.4103, allocations: 0.9931 MB / 0.6482 GB, free: 9.785 MB / 474.7 MB Notification: Performance of NFFlatten.flatten: time 0.00229/0.4126, allocations: 2.258 MB / 0.6505 GB, free: 7.523 MB / 474.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005691/0.4132, allocations: 394.2 kB / 0.6508 GB, free: 7.141 MB / 474.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002154/0.4154, allocations: 1.081 MB / 0.6519 GB, free: 6.059 MB / 474.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0011/0.4165, allocations: 0.7395 MB / 0.6526 GB, free: 5.316 MB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 9.711e-05/0.4166, allocations: 32 kB / 0.6526 GB, free: 5.285 MB / 474.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001425/0.418, allocations: 0.6512 MB / 0.6533 GB, free: 4.633 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002618/0.4183, allocations: 235.3 kB / 0.6535 GB, free: 4.402 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003951/0.4187, allocations: 376.1 kB / 0.6539 GB, free: 4.027 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001054/0.4198, allocations: 1.025 MB / 0.6549 GB, free: 3 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.4198, allocations: 4 kB / 0.6549 GB, free: 2.996 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.243e-06/0.4198, allocations: 0 / 0.6549 GB, free: 2.996 MB / 474.7 MB Notification: Performance of Transformations before backend: time 9.278e-06/0.4198, allocations: 0 / 0.6549 GB, free: 2.996 MB / 474.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.001885/0.4217, allocations: 0.9815 MB / 0.6558 GB, free: 1.969 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.02e-05/0.4217, allocations: 11.97 kB / 0.6558 GB, free: 1.957 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001235/0.4219, allocations: 98.5 kB / 0.6559 GB, free: 1.852 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006952/0.4226, allocations: 127.1 kB / 0.656 GB, free: 1.727 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007058/0.4233, allocations: 0.5119 MB / 0.6565 GB, free: 1.172 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001007/0.4234, allocations: 104.4 kB / 0.6566 GB, free: 1.059 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.048e-05/0.4235, allocations: 44 kB / 0.6567 GB, free: 1.016 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001147/0.4246, allocations: 0.8174 MB / 0.6575 GB, free: 128 kB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.831e-05/0.4247, allocations: 3.938 kB / 0.6575 GB, free: 124 kB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.729e-05/0.4248, allocations: 27.98 kB / 0.6575 GB, free: 96 kB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.138e-05/0.4248, allocations: 40.92 kB / 0.6576 GB, free: 52 kB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009771/0.4258, allocations: 0.6283 MB / 0.6582 GB, free: 15.42 MB / 490.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.004081/0.4299, allocations: 3.975 MB / 0.6621 GB, free: 11.2 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005129/0.4304, allocations: 356.6 kB / 0.6624 GB, free: 10.84 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002548/0.4307, allocations: 165.3 kB / 0.6625 GB, free: 10.68 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004169/0.4311, allocations: 369.4 kB / 0.6629 GB, free: 10.27 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.737e-05/0.4311, allocations: 38.84 kB / 0.6629 GB, free: 10.22 MB / 490.7 MB Notification: Performance of pre-optimization done (n=34): time 3.466e-06/0.4312, allocations: 4 kB / 0.6629 GB, free: 10.21 MB / 490.7 MB Notification: Performance of matching and sorting (n=39): time 0.005061/0.4362, allocations: 1.663 MB / 0.6646 GB, free: 8.484 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.668e-05/0.4363, allocations: 136.5 kB / 0.6647 GB, free: 8.32 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006386/0.4369, allocations: 0.6055 MB / 0.6653 GB, free: 7.707 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 4.56e-05/0.437, allocations: 33.7 kB / 0.6653 GB, free: 7.668 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002309/0.4372, allocations: 374.8 kB / 0.6657 GB, free: 7.297 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001039/0.4373, allocations: 146 kB / 0.6658 GB, free: 7.152 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.595e-05/0.4374, allocations: 12 kB / 0.6658 GB, free: 7.141 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001293/0.4375, allocations: 374.8 kB / 0.6662 GB, free: 6.766 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000328/0.4379, allocations: 201.9 kB / 0.6664 GB, free: 6.57 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004945/0.4384, allocations: 0.5008 MB / 0.6669 GB, free: 5.926 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008566/0.4392, allocations: 0.7446 MB / 0.6676 GB, free: 5.043 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.109e-06/0.4392, allocations: 4 kB / 0.6676 GB, free: 5.039 MB / 490.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001293/0.4405, allocations: 0.8793 MB / 0.6685 GB, free: 4.148 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.914e-05/0.4406, allocations: 8 kB / 0.6685 GB, free: 4.141 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.541e-05/0.4406, allocations: 8 kB / 0.6685 GB, free: 4.133 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001343/0.4419, allocations: 334.4 kB / 0.6688 GB, free: 3.805 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003536/0.4423, allocations: 127.7 kB / 0.6689 GB, free: 3.68 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009757/0.4433, allocations: 0.9181 MB / 0.6698 GB, free: 2.738 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004761/0.4438, allocations: 48.03 kB / 0.6699 GB, free: 2.691 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.189e-05/0.4439, allocations: 71.98 kB / 0.6699 GB, free: 2.621 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * 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 (67): * Single equations (assignments): 66 * 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 17} Notification: Performance of prepare postOptimizeDAE: time 0.0003039/0.4442, allocations: 241.5 kB / 0.6702 GB, free: 2.375 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001007/0.4443, allocations: 71.16 kB / 0.6702 GB, free: 2.305 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001393/0.4457, allocations: 0.6723 MB / 0.6709 GB, free: 1.621 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.751e-06/0.4457, allocations: 7.938 kB / 0.6709 GB, free: 1.613 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.4457, allocations: 4 kB / 0.6709 GB, free: 1.609 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.683e-06/0.4457, allocations: 7.969 kB / 0.6709 GB, free: 1.602 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1607/0.6064, allocations: 1.608 MB / 0.6725 GB, free: 150.6 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.156e-06/0.6065, allocations: 2.906 kB / 0.6725 GB, free: 150.6 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001008/0.6075, allocations: 205.7 kB / 0.6727 GB, free: 150.6 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.244e-05/0.6076, allocations: 25.48 kB / 0.6727 GB, free: 150.6 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.079e-05/0.6076, allocations: 20.06 kB / 0.6727 GB, free: 150.6 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00137/0.609, allocations: 2.681 MB / 0.6753 GB, free: 148 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.444e-06/0.609, allocations: 2.281 kB / 0.6753 GB, free: 148 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001164/0.6102, allocations: 0.8055 MB / 0.6761 GB, free: 147.9 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002756/0.6105, allocations: 186.9 kB / 0.6763 GB, free: 147.8 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.786e-05/0.6106, allocations: 10.38 kB / 0.6763 GB, free: 147.8 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004077/0.611, allocations: 32.34 kB / 0.6763 GB, free: 147.8 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001178/0.6111, allocations: 42.56 kB / 0.6764 GB, free: 147.8 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.782e-05/0.6112, allocations: 42.59 kB / 0.6764 GB, free: 147.8 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0005575/0.6117, allocations: 428.1 kB / 0.6768 GB, free: 147.7 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.6118, allocations: 3.688 kB / 0.6768 GB, free: 147.7 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0009106/0.6127, allocations: 292.6 kB / 0.6771 GB, free: 147.7 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (39): * Single equations (assignments): 37 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002008/0.6147, allocations: 1.583 MB / 0.6787 GB, free: 147 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.001061/0.6158, allocations: 0.5426 MB / 0.6792 GB, free: 146.9 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 4.197e-06/0.6158, allocations: 8.781 kB / 0.6792 GB, free: 146.9 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000855/0.6166, allocations: 416.8 kB / 0.6796 GB, free: 146.8 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001689/0.6183, allocations: 333.9 kB / 0.6799 GB, free: 146.8 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005455/0.6238, allocations: 4.276 MB / 0.6841 GB, free: 145.2 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000285/0.6241, allocations: 0.9259 MB / 0.685 GB, free: 144.5 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004795/0.6246, allocations: 289.7 kB / 0.6853 GB, free: 144.5 MB / 490.7 MB Notification: Performance of SimCode: time 6.91e-07/0.6246, allocations: 0 / 0.6853 GB, free: 144.5 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.767/5.392, allocations: 17.68 MB / 0.7025 GB, free: 143 MB / 490.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.IdealSteam.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.IdealSteam.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.IdealSteam.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.IdealSteam.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.IdealSteam_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_IdealSteam_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_IdealSteam.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.IdealSteam.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.IdealSteam_res.mat does not exist to compare? outputFormat=mat