Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.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.SeriesPipes12,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes12",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes12",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001027/0.001027, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.216/1.216, allocations: 225.4 MB / 240.1 MB, free: 15.08 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008425/0.0008424, allocations: 91.34 kB / 292.1 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.1804/0.1804, allocations: 45.14 MB / 389.3 MB, free: 11.86 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 2.759e-05/2.761e-05, allocations: 4 kB / 460.5 MB, free: 69.93 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09965/0.09969, allocations: 63.25 MB / 0.5115 GB, free: 6.707 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.755/5.855, allocations: 2.833 GB / 3.345 GB, free: 7.324 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000193/5.855, allocations: 83.61 kB / 3.345 GB, free: 7.246 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 2.805/8.66, allocations: 0.811 GB / 4.156 GB, free: 42.5 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.615e-06/8.66, allocations: 0 / 4.156 GB, free: 42.5 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0001662/8.661, allocations: 69.45 kB / 4.156 GB, free: 42.48 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.01288/8.673, allocations: 3.873 MB / 4.16 GB, free: 40.36 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.088e-05/8.673, allocations: 9.438 kB / 4.16 GB, free: 40.36 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006524/8.674, allocations: 289.3 kB / 4.16 GB, free: 40.2 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005573/8.68, allocations: 0.8397 MB / 4.161 GB, free: 39.99 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004815/8.685, allocations: 2.096 MB / 4.163 GB, free: 39.03 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001407/8.685, allocations: 175.2 kB / 4.163 GB, free: 38.96 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003651/8.685, allocations: 200.2 kB / 4.163 GB, free: 38.91 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006155/8.691, allocations: 3.576 MB / 4.167 GB, free: 37.36 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.916e-05/8.691, allocations: 11.56 kB / 4.167 GB, free: 37.36 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002267/8.692, allocations: 90.75 kB / 4.167 GB, free: 37.3 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001776/8.692, allocations: 163.7 kB / 4.167 GB, free: 37.28 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005454/8.697, allocations: 3.172 MB / 4.17 GB, free: 35.37 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.0164/8.714, allocations: 15.19 MB / 4.185 GB, free: 20.93 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003936/8.718, allocations: 2.258 MB / 4.187 GB, free: 19.03 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001159/8.719, allocations: 1.06 MB / 4.188 GB, free: 18.07 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04322/8.762, allocations: 27.12 MB / 4.215 GB, free: 4.383 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004591/8.767, allocations: 1.665 MB / 4.216 GB, free: 2.703 MB / 0.573 GB Notification: Performance of pre-optimization done (n=155): time 5.56e-06/8.767, allocations: 0 / 4.216 GB, free: 2.703 MB / 0.573 GB Notification: Performance of matching and sorting (n=171): time 0.3609/9.128, allocations: 7.024 MB / 4.223 GB, free: 60.24 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.071e-05/9.128, allocations: 279.3 kB / 4.223 GB, free: 59.93 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001995/9.13, allocations: 1.446 MB / 4.225 GB, free: 59.76 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0001587/9.13, allocations: 64.98 kB / 4.225 GB, free: 59.73 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006814/9.131, allocations: 0.9654 MB / 4.226 GB, free: 59.43 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004325/9.131, allocations: 0.5832 MB / 4.226 GB, free: 59.14 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001188/9.131, allocations: 40.12 kB / 4.226 GB, free: 59.14 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001043/9.131, allocations: 382.4 kB / 4.227 GB, free: 58.83 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001391/9.133, allocations: 1.053 MB / 4.228 GB, free: 58.83 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001485/9.134, allocations: 1.509 MB / 4.229 GB, free: 58.33 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001773/9.136, allocations: 1.274 MB / 4.231 GB, free: 58.28 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.596e-06/9.136, allocations: 2.969 kB / 4.231 GB, free: 58.28 MB / 0.573 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.005168/9.141, allocations: 3.683 MB / 4.234 GB, free: 58.05 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009129/9.142, allocations: 4.809 MB / 4.239 GB, free: 53.01 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.321e-05/9.142, allocations: 14.84 kB / 4.239 GB, free: 53.01 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01494/9.157, allocations: 3.027 MB / 4.242 GB, free: 53 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00151/9.159, allocations: 309.1 kB / 4.242 GB, free: 53 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005257/9.164, allocations: 3.305 MB / 4.245 GB, free: 52.43 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002831/9.167, allocations: 264.7 kB / 4.246 GB, free: 52.42 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000259/9.167, allocations: 101.5 kB / 4.246 GB, free: 52.42 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.486e-05/9.167, allocations: 4.281 kB / 4.246 GB, free: 52.42 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005737/9.173, allocations: 3.276 MB / 4.249 GB, free: 52.33 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.962e-05/9.173, allocations: 11.75 kB / 4.249 GB, free: 52.33 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005397/9.178, allocations: 1.64 MB / 4.251 GB, free: 52.3 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001197/9.179, allocations: 354.9 kB / 4.251 GB, free: 52.3 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002682/9.182, allocations: 2.578 MB / 4.253 GB, free: 51.74 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002388/9.184, allocations: 258.4 kB / 4.254 GB, free: 51.73 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001968/9.185, allocations: 100.7 kB / 4.254 GB, free: 51.73 MB / 0.573 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 () * 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.0006821/9.185, allocations: 261.9 kB / 4.254 GB, free: 51.59 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00044/9.186, allocations: 202.4 kB / 4.254 GB, free: 51.49 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008925/9.195, allocations: 7.749 MB / 4.262 GB, free: 50.78 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.539e-05/9.195, allocations: 92.84 kB / 4.262 GB, free: 50.78 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.346e-06/9.195, allocations: 3.781 kB / 4.262 GB, free: 50.78 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005842/9.201, allocations: 6.641 MB / 4.268 GB, free: 49.93 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0116/9.212, allocations: 10.95 MB / 4.279 GB, free: 49.2 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.448e-06/9.212, allocations: 0 / 4.279 GB, free: 49.2 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001486/9.214, allocations: 408 kB / 4.279 GB, free: 49.2 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001078/9.215, allocations: 357.9 kB / 4.28 GB, free: 49.16 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001442/9.215, allocations: 63.2 kB / 4.28 GB, free: 49.16 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001045/9.216, allocations: 2.575 MB / 4.282 GB, free: 47.08 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.973e-06/9.216, allocations: 3.188 kB / 4.282 GB, free: 47.08 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007261/9.223, allocations: 6.97 MB / 4.289 GB, free: 46.44 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001718/9.225, allocations: 0.773 MB / 4.29 GB, free: 46.11 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003483/9.226, allocations: 52.17 kB / 4.29 GB, free: 46.11 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001383/9.227, allocations: 203 kB / 4.29 GB, free: 46.09 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002783/9.227, allocations: 151.4 kB / 4.29 GB, free: 46.09 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001342/9.227, allocations: 67.45 kB / 4.29 GB, free: 46.09 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.001625/9.229, allocations: 1.291 MB / 4.292 GB, free: 45.93 MB / 0.573 GB Notification: Performance of sort global known variables: time 2e-07/9.229, allocations: 6.812 kB / 4.292 GB, free: 45.93 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.009246/9.238, allocations: 2.81 MB / 4.294 GB, free: 45.8 MB / 0.573 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) * 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.01857/9.257, allocations: 10.27 MB / 4.304 GB, free: 44.44 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.007324/9.264, allocations: 5.116 MB / 4.309 GB, free: 44.12 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 6.322e-06/9.264, allocations: 3.812 kB / 4.309 GB, free: 44.12 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.002823/9.267, allocations: 2.373 MB / 4.312 GB, free: 44.04 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00471/9.272, allocations: 0.9246 MB / 4.313 GB, free: 44.02 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01544/9.287, allocations: 7.695 MB / 4.32 GB, free: 42.64 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001504/9.289, allocations: 2.306 MB / 4.322 GB, free: 41.87 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.003608/9.292, allocations: 1.961 MB / 4.324 GB, free: 41.85 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00127/9.294, allocations: 1.293 MB / 4.326 GB, free: 41.84 MB / 0.573 GB Notification: Performance of SimCode: time 8.62e-07/9.294, allocations: 0 / 4.326 GB, free: 41.84 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4988/9.793, allocations: 131.1 MB / 4.454 GB, free: 66.06 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001751/9.793, allocations: 228.6 kB / 4.454 GB, free: 65.84 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.768/15.56, allocations: 0.9688 kB / 4.454 GB, free: 65.84 MB / 0.5886 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes12_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes12.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12_res.mat does not exist to compare? outputFormat=mat