Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.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.SeriesPipes13,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes13",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes13",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.002344/0.002344, allocations: 180.1 kB / 8.366 MB, free: 0.7109 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.007/2.007, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001084/0.001084, allocations: 88.62 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2907/0.2907, allocations: 43.49 MB / 353.6 MB, free: 2.273 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.674e-05/1.683e-05, allocations: 224 / 418.3 MB, free: 40.95 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4054/0.4055, allocations: 58.85 MB / 477.2 MB, free: 5.281 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.924/9.329, allocations: 2.827 GB / 3.293 GB, free: 103 MB / 0.4952 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002831/9.33, allocations: 80.08 kB / 3.293 GB, free: 103 MB / 0.4952 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.614/13.94, allocations: 0.8582 GB / 4.151 GB, free: 37.55 MB / 0.5265 GB Notification: Performance of FrontEnd: time 2.374e-06/13.94, allocations: 0 / 4.151 GB, free: 37.55 MB / 0.5265 GB Notification: Performance of Transformations before backend: time 0.0003636/13.94, allocations: 66.06 kB / 4.151 GB, free: 37.54 MB / 0.5265 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.01918/13.96, allocations: 3.853 MB / 4.155 GB, free: 35.69 MB / 0.5265 GB Notification: Performance of prepare preOptimizeDAE: time 5.383e-05/13.96, allocations: 11.34 kB / 4.155 GB, free: 35.69 MB / 0.5265 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00926/13.97, allocations: 0.8405 MB / 4.156 GB, free: 35.55 MB / 0.5265 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009129/13.98, allocations: 2.088 MB / 4.158 GB, free: 35.06 MB / 0.5265 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000295/13.98, allocations: 97.98 kB / 4.158 GB, free: 35.06 MB / 0.5265 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00108/13.98, allocations: 116.7 kB / 4.158 GB, free: 35.06 MB / 0.5265 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007879/13.99, allocations: 2.536 MB / 4.16 GB, free: 35.05 MB / 0.5265 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009324/14, allocations: 2.8 MB / 4.163 GB, free: 34.48 MB / 0.5265 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.65e-05/14, allocations: 11.78 kB / 4.163 GB, free: 34.47 MB / 0.5265 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003878/14, allocations: 9.781 kB / 4.163 GB, free: 34.47 MB / 0.5265 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000366/14, allocations: 160.8 kB / 4.163 GB, free: 34.47 MB / 0.5265 GB Warning: The model contains alias variables with conflicting start and/or 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.7333/14.73, allocations: 93.89 MB / 4.255 GB, free: 62.63 MB / 0.5577 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004646/14.74, allocations: 1.643 MB / 4.257 GB, free: 62.6 MB / 0.5577 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002651/14.74, allocations: 0.9876 MB / 4.258 GB, free: 62.59 MB / 0.5577 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05557/14.8, allocations: 16.94 MB / 4.274 GB, free: 52.18 MB / 0.5577 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003197/14.8, allocations: 1.173 MB / 4.275 GB, free: 52.06 MB / 0.5577 GB Notification: Performance of pre-optimization done (n=147): time 5.851e-06/14.8, allocations: 0 / 4.275 GB, free: 52.06 MB / 0.5577 GB Notification: Performance of matching and sorting (n=163): time 0.03442/14.84, allocations: 8.095 MB / 4.283 GB, free: 50.58 MB / 0.5577 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001294/14.84, allocations: 388.5 kB / 4.284 GB, free: 50.14 MB / 0.5577 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002377/14.84, allocations: 1.127 MB / 4.285 GB, free: 49.98 MB / 0.5577 GB Notification: Performance of collectPreVariables (initialization): time 0.000545/14.84, allocations: 30.58 kB / 4.285 GB, free: 49.95 MB / 0.5577 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009398/14.84, allocations: 0.9646 MB / 4.286 GB, free: 49.54 MB / 0.5577 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008618/14.84, allocations: 0.5405 MB / 4.286 GB, free: 49.26 MB / 0.5577 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002029/14.84, allocations: 0 / 4.286 GB, free: 49.26 MB / 0.5577 GB Notification: Performance of setup shared object (initialization): time 0.0001549/14.84, allocations: 388.7 kB / 4.287 GB, free: 48.95 MB / 0.5577 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002357/14.84, allocations: 1.024 MB / 4.288 GB, free: 48.94 MB / 0.5577 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002895/14.85, allocations: 1.472 MB / 4.289 GB, free: 48.45 MB / 0.5577 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02273/14.87, allocations: 3.322 MB / 4.292 GB, free: 48.43 MB / 0.5577 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.053e-05/14.87, allocations: 3.844 kB / 4.292 GB, free: 48.43 MB / 0.5577 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.02875/14.9, allocations: 5.482 MB / 4.298 GB, free: 48.3 MB / 0.5577 GB Notification: Performance of prepare postOptimizeDAE: time 0.001092/14.9, allocations: 4.659 MB / 4.302 GB, free: 43.46 MB / 0.5577 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.681e-05/14.9, allocations: 13.97 kB / 4.302 GB, free: 43.46 MB / 0.5577 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01285/14.91, allocations: 2.029 MB / 4.304 GB, free: 43.45 MB / 0.5577 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002272/14.91, allocations: 312.2 kB / 4.304 GB, free: 43.45 MB / 0.5577 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00949/14.92, allocations: 3.67 MB / 4.308 GB, free: 42.87 MB / 0.5577 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004386/14.93, allocations: 262.1 kB / 4.308 GB, free: 42.86 MB / 0.5577 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004864/14.93, allocations: 106.8 kB / 4.308 GB, free: 42.86 MB / 0.5577 GB Notification: Performance of prepare postOptimizeDAE: time 1.512e-05/14.93, allocations: 5.188 kB / 4.308 GB, free: 42.86 MB / 0.5577 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02759/14.96, allocations: 4.974 MB / 4.313 GB, free: 42.8 MB / 0.5577 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.998e-05/14.96, allocations: 13.47 kB / 4.313 GB, free: 42.8 MB / 0.5577 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009464/14.97, allocations: 1.499 MB / 4.315 GB, free: 42.78 MB / 0.5577 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002678/14.97, allocations: 353.3 kB / 4.315 GB, free: 42.78 MB / 0.5577 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005368/14.97, allocations: 2.675 MB / 4.318 GB, free: 42.21 MB / 0.5577 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003504/14.98, allocations: 234.8 kB / 4.318 GB, free: 42.2 MB / 0.5577 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004108/14.98, allocations: 98.78 kB / 4.318 GB, free: 42.2 MB / 0.5577 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,pipe1.statesFM[2].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,source.medium.phase,sink.medium.phase,pipe3.state_b.phase,pipe2.state_b.phase,pipe2.state_a.phase,pipe1.state_b.phase) * Number of discrete 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.0007716/14.98, allocations: 191.9 kB / 4.318 GB, free: 42.06 MB / 0.5577 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0101/14.99, allocations: 2.557 MB / 4.321 GB, free: 41.87 MB / 0.5577 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009602/14.99, allocations: 182.2 kB / 4.321 GB, free: 41.78 MB / 0.5577 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01573/15.01, allocations: 6.876 MB / 4.328 GB, free: 41.23 MB / 0.5577 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.97e-05/15.01, allocations: 75.61 kB / 4.328 GB, free: 41.23 MB / 0.5577 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.371e-05/15.01, allocations: 4.812 kB / 4.328 GB, free: 41.23 MB / 0.5577 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01182/15.02, allocations: 5.716 MB / 4.333 GB, free: 40.54 MB / 0.5577 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02173/15.04, allocations: 9.345 MB / 4.342 GB, free: 40 MB / 0.5577 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.163e-05/15.04, allocations: 3.906 kB / 4.342 GB, free: 40 MB / 0.5577 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00312/15.04, allocations: 365.6 kB / 4.343 GB, free: 40 MB / 0.5577 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001466/15.04, allocations: 338 kB / 4.343 GB, free: 39.96 MB / 0.5577 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004831/15.04, allocations: 37.22 kB / 4.343 GB, free: 39.96 MB / 0.5577 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002053/15.05, allocations: 2.683 MB / 4.346 GB, free: 37.88 MB / 0.5577 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.957e-06/15.05, allocations: 3.953 kB / 4.346 GB, free: 37.88 MB / 0.5577 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01493/15.06, allocations: 6.473 MB / 4.352 GB, free: 37.29 MB / 0.5577 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002687/15.06, allocations: 0.705 MB / 4.353 GB, free: 36.98 MB / 0.5577 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009357/15.07, allocations: 18.97 kB / 4.353 GB, free: 36.98 MB / 0.5577 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003544/15.07, allocations: 164 kB / 4.353 GB, free: 36.97 MB / 0.5577 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007789/15.07, allocations: 141.2 kB / 4.353 GB, free: 36.96 MB / 0.5577 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002721/15.07, allocations: 67.94 kB / 4.353 GB, free: 36.96 MB / 0.5577 GB Notification: Performance of sorting global known variables: time 0.002584/15.07, allocations: 1.079 MB / 4.354 GB, free: 36.86 MB / 0.5577 GB Notification: Performance of sort global known variables: time 8.62e-07/15.07, allocations: 0 / 4.354 GB, free: 36.86 MB / 0.5577 GB Notification: Performance of remove unused functions: time 0.01461/15.09, allocations: 2.661 MB / 4.357 GB, free: 36.73 MB / 0.5577 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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: 44 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse18.region3boundary,$cse19.region3boundary,$cse20.phase,$cse20.region,$cse21.region3boundary,$cse22.region3boundary,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse31.phase,$cse31.region,$cse32.phase,$cse32.region,$cse33.region3boundary,$cse34.region3boundary,$cse35.phase,$cse35.region,$cse37.phase,$cse37.region,$whenCondition1,pipe1.statesFM[2].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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (184): * Single equations (assignments): 158 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 21 * 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.03293/15.12, allocations: 10.16 MB / 4.367 GB, free: 35.15 MB / 0.5577 GB Notification: Performance of simCode: created initialization part: time 0.01294/15.13, allocations: 4.724 MB / 4.371 GB, free: 34.88 MB / 0.5577 GB Notification: Performance of simCode: created event and clocks part: time 1.143e-05/15.13, allocations: 2.594 kB / 4.371 GB, free: 34.88 MB / 0.5577 GB Notification: Performance of simCode: created simulation system equations: time 0.005249/15.14, allocations: 2.158 MB / 4.373 GB, free: 34.81 MB / 0.5577 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008111/15.15, allocations: 0.7789 MB / 4.374 GB, free: 34.8 MB / 0.5577 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02329/15.17, allocations: 7.035 MB / 4.381 GB, free: 33.42 MB / 0.5577 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005305/15.18, allocations: 2.177 MB / 4.383 GB, free: 32.68 MB / 0.5577 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004643/15.18, allocations: 1.222 MB / 4.384 GB, free: 32.67 MB / 0.5577 GB Notification: Performance of SimCode: time 3.126e-06/15.18, allocations: 0 / 4.384 GB, free: 32.67 MB / 0.5577 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.56/20.74, allocations: 108 MB / 4.49 GB, free: 68.31 MB / 0.5577 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes13_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes13.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13_res.mat does not exist to compare? outputFormat=mat