Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001798/0.001798, allocations: 198.9 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.426/1.426, allocations: 227.2 MB / 245 MB, free: 5.922 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001031/0.00103, allocations: 92.62 kB / 297.2 MB, free: 5.973 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3894/0.3894, allocations: 45.23 MB / 394.7 MB, free: 31.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003205/0.0003207, allocations: 8 kB / 468.5 MB, free: 7.617 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3406/0.3409, allocations: 63.24 MB / 0.5193 GB, free: 37.63 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.444/6.785, allocations: 2.833 GB / 3.353 GB, free: 133.7 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004196/6.786, allocations: 91.14 kB / 3.353 GB, free: 133.7 MB / 0.5417 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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 3.512/10.3, allocations: 0.8119 GB / 4.165 GB, free: 43.33 MB / 0.573 GB Notification: Performance of FrontEnd: time 4.087e-06/10.3, allocations: 0 / 4.165 GB, free: 43.33 MB / 0.573 GB Notification: Performance of Transformations before backend: time 0.0004433/10.3, allocations: 65.41 kB / 4.165 GB, free: 43.32 MB / 0.573 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.0203/10.32, allocations: 4.153 MB / 4.169 GB, free: 41.48 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 6.322e-05/10.32, allocations: 9.719 kB / 4.169 GB, free: 41.48 MB / 0.573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001779/10.32, allocations: 293.1 kB / 4.169 GB, free: 41.43 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007315/10.33, allocations: 0.8462 MB / 4.17 GB, free: 41.3 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009255/10.34, allocations: 2.106 MB / 4.172 GB, free: 40.86 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003988/10.34, allocations: 180.1 kB / 4.172 GB, free: 40.85 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001232/10.34, allocations: 198 kB / 4.172 GB, free: 40.85 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01109/10.35, allocations: 3.589 MB / 4.176 GB, free: 40.3 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001086/10.35, allocations: 12.19 kB / 4.176 GB, free: 40.3 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000746/10.35, allocations: 91.31 kB / 4.176 GB, free: 40.3 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002998/10.35, allocations: 158.3 kB / 4.176 GB, free: 40.29 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008821/10.36, allocations: 3.304 MB / 4.179 GB, free: 40.28 MB / 0.573 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.02177/10.38, allocations: 15.22 MB / 4.194 GB, free: 31.25 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006073/10.39, allocations: 2.346 MB / 4.196 GB, free: 31.22 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04603/10.43, allocations: 27.02 MB / 4.223 GB, free: 29.66 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00481/10.44, allocations: 1.664 MB / 4.224 GB, free: 29.56 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=155): time 4.308e-06/10.44, allocations: 1.781 kB / 4.224 GB, free: 29.56 MB / 0.5886 GB Notification: Performance of matching and sorting (n=171): time 0.02339/10.46, allocations: 9.005 MB / 4.233 GB, free: 28.53 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002331/10.46, allocations: 279.9 kB / 4.233 GB, free: 28.21 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002681/10.47, allocations: 1.463 MB / 4.235 GB, free: 28.04 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.0004676/10.47, allocations: 58.05 kB / 4.235 GB, free: 28.01 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008595/10.47, allocations: 0.9649 MB / 4.236 GB, free: 27.62 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006717/10.47, allocations: 0.5859 MB / 4.236 GB, free: 27.26 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000146/10.47, allocations: 37.56 kB / 4.236 GB, free: 27.26 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.000227/10.47, allocations: 390.3 kB / 4.237 GB, free: 26.95 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002177/10.47, allocations: 1.159 MB / 4.238 GB, free: 26.95 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002165/10.47, allocations: 1.621 MB / 4.24 GB, free: 26.45 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002293/10.47, allocations: 1.385 MB / 4.241 GB, free: 26.4 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.1e-05/10.47, allocations: 5.812 kB / 4.241 GB, free: 26.4 MB / 0.5886 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.006452/10.48, allocations: 3.364 MB / 4.244 GB, free: 26.15 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.002401/10.48, allocations: 4.803 MB / 4.249 GB, free: 21.1 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.947e-05/10.48, allocations: 16.02 kB / 4.249 GB, free: 21.1 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009893/10.48, allocations: 271.3 kB / 4.249 GB, free: 21.07 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002187/10.49, allocations: 0.5127 MB / 4.25 GB, free: 21.07 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001721/10.49, allocations: 2.496 MB / 4.252 GB, free: 19 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002812/10.49, allocations: 265.6 kB / 4.252 GB, free: 18.98 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002246/10.49, allocations: 103.1 kB / 4.252 GB, free: 18.98 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.317e-05/10.49, allocations: 5.25 kB / 4.252 GB, free: 18.98 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005591/10.5, allocations: 3.091 MB / 4.255 GB, free: 18.87 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.468e-05/10.5, allocations: 13.5 kB / 4.256 GB, free: 18.87 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008647/10.5, allocations: 275.9 kB / 4.256 GB, free: 18.84 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001934/10.5, allocations: 0.5064 MB / 4.256 GB, free: 18.84 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001611/10.5, allocations: 2.5 MB / 4.259 GB, free: 16.77 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002423/10.5, allocations: 258.6 kB / 4.259 GB, free: 16.75 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002125/10.5, allocations: 98.95 kB / 4.259 GB, free: 16.75 MB / 0.5886 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.001567/10.51, allocations: 0.7225 MB / 4.26 GB, free: 16.52 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000448/10.51, allocations: 209.3 kB / 4.26 GB, free: 16.42 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009966/10.52, allocations: 7.84 MB / 4.268 GB, free: 15.64 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.732e-05/10.52, allocations: 92.78 kB / 4.268 GB, free: 15.64 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.078e-05/10.52, allocations: 0 / 4.268 GB, free: 15.64 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007699/10.52, allocations: 6.728 MB / 4.274 GB, free: 14.83 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01541/10.54, allocations: 11.05 MB / 4.285 GB, free: 14.07 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.311e-05/10.54, allocations: 11.17 kB / 4.285 GB, free: 14.07 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001665/10.54, allocations: 412.7 kB / 4.285 GB, free: 14.07 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00136/10.54, allocations: 377.7 kB / 4.286 GB, free: 14.03 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001881/10.54, allocations: 65.59 kB / 4.286 GB, free: 14.03 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001839/10.54, allocations: 2.572 MB / 4.288 GB, free: 11.95 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/10.54, allocations: 9.172 kB / 4.288 GB, free: 11.95 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01047/10.56, allocations: 7.309 MB / 4.296 GB, free: 11.31 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001988/10.56, allocations: 0.7774 MB / 4.296 GB, free: 10.97 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004283/10.56, allocations: 51.73 kB / 4.296 GB, free: 10.97 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001526/10.56, allocations: 196.6 kB / 4.297 GB, free: 10.96 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000273/10.56, allocations: 157.5 kB / 4.297 GB, free: 10.96 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000137/10.56, allocations: 65.86 kB / 4.297 GB, free: 10.96 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.002147/10.56, allocations: 1.315 MB / 4.298 GB, free: 26.81 MB / 0.6042 GB Notification: Performance of sort global known variables: time 2.5e-07/10.56, allocations: 0.8438 kB / 4.298 GB, free: 26.81 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.01062/10.57, allocations: 2.816 MB / 4.301 GB, free: 26.29 MB / 0.6042 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.02174/10.59, allocations: 10.6 MB / 4.311 GB, free: 21.96 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.009404/10.6, allocations: 5.286 MB / 4.316 GB, free: 20.09 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 8.707e-06/10.6, allocations: 384 / 4.316 GB, free: 20.09 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.003135/10.61, allocations: 2.452 MB / 4.319 GB, free: 19.05 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00454/10.61, allocations: 0.9319 MB / 4.32 GB, free: 18.82 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02174/10.63, allocations: 19.34 MB / 4.338 GB, free: 4.293 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001645/10.63, allocations: 2.305 MB / 4.341 GB, free: 3.391 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.004654/10.64, allocations: 2.688 MB / 4.343 GB, free: 3.305 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001987/10.64, allocations: 1.335 MB / 4.345 GB, free: 2.238 MB / 0.6042 GB Notification: Performance of SimCode: time 6.472e-06/10.64, allocations: 0 / 4.345 GB, free: 2.238 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6046/11.25, allocations: 114.4 MB / 4.456 GB, free: 74.28 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001874/11.25, allocations: 250 kB / 4.457 GB, free: 73.94 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.041/17.29, allocations: 3.938 kB / 4.457 GB, free: 73.94 MB / 0.6198 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes1_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes1.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1_res.mat does not exist to compare? outputFormat=mat