Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.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.SeriesPipes1,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes1",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.001456/0.001456, allocations: 177.8 kB / 8.36 MB, free: 0.7148 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.121/2.121, allocations: 205.3 MB / 214.1 MB, free: 14.14 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.00115/0.00115, allocations: 93.98 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.3093/0.3093, allocations: 43.49 MB / 353.6 MB, free: 2.273 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.778e-05/2.795e-05, allocations: 4 kB / 418.3 MB, free: 40.95 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4401/0.4402, allocations: 58.85 MB / 477.2 MB, free: 5.168 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.676/9.116, allocations: 2.827 GB / 3.293 GB, free: 103.3 MB / 0.4952 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002282/9.116, allocations: 81.7 kB / 3.293 GB, free: 103.3 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.443/13.56, allocations: 0.7952 GB / 4.088 GB, free: 36.93 MB / 0.5265 GB Notification: Performance of FrontEnd: time 2.445e-06/13.56, allocations: 0 / 4.088 GB, free: 36.93 MB / 0.5265 GB Notification: Performance of Transformations before backend: time 0.000328/13.56, allocations: 62.47 kB / 4.088 GB, free: 36.92 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.01835/13.58, allocations: 3.865 MB / 4.092 GB, free: 35.13 MB / 0.5265 GB Notification: Performance of prepare preOptimizeDAE: time 5.346e-05/13.58, allocations: 14.56 kB / 4.092 GB, free: 35.13 MB / 0.5265 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009059/13.59, allocations: 0.8403 MB / 4.093 GB, free: 35 MB / 0.5265 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009101/13.6, allocations: 2.09 MB / 4.095 GB, free: 34.54 MB / 0.5265 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002734/13.6, allocations: 95.66 kB / 4.095 GB, free: 34.54 MB / 0.5265 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001021/13.6, allocations: 113.4 kB / 4.095 GB, free: 34.54 MB / 0.5265 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007649/13.61, allocations: 2.538 MB / 4.097 GB, free: 34.52 MB / 0.5265 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009098/13.61, allocations: 2.808 MB / 4.1 GB, free: 33.98 MB / 0.5265 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.84e-05/13.61, allocations: 7.344 kB / 4.1 GB, free: 33.98 MB / 0.5265 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004382/13.62, allocations: 7.062 kB / 4.1 GB, free: 33.98 MB / 0.5265 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003047/13.62, allocations: 160.4 kB / 4.1 GB, free: 33.98 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.2869/13.9, allocations: 93.93 MB / 4.192 GB, free: 23.43 MB / 0.5733 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004365/13.91, allocations: 1.64 MB / 4.194 GB, free: 23.39 MB / 0.5733 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002401/13.91, allocations: 0.983 MB / 4.195 GB, free: 23.39 MB / 0.5733 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05509/13.96, allocations: 16.94 MB / 4.211 GB, free: 12.38 MB / 0.5733 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003074/13.97, allocations: 1.175 MB / 4.212 GB, free: 12.25 MB / 0.5733 GB Notification: Performance of pre-optimization done (n=147): time 5.901e-06/13.97, allocations: 0 / 4.212 GB, free: 12.25 MB / 0.5733 GB Notification: Performance of matching and sorting (n=163): time 0.0349/14, allocations: 8.084 MB / 4.22 GB, free: 10.54 MB / 0.5733 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002193/14, allocations: 394.6 kB / 4.221 GB, free: 10.09 MB / 0.5733 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002441/14.01, allocations: 1.127 MB / 4.222 GB, free: 9.918 MB / 0.5733 GB Notification: Performance of collectPreVariables (initialization): time 0.0005779/14.01, allocations: 31.5 kB / 4.222 GB, free: 9.887 MB / 0.5733 GB Notification: Performance of collectInitialEqns (initialization): time 0.001066/14.01, allocations: 0.9624 MB / 4.223 GB, free: 9.367 MB / 0.5733 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009614/14.01, allocations: 0.5419 MB / 4.223 GB, free: 9.012 MB / 0.5733 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000241/14.01, allocations: 0 / 4.223 GB, free: 9.012 MB / 0.5733 GB Notification: Performance of setup shared object (initialization): time 0.0006032/14.01, allocations: 388.2 kB / 4.224 GB, free: 24.7 MB / 0.589 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002677/14.01, allocations: 1.027 MB / 4.225 GB, free: 24.69 MB / 0.589 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003133/14.01, allocations: 1.474 MB / 4.226 GB, free: 24.18 MB / 0.589 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02327/14.04, allocations: 3.318 MB / 4.229 GB, free: 22.63 MB / 0.589 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.117e-05/14.04, allocations: 4 kB / 4.229 GB, free: 22.63 MB / 0.589 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.02841/14.07, allocations: 4.941 MB / 4.234 GB, free: 19.79 MB / 0.589 GB Notification: Performance of prepare postOptimizeDAE: time 0.001654/14.07, allocations: 4.652 MB / 4.239 GB, free: 14.88 MB / 0.589 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.055e-05/14.07, allocations: 23.05 kB / 4.239 GB, free: 14.86 MB / 0.589 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001023/14.07, allocations: 235.8 kB / 4.239 GB, free: 14.72 MB / 0.589 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004329/14.07, allocations: 0.5146 MB / 4.239 GB, free: 14.34 MB / 0.589 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002365/14.08, allocations: 2.52 MB / 4.242 GB, free: 12 MB / 0.589 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0044/14.08, allocations: 264.1 kB / 4.242 GB, free: 11.8 MB / 0.589 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007276/14.08, allocations: 102.1 kB / 4.242 GB, free: 11.73 MB / 0.589 GB Notification: Performance of prepare postOptimizeDAE: time 1.524e-05/14.08, allocations: 8 kB / 4.242 GB, free: 11.73 MB / 0.589 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02677/14.11, allocations: 4.588 MB / 4.247 GB, free: 9.129 MB / 0.589 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.07e-05/14.11, allocations: 19.52 kB / 4.247 GB, free: 9.113 MB / 0.589 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009311/14.11, allocations: 237.5 kB / 4.247 GB, free: 8.973 MB / 0.589 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004255/14.11, allocations: 0.5027 MB / 4.247 GB, free: 8.594 MB / 0.589 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002408/14.12, allocations: 2.521 MB / 4.25 GB, free: 6.258 MB / 0.589 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003382/14.12, allocations: 242.4 kB / 4.25 GB, free: 6.078 MB / 0.589 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003824/14.12, allocations: 96.28 kB / 4.25 GB, free: 6.012 MB / 0.589 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 (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.0007861/14.12, allocations: 210.9 kB / 4.25 GB, free: 5.836 MB / 0.589 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00995/14.13, allocations: 2.548 MB / 4.253 GB, free: 4.328 MB / 0.589 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008194/14.13, allocations: 189.7 kB / 4.253 GB, free: 4.141 MB / 0.589 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01599/14.15, allocations: 6.866 MB / 4.26 GB, free: 380 kB / 0.589 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001163/14.15, allocations: 89.8 kB / 4.26 GB, free: 344 kB / 0.589 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.457e-05/14.15, allocations: 0 / 4.26 GB, free: 344 kB / 0.589 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.4487/14.6, allocations: 5.94 MB / 4.266 GB, free: 97.68 MB / 0.589 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02627/14.62, allocations: 9.354 MB / 4.275 GB, free: 97.25 MB / 0.589 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.79e-05/14.62, allocations: 1.125 kB / 4.275 GB, free: 97.25 MB / 0.589 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003354/14.63, allocations: 361.2 kB / 4.275 GB, free: 97.25 MB / 0.589 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001678/14.63, allocations: 334.6 kB / 4.275 GB, free: 97.21 MB / 0.589 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005674/14.63, allocations: 44.22 kB / 4.275 GB, free: 97.21 MB / 0.589 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002343/14.63, allocations: 2.68 MB / 4.278 GB, free: 95.15 MB / 0.589 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.091e-05/14.63, allocations: 3.609 kB / 4.278 GB, free: 95.15 MB / 0.589 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01731/14.65, allocations: 6.479 MB / 4.284 GB, free: 94.72 MB / 0.589 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002579/14.65, allocations: 0.7018 MB / 4.285 GB, free: 94.61 MB / 0.589 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008404/14.65, allocations: 20.36 kB / 4.285 GB, free: 94.61 MB / 0.589 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003306/14.66, allocations: 161.8 kB / 4.285 GB, free: 94.6 MB / 0.589 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006243/14.66, allocations: 137.2 kB / 4.285 GB, free: 94.59 MB / 0.589 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002667/14.66, allocations: 69.23 kB / 4.285 GB, free: 94.59 MB / 0.589 GB Notification: Performance of sorting global known variables: time 0.002391/14.66, allocations: 1.087 MB / 4.287 GB, free: 94.48 MB / 0.589 GB Notification: Performance of sort global known variables: time 8.71e-07/14.66, allocations: 0 / 4.287 GB, free: 94.48 MB / 0.589 GB Notification: Performance of remove unused functions: time 0.01315/14.67, allocations: 2.659 MB / 4.289 GB, free: 94.48 MB / 0.589 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.03107/14.7, allocations: 10.16 MB / 4.299 GB, free: 93.07 MB / 0.589 GB Notification: Performance of simCode: created initialization part: time 0.01151/14.71, allocations: 4.65 MB / 4.304 GB, free: 92.83 MB / 0.589 GB Notification: Performance of simCode: created event and clocks part: time 2.152e-05/14.71, allocations: 3.156 kB / 4.304 GB, free: 92.83 MB / 0.589 GB Notification: Performance of simCode: created simulation system equations: time 0.006114/14.72, allocations: 2.166 MB / 4.306 GB, free: 92.77 MB / 0.589 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00757/14.73, allocations: 0.768 MB / 4.306 GB, free: 92.75 MB / 0.589 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02141/14.75, allocations: 7.044 MB / 4.313 GB, free: 91.46 MB / 0.589 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002342/14.75, allocations: 2.172 MB / 4.315 GB, free: 90.72 MB / 0.589 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002932/14.76, allocations: 1.25 MB / 4.317 GB, free: 90.71 MB / 0.589 GB Notification: Performance of SimCode: time 1.874e-06/14.76, allocations: 0 / 4.317 GB, free: 90.71 MB / 0.589 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.192/19.95, allocations: 126.8 MB / 4.441 GB, free: 53.68 MB / 0.589 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes1_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes1.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1_res.mat does not exist to compare? outputFormat=mat