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.002157/0.002163, allocations: 181.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.089/2.089, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001069/0.001069, allocations: 78.7 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2815/0.2815, allocations: 43.5 MB / 359.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.934e-05/3.966e-05, allocations: 0 / 425.4 MB, free: 23.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1181/0.1182, allocations: 58.85 MB / 484.2 MB, free: 12.37 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.284/8.403, allocations: 2.828 GB / 3.3 GB, free: 11.24 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002895/8.403, allocations: 80.11 kB / 3.3 GB, free: 11.2 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 5.007/13.41, allocations: 0.8655 GB / 4.166 GB, free: 38.59 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.645e-06/13.41, allocations: 1.094 kB / 4.166 GB, free: 38.59 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0002927/13.41, allocations: 71 kB / 4.166 GB, free: 38.59 MB / 0.5417 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.02072/13.43, allocations: 3.856 MB / 4.17 GB, free: 36.96 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.251e-05/13.43, allocations: 7.75 kB / 4.17 GB, free: 36.96 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001102/13.43, allocations: 293.8 kB / 4.17 GB, free: 36.91 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008755/13.44, allocations: 0.8439 MB / 4.171 GB, free: 36.78 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008539/13.45, allocations: 2.081 MB / 4.173 GB, free: 36.34 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002837/13.45, allocations: 187.9 kB / 4.173 GB, free: 36.33 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007409/13.45, allocations: 198.9 kB / 4.173 GB, free: 36.32 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01086/13.46, allocations: 3.573 MB / 4.177 GB, free: 35.77 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.342e-05/13.46, allocations: 12.73 kB / 4.177 GB, free: 35.77 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003942/13.46, allocations: 88.56 kB / 4.177 GB, free: 35.77 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003007/13.46, allocations: 164.8 kB / 4.177 GB, free: 35.77 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01049/13.47, allocations: 3.17 MB / 4.18 GB, free: 35.75 MB / 0.5417 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.02922/13.5, allocations: 15.2 MB / 4.195 GB, free: 26.72 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007341/13.51, allocations: 2.246 MB / 4.197 GB, free: 26.68 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002479/13.51, allocations: 1.061 MB / 4.198 GB, free: 26.67 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07862/13.59, allocations: 24.54 MB / 4.222 GB, free: 27.74 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006507/13.6, allocations: 1.667 MB / 4.224 GB, free: 27.64 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=155): time 7.203e-06/13.6, allocations: 0 / 4.224 GB, free: 27.64 MB / 0.5573 GB Notification: Performance of matching and sorting (n=171): time 0.02808/13.63, allocations: 7.043 MB / 4.231 GB, free: 26.72 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001965/13.63, allocations: 282.8 kB / 4.231 GB, free: 26.41 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003337/13.63, allocations: 1.455 MB / 4.232 GB, free: 26.22 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0006587/13.63, allocations: 60.77 kB / 4.232 GB, free: 26.19 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009867/13.63, allocations: 0.8968 MB / 4.233 GB, free: 25.74 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.001058/13.63, allocations: 0.5801 MB / 4.234 GB, free: 25.37 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002511/13.63, allocations: 42.28 kB / 4.234 GB, free: 25.37 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0002452/13.63, allocations: 391.1 kB / 4.234 GB, free: 25.06 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002758/13.64, allocations: 1.047 MB / 4.235 GB, free: 25.05 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003405/13.64, allocations: 1.518 MB / 4.237 GB, free: 24.55 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003482/13.64, allocations: 1.273 MB / 4.238 GB, free: 24.49 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.292e-05/13.64, allocations: 3.625 kB / 4.238 GB, free: 24.49 MB / 0.5573 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.01012/13.65, allocations: 3.556 MB / 4.242 GB, free: 24.34 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.00213/13.65, allocations: 4.652 MB / 4.246 GB, free: 19.5 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.013e-05/13.66, allocations: 12.59 kB / 4.246 GB, free: 19.5 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02709/13.68, allocations: 3.033 MB / 4.249 GB, free: 19.48 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002354/13.68, allocations: 304.5 kB / 4.249 GB, free: 19.48 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007816/13.69, allocations: 3.304 MB / 4.253 GB, free: 18.91 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004401/13.7, allocations: 267.4 kB / 4.253 GB, free: 18.89 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007466/13.7, allocations: 99.08 kB / 4.253 GB, free: 18.89 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.68e-05/13.7, allocations: 3.719 kB / 4.253 GB, free: 18.89 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009766/13.71, allocations: 3.271 MB / 4.256 GB, free: 18.8 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.161e-05/13.71, allocations: 15.34 kB / 4.256 GB, free: 18.8 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01043/13.72, allocations: 1.587 MB / 4.258 GB, free: 18.78 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00278/13.72, allocations: 349.6 kB / 4.258 GB, free: 18.78 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005297/13.73, allocations: 2.567 MB / 4.261 GB, free: 18.23 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003417/13.73, allocations: 255.1 kB / 4.261 GB, free: 18.21 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005147/13.73, allocations: 100.6 kB / 4.261 GB, free: 18.21 MB / 0.5573 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.0008463/13.73, allocations: 259.3 kB / 4.261 GB, free: 18.06 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007156/13.73, allocations: 204.1 kB / 4.261 GB, free: 17.96 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01614/13.75, allocations: 7.739 MB / 4.269 GB, free: 17.17 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001111/13.75, allocations: 97.27 kB / 4.269 GB, free: 17.17 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.319e-05/13.75, allocations: 3.953 kB / 4.269 GB, free: 17.16 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01321/13.76, allocations: 6.637 MB / 4.275 GB, free: 16.31 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.023/13.78, allocations: 10.94 MB / 4.286 GB, free: 15.55 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-05/13.78, allocations: 3.281 kB / 4.286 GB, free: 15.55 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003574/13.79, allocations: 409.5 kB / 4.287 GB, free: 15.55 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001995/13.79, allocations: 353.4 kB / 4.287 GB, free: 15.5 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005749/13.79, allocations: 67.44 kB / 4.287 GB, free: 15.5 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002182/13.79, allocations: 2.571 MB / 4.289 GB, free: 13.43 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.886e-06/13.79, allocations: 0 / 4.289 GB, free: 13.43 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01396/13.81, allocations: 6.969 MB / 4.296 GB, free: 12.79 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002625/13.81, allocations: 0.771 MB / 4.297 GB, free: 12.45 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008222/13.81, allocations: 59.17 kB / 4.297 GB, free: 12.45 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003296/13.81, allocations: 206.1 kB / 4.297 GB, free: 12.43 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004925/13.81, allocations: 149.7 kB / 4.297 GB, free: 12.43 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002357/13.81, allocations: 69.78 kB / 4.297 GB, free: 12.43 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.00282/13.82, allocations: 1.288 MB / 4.299 GB, free: 12.25 MB / 0.5573 GB Notification: Performance of sort global known variables: time 6.11e-07/13.82, allocations: 0 / 4.299 GB, free: 12.25 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01361/13.83, allocations: 2.793 MB / 4.301 GB, free: 11.66 MB / 0.5573 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.03031/13.86, allocations: 10.26 MB / 4.311 GB, free: 7.477 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.01289/13.87, allocations: 5.053 MB / 4.316 GB, free: 5.59 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 9.889e-06/13.87, allocations: 0 / 4.316 GB, free: 5.59 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.005302/13.88, allocations: 2.374 MB / 4.319 GB, free: 4.551 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008448/13.89, allocations: 0.9118 MB / 4.32 GB, free: 4.328 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02477/13.91, allocations: 7.722 MB / 4.327 GB, free: 15.57 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0028/13.92, allocations: 2.261 MB / 4.329 GB, free: 13.8 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002992/13.92, allocations: 1.325 MB / 4.331 GB, free: 12.58 MB / 0.573 GB Notification: Performance of SimCode: time 1.783e-06/13.92, allocations: 0 / 4.331 GB, free: 12.58 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.765/19.68, allocations: 112.5 MB / 4.44 GB, free: 57.72 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