Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.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.SeriesPipes13,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes13",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes13",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0016/0.0016, allocations: 202.3 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.433/1.433, allocations: 225.6 MB / 234.8 MB, free: 3.312 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009507/0.0009507, allocations: 97.97 kB / 286.7 MB, free: 5.262 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1992/0.1992, allocations: 45.14 MB / 383.8 MB, free: 292 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 2.248e-05/2.248e-05, allocations: 0 / 453.3 MB, free: 75.75 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1567/0.1568, allocations: 63.25 MB / 0.5045 GB, free: 12.55 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.394/6.551, allocations: 2.833 GB / 3.337 GB, free: 10.18 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002216/6.551, allocations: 78.58 kB / 3.337 GB, free: 10.14 MB / 0.5261 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 4.419/10.97, allocations: 0.8669 GB / 4.204 GB, free: 34.99 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.763e-06/10.97, allocations: 3.125 kB / 4.204 GB, free: 34.99 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0002168/10.97, allocations: 62.38 kB / 4.204 GB, free: 34.99 MB / 0.5573 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.01808/10.99, allocations: 3.861 MB / 4.208 GB, free: 33.47 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 5.836e-05/10.99, allocations: 11.69 kB / 4.208 GB, free: 33.47 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006872/11, allocations: 0.8451 MB / 4.209 GB, free: 33.33 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007209/11, allocations: 2.089 MB / 4.211 GB, free: 32.89 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002515/11, allocations: 96.69 kB / 4.211 GB, free: 32.89 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007181/11, allocations: 117 kB / 4.211 GB, free: 32.88 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006308/11.01, allocations: 2.543 MB / 4.214 GB, free: 32.87 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00648/11.02, allocations: 2.798 MB / 4.216 GB, free: 32.33 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.7e-05/11.02, allocations: 6.422 kB / 4.216 GB, free: 32.33 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002552/11.02, allocations: 6.719 kB / 4.216 GB, free: 32.33 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003335/11.02, allocations: 163.3 kB / 4.216 GB, free: 32.32 MB / 0.5573 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.2078/11.23, allocations: 102.8 MB / 4.317 GB, free: 29.55 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003607/11.23, allocations: 1.646 MB / 4.318 GB, free: 29.51 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001839/11.23, allocations: 0.9823 MB / 4.319 GB, free: 29.5 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03806/11.27, allocations: 18.78 MB / 4.338 GB, free: 16.61 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0034/11.27, allocations: 1.177 MB / 4.339 GB, free: 16.48 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=147): time 1.07e-05/11.27, allocations: 0.8438 kB / 4.339 GB, free: 16.48 MB / 0.6198 GB Notification: Performance of matching and sorting (n=163): time 0.03157/11.3, allocations: 8.096 MB / 4.347 GB, free: 14.77 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000329/11.3, allocations: 385.4 kB / 4.347 GB, free: 14.33 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003283/11.31, allocations: 1.129 MB / 4.348 GB, free: 14.16 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 0.0005986/11.31, allocations: 25.7 kB / 4.348 GB, free: 14.12 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.001234/11.31, allocations: 1.009 MB / 4.349 GB, free: 13.67 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007719/11.31, allocations: 0.5361 MB / 4.35 GB, free: 13.32 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001426/11.31, allocations: 3.469 kB / 4.35 GB, free: 13.32 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0002553/11.31, allocations: 383.2 kB / 4.35 GB, free: 13.01 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001669/11.31, allocations: 1.025 MB / 4.351 GB, free: 13 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001961/11.31, allocations: 1.476 MB / 4.353 GB, free: 12.5 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007015/11.32, allocations: 2.135 MB / 4.355 GB, free: 12.45 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.249e-05/11.32, allocations: 3.938 kB / 4.355 GB, free: 12.45 MB / 0.6198 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.01298/11.33, allocations: 4.395 MB / 4.359 GB, free: 12.24 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 0.003605/11.34, allocations: 4.729 MB / 4.364 GB, free: 23.36 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.12e-05/11.34, allocations: 13.72 kB / 4.364 GB, free: 23.36 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007822/11.35, allocations: 2.028 MB / 4.366 GB, free: 23.31 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001722/11.35, allocations: 311 kB / 4.366 GB, free: 23.31 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008003/11.36, allocations: 3.682 MB / 4.369 GB, free: 22.73 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003938/11.36, allocations: 264.6 kB / 4.37 GB, free: 22.7 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006105/11.36, allocations: 100.5 kB / 4.37 GB, free: 22.7 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.502e-05/11.36, allocations: 6.469 kB / 4.37 GB, free: 22.7 MB / 0.6355 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01114/11.37, allocations: 3.799 MB / 4.374 GB, free: 22.61 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.492e-05/11.37, allocations: 13.62 kB / 4.374 GB, free: 22.61 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006022/11.38, allocations: 1.543 MB / 4.375 GB, free: 22.56 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001676/11.38, allocations: 360.5 kB / 4.375 GB, free: 22.55 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003909/11.38, allocations: 2.686 MB / 4.378 GB, free: 21.99 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002934/11.39, allocations: 234.8 kB / 4.378 GB, free: 21.96 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004537/11.39, allocations: 96.5 kB / 4.378 GB, free: 21.96 MB / 0.6355 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.001091/11.39, allocations: 189.8 kB / 4.379 GB, free: 21.81 MB / 0.6355 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.007311/11.4, allocations: 2.564 MB / 4.381 GB, free: 21.61 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008284/11.4, allocations: 181.9 kB / 4.381 GB, free: 21.52 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01164/11.41, allocations: 6.873 MB / 4.388 GB, free: 20.88 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.725e-05/11.41, allocations: 84.06 kB / 4.388 GB, free: 20.88 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.478e-05/11.41, allocations: 7.766 kB / 4.388 GB, free: 20.88 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008179/11.42, allocations: 5.697 MB / 4.394 GB, free: 20.18 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01687/11.43, allocations: 9.374 MB / 4.403 GB, free: 19.59 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.829e-05/11.43, allocations: 0 / 4.403 GB, free: 19.59 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001598/11.43, allocations: 355.2 kB / 4.403 GB, free: 19.58 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009646/11.44, allocations: 338.4 kB / 4.403 GB, free: 19.54 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002066/11.44, allocations: 39.97 kB / 4.403 GB, free: 19.54 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002392/11.44, allocations: 2.694 MB / 4.406 GB, free: 17.44 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.997e-06/11.44, allocations: 1.5 kB / 4.406 GB, free: 17.44 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01246/11.45, allocations: 6.468 MB / 4.412 GB, free: 16.25 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002987/11.45, allocations: 0.7097 MB / 4.413 GB, free: 15.75 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001174/11.46, allocations: 18.66 kB / 4.413 GB, free: 15.74 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003105/11.46, allocations: 168.3 kB / 4.413 GB, free: 15.62 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004262/11.46, allocations: 136.9 kB / 4.413 GB, free: 15.55 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002421/11.46, allocations: 66.72 kB / 4.413 GB, free: 15.51 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 0.002817/11.46, allocations: 1.078 MB / 4.414 GB, free: 14.88 MB / 0.6355 GB Notification: Performance of sort global known variables: time 4.41e-07/11.46, allocations: 7.938 kB / 4.414 GB, free: 14.87 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.01492/11.48, allocations: 2.681 MB / 4.417 GB, free: 12.36 MB / 0.6355 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.02973/11.51, allocations: 10.18 MB / 4.427 GB, free: 5.688 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.01127/11.52, allocations: 4.767 MB / 4.432 GB, free: 2.945 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.432e-05/11.52, allocations: 4 kB / 4.432 GB, free: 2.941 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.004196/11.52, allocations: 2.171 MB / 4.434 GB, free: 1.844 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005695/11.53, allocations: 0.7719 MB / 4.435 GB, free: 1.426 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5539/12.08, allocations: 7.053 MB / 4.441 GB, free: 109.8 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002039/12.08, allocations: 2.224 MB / 4.444 GB, free: 109.1 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 0.004451/12.09, allocations: 1.973 MB / 4.446 GB, free: 109 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00171/12.09, allocations: 1.19 MB / 4.447 GB, free: 109 MB / 0.6355 GB Notification: Performance of SimCode: time 1.633e-06/12.09, allocations: 1.969 kB / 4.447 GB, free: 109 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2357/12.33, allocations: 110 MB / 4.554 GB, free: 104.4 MB / 0.6355 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002025/12.33, allocations: 171 kB / 4.554 GB, free: 104.2 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.675/19, allocations: 0 / 4.554 GB, free: 104.2 MB / 0.6355 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes13_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes13.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13_res.mat does not exist to compare? outputFormat=mat