Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.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.SeriesPipes12,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes12",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes12",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.002379/0.002378, allocations: 186.3 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.061/2.061, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001162/0.001161, allocations: 96.41 kB / 270.9 MB, free: 8.371 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.5648/0.5648, allocations: 43.55 MB / 362.7 MB, free: 52.14 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004784/0.0004787, allocations: 12 kB / 431.5 MB, free: 6.074 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1358/0.1363, allocations: 58.84 MB / 490.3 MB, free: 11.15 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.856/8.992, allocations: 2.828 GB / 3.306 GB, free: 58.48 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003237/8.993, allocations: 80.59 kB / 3.306 GB, free: 58.45 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.474/13.47, allocations: 0.8054 GB / 4.112 GB, free: 33.02 MB / 0.5261 GB Notification: Performance of FrontEnd: time 4.338e-06/13.47, allocations: 0 / 4.112 GB, free: 33.02 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0005279/13.47, allocations: 69.5 kB / 4.112 GB, free: 33.01 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.03024/13.5, allocations: 4.143 MB / 4.116 GB, free: 30.75 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 6.682e-05/13.5, allocations: 7.688 kB / 4.116 GB, free: 30.75 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002135/13.5, allocations: 296.4 kB / 4.116 GB, free: 30.59 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01579/13.52, allocations: 0.8467 MB / 4.117 GB, free: 30.37 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01381/13.53, allocations: 2.101 MB / 4.119 GB, free: 29.42 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005385/13.53, allocations: 176 kB / 4.119 GB, free: 29.36 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001577/13.53, allocations: 204.3 kB / 4.119 GB, free: 29.29 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02191/13.55, allocations: 3.6 MB / 4.123 GB, free: 27.79 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001963/13.55, allocations: 11.41 kB / 4.123 GB, free: 27.78 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001425/13.56, allocations: 86.44 kB / 4.123 GB, free: 27.73 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005097/13.56, allocations: 158.7 kB / 4.123 GB, free: 27.71 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01706/13.57, allocations: 3.3 MB / 4.126 GB, free: 26.73 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.03378/13.61, allocations: 15.18 MB / 4.141 GB, free: 15.36 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009695/13.62, allocations: 2.35 MB / 4.144 GB, free: 14.64 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.08819/13.7, allocations: 24.45 MB / 4.167 GB, free: 11.36 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007819/13.71, allocations: 1.658 MB / 4.169 GB, free: 10.11 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=155): time 6.252e-06/13.71, allocations: 0 / 4.169 GB, free: 10.11 MB / 0.5417 GB Notification: Performance of matching and sorting (n=171): time 0.03873/13.75, allocations: 8.321 MB / 4.177 GB, free: 2.945 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002125/13.75, allocations: 282.3 kB / 4.177 GB, free: 2.609 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003922/13.76, allocations: 1.46 MB / 4.179 GB, free: 1.375 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0006229/13.76, allocations: 65.64 kB / 4.179 GB, free: 1.305 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.001322/13.76, allocations: 0.898 MB / 4.18 GB, free: 468 kB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.4601/14.22, allocations: 0.5828 MB / 4.18 GB, free: 50.17 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000363/14.22, allocations: 41.88 kB / 4.18 GB, free: 50.17 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0002557/14.22, allocations: 389.8 kB / 4.181 GB, free: 49.86 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004548/14.22, allocations: 1.163 MB / 4.182 GB, free: 49.85 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00525/14.23, allocations: 1.628 MB / 4.184 GB, free: 49.36 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005231/14.23, allocations: 1.378 MB / 4.185 GB, free: 49.31 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.489e-05/14.23, allocations: 3.969 kB / 4.185 GB, free: 49.31 MB / 0.5417 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.01454/14.25, allocations: 3.852 MB / 4.189 GB, free: 49.19 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.001287/14.25, allocations: 4.658 MB / 4.193 GB, free: 44.36 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.709e-05/14.25, allocations: 11.69 kB / 4.193 GB, free: 44.36 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03033/14.28, allocations: 3.194 MB / 4.196 GB, free: 44.34 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002548/14.28, allocations: 308.5 kB / 4.197 GB, free: 44.34 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01069/14.29, allocations: 3.508 MB / 4.2 GB, free: 43.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004424/14.3, allocations: 264.5 kB / 4.2 GB, free: 43.8 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000785/14.3, allocations: 102.8 kB / 4.2 GB, free: 43.79 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.667e-05/14.3, allocations: 6.062 kB / 4.2 GB, free: 43.79 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01295/14.31, allocations: 3.561 MB / 4.204 GB, free: 43.71 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.047e-05/14.31, allocations: 12.8 kB / 4.204 GB, free: 43.71 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0123/14.32, allocations: 1.719 MB / 4.206 GB, free: 43.69 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002889/14.33, allocations: 346 kB / 4.206 GB, free: 43.69 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007267/14.33, allocations: 2.744 MB / 4.209 GB, free: 43.15 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003658/14.34, allocations: 263.5 kB / 4.209 GB, free: 43.15 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005874/14.34, allocations: 98.89 kB / 4.209 GB, free: 43.15 MB / 0.5417 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 (157): * Single equations (assignments): 153 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {8 86} Notification: Performance of prepare postOptimizeDAE: time 0.00236/14.34, allocations: 0.7156 MB / 4.21 GB, free: 42.93 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007397/14.34, allocations: 202.7 kB / 4.21 GB, free: 42.93 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02282/14.36, allocations: 7.843 MB / 4.217 GB, free: 42.38 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001602/14.36, allocations: 90.27 kB / 4.218 GB, free: 42.38 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.893e-05/14.36, allocations: 3.562 kB / 4.218 GB, free: 42.38 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02122/14.39, allocations: 6.728 MB / 4.224 GB, free: 41.56 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03759/14.42, allocations: 11.05 MB / 4.235 GB, free: 40.91 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.294e-05/14.42, allocations: 5.625 kB / 4.235 GB, free: 40.91 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005024/14.43, allocations: 406.5 kB / 4.235 GB, free: 40.91 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00364/14.43, allocations: 390.9 kB / 4.236 GB, free: 40.87 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000738/14.43, allocations: 62.77 kB / 4.236 GB, free: 40.87 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002678/14.44, allocations: 2.571 MB / 4.238 GB, free: 38.8 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.11e-06/14.44, allocations: 0 / 4.238 GB, free: 38.8 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02554/14.46, allocations: 7.31 MB / 4.245 GB, free: 38.16 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00354/14.47, allocations: 0.7726 MB / 4.246 GB, free: 37.89 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001251/14.47, allocations: 53.72 kB / 4.246 GB, free: 37.89 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004801/14.47, allocations: 194.3 kB / 4.246 GB, free: 37.88 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009732/14.47, allocations: 155.8 kB / 4.247 GB, free: 37.88 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003774/14.47, allocations: 72.09 kB / 4.247 GB, free: 37.88 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.004587/14.48, allocations: 1.308 MB / 4.248 GB, free: 37.73 MB / 0.5417 GB Notification: Performance of sort global known variables: time 2.355e-06/14.48, allocations: 5.344 kB / 4.248 GB, free: 37.73 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01839/14.5, allocations: 2.794 MB / 4.251 GB, free: 37.73 MB / 0.5417 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.04692/14.54, allocations: 10.58 MB / 4.261 GB, free: 36.39 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.02377/14.57, allocations: 5.385 MB / 4.266 GB, free: 36.08 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.417e-05/14.57, allocations: 0 / 4.266 GB, free: 36.08 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.008904/14.58, allocations: 2.451 MB / 4.269 GB, free: 36 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01266/14.59, allocations: 0.9198 MB / 4.269 GB, free: 35.98 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04209/14.63, allocations: 19.37 MB / 4.288 GB, free: 23.53 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00545/14.64, allocations: 2.267 MB / 4.291 GB, free: 22.78 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004835/14.64, allocations: 1.323 MB / 4.292 GB, free: 22.77 MB / 0.5417 GB Notification: Performance of SimCode: time 2.224e-06/14.64, allocations: 3.531 kB / 4.292 GB, free: 22.77 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.853/20.49, allocations: 109.6 MB / 4.399 GB, free: 63.55 MB / 0.5573 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes12_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes12.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12_res.mat does not exist to compare? outputFormat=mat