Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.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.Fluid.TestPipesAndValves.SeriesPipes1,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes1",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.002191/0.002191, allocations: 186.5 kB / 16.41 MB, free: 5.727 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.981/1.981, allocations: 205.4 MB / 222.5 MB, free: 9.141 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.001156/0.001156, allocations: 100.3 kB / 270.9 MB, free: 8.387 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.5069/0.5069, allocations: 43.55 MB / 362.7 MB, free: 51.93 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007672/0.0007674, allocations: 16 kB / 431.5 MB, free: 5.859 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1384/0.1392, allocations: 58.84 MB / 490.3 MB, free: 10.93 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.118/9.257, allocations: 2.827 GB / 3.306 GB, free: 88.14 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002939/9.257, allocations: 80.52 kB / 3.306 GB, free: 88.11 MB / 0.5105 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Interfaces.mo:306:3-308:69:writable] Warning: Inherited elements are not identical: bug: https://trac.modelica.org/Modelica/ticket/627 first: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start, stateSelect = if momentumDynamics == Modelica.Fluid.Types.Dynamics.SteadyState then StateSelect.default else StateSelect.prefer) "mass flow rates between states" second: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start) "Mass flow rate in design flow direction" Continue .... Notification: Performance of FrontEnd - DAE generated: time 4.479/13.74, allocations: 0.8041 GB / 4.11 GB, free: 32.8 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.205e-06/13.74, allocations: 0 / 4.11 GB, free: 32.8 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0003624/13.74, allocations: 68.06 kB / 4.111 GB, free: 32.79 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 512 * Number of variables: 512 Notification: Performance of Generate backend data structure: time 0.02085/13.76, allocations: 4.148 MB / 4.115 GB, free: 30.77 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.156e-05/13.76, allocations: 7.781 kB / 4.115 GB, free: 30.77 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001662/13.76, allocations: 301.4 kB / 4.115 GB, free: 30.73 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009504/13.77, allocations: 0.8429 MB / 4.116 GB, free: 30.59 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009475/13.78, allocations: 2.098 MB / 4.118 GB, free: 30.12 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003762/13.78, allocations: 181.5 kB / 4.118 GB, free: 30.11 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001204/13.78, allocations: 199.3 kB / 4.118 GB, free: 30.11 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0138/13.79, allocations: 3.6 MB / 4.122 GB, free: 29.53 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001057/13.79, allocations: 7.875 kB / 4.122 GB, free: 29.53 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000531/13.79, allocations: 86.88 kB / 4.122 GB, free: 29.53 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003124/13.8, allocations: 165.4 kB / 4.122 GB, free: 29.52 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01323/13.81, allocations: 3.298 MB / 4.125 GB, free: 29.47 MB / 0.5261 GB 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.03295/13.84, allocations: 15.2 MB / 4.14 GB, free: 20.36 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009358/13.85, allocations: 2.344 MB / 4.142 GB, free: 20.13 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07711/13.93, allocations: 24.45 MB / 4.166 GB, free: 20.03 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007157/13.94, allocations: 1.662 MB / 4.168 GB, free: 19.54 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=155): time 5.22e-06/13.94, allocations: 3.938 kB / 4.168 GB, free: 19.53 MB / 0.5417 GB Notification: Performance of matching and sorting (n=171): time 0.04292/13.98, allocations: 9.018 MB / 4.177 GB, free: 16.3 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002154/13.98, allocations: 285 kB / 4.177 GB, free: 15.98 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00322/13.98, allocations: 1.463 MB / 4.178 GB, free: 15.45 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0005999/13.98, allocations: 57.64 kB / 4.178 GB, free: 15.39 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009175/13.98, allocations: 0.8979 MB / 4.179 GB, free: 14.63 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009299/13.98, allocations: 0.584 MB / 4.18 GB, free: 14.18 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002876/13.98, allocations: 43.25 kB / 4.18 GB, free: 14.15 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.000242/13.98, allocations: 390 kB / 4.18 GB, free: 13.8 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003786/13.99, allocations: 1.163 MB / 4.181 GB, free: 13.41 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004378/13.99, allocations: 1.618 MB / 4.183 GB, free: 12.48 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004428/14, allocations: 1.382 MB / 4.184 GB, free: 11.74 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.759e-05/14, allocations: 4 kB / 4.184 GB, free: 11.74 MB / 0.5417 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.01133/14.01, allocations: 3.246 MB / 4.187 GB, free: 8.906 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.002081/14.01, allocations: 4.648 MB / 4.192 GB, free: 3.906 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.617e-05/14.01, allocations: 15.89 kB / 4.192 GB, free: 3.895 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001734/14.01, allocations: 267.9 kB / 4.192 GB, free: 3.676 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004738/14.02, allocations: 0.5145 MB / 4.193 GB, free: 3.238 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002634/14.02, allocations: 2.501 MB / 4.195 GB, free: 0.7383 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00441/14.02, allocations: 259.1 kB / 4.195 GB, free: 0.5391 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007066/14.03, allocations: 103.2 kB / 4.196 GB, free: 460 kB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.989e-05/14.03, allocations: 4 kB / 4.196 GB, free: 456 kB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01221/14.04, allocations: 3.112 MB / 4.199 GB, free: 13.82 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.477e-05/14.04, allocations: 12 kB / 4.199 GB, free: 13.81 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001551/14.04, allocations: 281.2 kB / 4.199 GB, free: 13.58 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004589/14.04, allocations: 0.4991 MB / 4.199 GB, free: 13.16 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002636/14.05, allocations: 2.502 MB / 4.202 GB, free: 10.66 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003468/14.05, allocations: 263.6 kB / 4.202 GB, free: 10.46 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004491/14.05, allocations: 95.17 kB / 4.202 GB, free: 10.37 MB / 0.5574 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 23 (pipe3.state_a.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase,valve.state_b.phase,valve.state_a.phase,pipe1.state_a.phase,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[1].phase,pipe2.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,pipe3.statesFM[2].phase,pipe3.state_b.phase,pipe2.state_b.phase,pipe2.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (246): * Single equations (assignments): 239 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.002459/14.05, allocations: 0.7324 MB / 4.203 GB, free: 9.695 MB / 0.5574 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007694/14.05, allocations: 205.5 kB / 4.203 GB, free: 9.492 MB / 0.5574 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01974/14.07, allocations: 7.842 MB / 4.211 GB, free: 2.527 MB / 0.5574 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001248/14.07, allocations: 87.77 kB / 4.211 GB, free: 2.477 MB / 0.5574 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.268e-05/14.07, allocations: 0 / 4.211 GB, free: 2.477 MB / 0.5574 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.4623/14.54, allocations: 6.743 MB / 4.217 GB, free: 62.21 MB / 0.5574 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02532/14.56, allocations: 11.06 MB / 4.228 GB, free: 61.63 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.671e-05/14.56, allocations: 0 / 4.228 GB, free: 61.63 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003558/14.57, allocations: 411.1 kB / 4.229 GB, free: 61.63 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002416/14.57, allocations: 380.9 kB / 4.229 GB, free: 61.6 MB / 0.5574 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005826/14.57, allocations: 66.62 kB / 4.229 GB, free: 61.6 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001803/14.57, allocations: 2.577 MB / 4.231 GB, free: 59.54 MB / 0.5574 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/14.57, allocations: 0 / 4.231 GB, free: 59.54 MB / 0.5574 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01734/14.59, allocations: 7.3 MB / 4.239 GB, free: 59.09 MB / 0.5574 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002581/14.59, allocations: 0.781 MB / 4.239 GB, free: 58.95 MB / 0.5574 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008796/14.59, allocations: 47.7 kB / 4.239 GB, free: 58.95 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003417/14.59, allocations: 201.6 kB / 4.24 GB, free: 58.94 MB / 0.5574 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005797/14.6, allocations: 155.6 kB / 4.24 GB, free: 58.94 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002481/14.6, allocations: 69.31 kB / 4.24 GB, free: 58.94 MB / 0.5574 GB Notification: Performance of sorting global known variables: time 0.003041/14.6, allocations: 1.31 MB / 4.241 GB, free: 58.79 MB / 0.5574 GB Notification: Performance of sort global known variables: time 1.333e-06/14.6, allocations: 3.031 kB / 4.241 GB, free: 58.79 MB / 0.5574 GB Notification: Performance of remove unused functions: time 0.01356/14.61, allocations: 2.799 MB / 4.244 GB, free: 58.79 MB / 0.5574 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (pipe1.mediums[1].p,pipe1.mediums[1].h,valve.filter.x[1],valve.filter.x[2],pipe2.mediums[1].p,pipe2.mediums[1].h,pipe2.mediums[2].p,pipe2.mediums[2].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 54 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse22.phase,$cse22.region,$cse24.region3boundary,$cse25.region3boundary,$cse26.phase,$cse26.region,$cse27.region3boundary,$cse28.region3boundary,$cse29.phase,$cse29.region,$cse31.phase,$cse31.region,$cse32.phase,$cse32.region,$cse37.phase,$cse37.region,$cse38.phase,$cse38.region,$cse39.region3boundary,$cse40.region3boundary,$cse41.phase,$cse41.region,$cse43.phase,$cse43.region,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[1].phase,pipe2.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled,pipe3.statesFM[2].phase) * Number of discrete states: 6 (valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,valveOpening1.b,valveOpening1.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (198): * Single equations (assignments): 168 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 25 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.03326/14.65, allocations: 10.57 MB / 4.254 GB, free: 57.58 MB / 0.5574 GB Notification: Performance of simCode: created initialization part: time 0.01708/14.66, allocations: 5.286 MB / 4.259 GB, free: 57.31 MB / 0.5574 GB Notification: Performance of simCode: created event and clocks part: time 1.006e-05/14.66, allocations: 1.125 kB / 4.259 GB, free: 57.31 MB / 0.5574 GB Notification: Performance of simCode: created simulation system equations: time 0.006443/14.67, allocations: 2.454 MB / 4.262 GB, free: 57.23 MB / 0.5574 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009049/14.68, allocations: 0.9245 MB / 4.263 GB, free: 57.21 MB / 0.5574 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03097/14.71, allocations: 19.35 MB / 4.282 GB, free: 44.72 MB / 0.5574 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002739/14.71, allocations: 2.262 MB / 4.284 GB, free: 43.97 MB / 0.5574 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003239/14.72, allocations: 1.347 MB / 4.285 GB, free: 43.96 MB / 0.5574 GB Notification: Performance of SimCode: time 1.363e-06/14.72, allocations: 0 / 4.285 GB, free: 43.96 MB / 0.5574 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.417/20.13, allocations: 129.4 MB / 4.411 GB, free: 0.8555 MB / 0.5574 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes1_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes1.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1_res.mat does not exist to compare? outputFormat=mat