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.002224/0.002223, allocations: 186.1 kB / 16.4 MB, free: 5.719 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.978/1.978, allocations: 205.4 MB / 222.5 MB, free: 9.129 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001123/0.001123, allocations: 92.42 kB / 270.9 MB, free: 8.375 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.77/0.77, allocations: 43.56 MB / 362.7 MB, free: 52.2 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004821/0.0004823, allocations: 12 kB / 431.5 MB, free: 6.082 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1324/0.1329, allocations: 58.84 MB / 490.3 MB, free: 11.16 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.299/9.432, allocations: 2.828 GB / 3.306 GB, free: 87.81 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002929/9.432, allocations: 81.53 kB / 3.306 GB, free: 87.77 MB / 0.5105 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.647/14.08, allocations: 0.8676 GB / 4.174 GB, free: 21.45 MB / 0.5261 GB Notification: Performance of FrontEnd: time 3.306e-06/14.08, allocations: 0 / 4.174 GB, free: 21.45 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0004367/14.08, allocations: 73.05 kB / 4.174 GB, free: 21.38 MB / 0.5261 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.0256/14.11, allocations: 4.137 MB / 4.178 GB, free: 17.51 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 6.387e-05/14.11, allocations: 8.031 kB / 4.178 GB, free: 17.5 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00205/14.11, allocations: 304.2 kB / 4.178 GB, free: 17.2 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01384/14.12, allocations: 0.8439 MB / 4.179 GB, free: 16.36 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009888/14.13, allocations: 2.099 MB / 4.181 GB, free: 14.25 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003745/14.13, allocations: 177.3 kB / 4.182 GB, free: 14.08 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001154/14.13, allocations: 209.6 kB / 4.182 GB, free: 13.89 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01286/14.15, allocations: 3.594 MB / 4.185 GB, free: 10.11 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.866e-05/14.15, allocations: 7.938 kB / 4.185 GB, free: 10.1 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004276/14.15, allocations: 83.5 kB / 4.185 GB, free: 10.03 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002952/14.15, allocations: 167.5 kB / 4.185 GB, free: 9.863 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01333/14.16, allocations: 3.297 MB / 4.189 GB, free: 6.562 MB / 0.5261 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.035/14.2, allocations: 15.21 MB / 4.204 GB, free: 6.238 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0104/14.21, allocations: 2.343 MB / 4.206 GB, free: 3.895 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5278/14.73, allocations: 24.44 MB / 4.23 GB, free: 27.74 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007121/14.74, allocations: 1.663 MB / 4.231 GB, free: 27.65 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=155): time 5.691e-06/14.74, allocations: 0 / 4.231 GB, free: 27.65 MB / 0.5417 GB Notification: Performance of matching and sorting (n=171): time 0.03415/14.77, allocations: 8.314 MB / 4.239 GB, free: 26.91 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001169/14.77, allocations: 280.4 kB / 4.24 GB, free: 26.6 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00339/14.78, allocations: 1.47 MB / 4.241 GB, free: 26.43 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0005904/14.78, allocations: 57.2 kB / 4.241 GB, free: 26.4 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.001002/14.78, allocations: 0.8994 MB / 4.242 GB, free: 26.04 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.001087/14.78, allocations: 0.586 MB / 4.243 GB, free: 25.75 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003235/14.78, allocations: 42.03 kB / 4.243 GB, free: 25.75 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0002018/14.78, allocations: 390.6 kB / 4.243 GB, free: 25.43 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004186/14.79, allocations: 1.161 MB / 4.244 GB, free: 25.43 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004544/14.79, allocations: 1.629 MB / 4.246 GB, free: 24.93 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004475/14.79, allocations: 1.383 MB / 4.247 GB, free: 24.88 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.02e-05/14.8, allocations: 3.125 kB / 4.247 GB, free: 24.88 MB / 0.5417 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.01274/14.81, allocations: 3.85 MB / 4.251 GB, free: 24.73 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.001119/14.81, allocations: 4.653 MB / 4.255 GB, free: 19.89 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.651e-05/14.81, allocations: 15.75 kB / 4.255 GB, free: 19.89 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02928/14.84, allocations: 3.194 MB / 4.259 GB, free: 19.87 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002278/14.84, allocations: 307.2 kB / 4.259 GB, free: 19.87 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009654/14.85, allocations: 3.507 MB / 4.262 GB, free: 19.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004197/14.85, allocations: 258.8 kB / 4.263 GB, free: 19.29 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000567/14.86, allocations: 98.91 kB / 4.263 GB, free: 19.29 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.681e-05/14.86, allocations: 6.031 kB / 4.263 GB, free: 19.29 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0129/14.87, allocations: 3.56 MB / 4.266 GB, free: 19.2 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.917e-05/14.87, allocations: 16.33 kB / 4.266 GB, free: 19.2 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01217/14.88, allocations: 1.713 MB / 4.268 GB, free: 19.18 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002778/14.88, allocations: 355.6 kB / 4.268 GB, free: 19.18 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006959/14.89, allocations: 2.742 MB / 4.271 GB, free: 18.63 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003187/14.89, allocations: 259 kB / 4.271 GB, free: 18.62 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003675/14.89, allocations: 100.5 kB / 4.271 GB, free: 18.62 MB / 0.5417 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 (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.002141/14.9, allocations: 0.7228 MB / 4.272 GB, free: 18.4 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006652/14.9, allocations: 199.5 kB / 4.272 GB, free: 18.3 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0175/14.91, allocations: 7.831 MB / 4.28 GB, free: 17.62 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.868e-05/14.91, allocations: 99.08 kB / 4.28 GB, free: 17.61 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.157e-05/14.91, allocations: 0 / 4.28 GB, free: 17.61 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01371/14.93, allocations: 6.731 MB / 4.286 GB, free: 16.79 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02419/14.95, allocations: 11.05 MB / 4.297 GB, free: 16.1 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.755e-05/14.95, allocations: 2.344 kB / 4.297 GB, free: 16.1 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003491/14.96, allocations: 412.3 kB / 4.298 GB, free: 16.1 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002493/14.96, allocations: 378.2 kB / 4.298 GB, free: 16.06 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005206/14.96, allocations: 66.94 kB / 4.298 GB, free: 16.06 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001842/14.96, allocations: 2.578 MB / 4.301 GB, free: 13.98 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/14.96, allocations: 3.234 kB / 4.301 GB, free: 13.98 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0228/14.98, allocations: 7.302 MB / 4.308 GB, free: 13.35 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004089/14.99, allocations: 0.769 MB / 4.308 GB, free: 13.04 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001498/14.99, allocations: 49.3 kB / 4.308 GB, free: 13.04 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005344/14.99, allocations: 208.8 kB / 4.309 GB, free: 13.03 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009813/15, allocations: 149.6 kB / 4.309 GB, free: 13.03 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003837/15, allocations: 67.53 kB / 4.309 GB, free: 13.03 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.00463/15, allocations: 1.317 MB / 4.31 GB, free: 12.88 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.152e-06/15, allocations: 0 / 4.31 GB, free: 12.88 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01799/15.02, allocations: 2.801 MB / 4.313 GB, free: 12.76 MB / 0.5417 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.03894/15.06, allocations: 10.58 MB / 4.323 GB, free: 11.39 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01686/15.08, allocations: 5.39 MB / 4.328 GB, free: 11.07 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.122e-05/15.08, allocations: 0 / 4.328 GB, free: 11.07 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.006258/15.08, allocations: 2.446 MB / 4.331 GB, free: 10.98 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008983/15.09, allocations: 0.9275 MB / 4.332 GB, free: 10.96 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03389/15.12, allocations: 19.38 MB / 4.351 GB, free: 14.54 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003506/15.13, allocations: 2.263 MB / 4.353 GB, free: 13.75 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003256/15.13, allocations: 1.32 MB / 4.354 GB, free: 13.23 MB / 0.5573 GB Notification: Performance of SimCode: time 1.553e-06/15.13, allocations: 3.344 kB / 4.354 GB, free: 13.23 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.06/21.19, allocations: 109.6 MB / 4.461 GB, free: 70.86 MB / 0.573 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