Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes13",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes13",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001244/0.001244, allocations: 185.5 kB / 7.806 MB, free: 2.488 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.465/1.465, allocations: 205.2 MB / 213.4 MB, free: 13.91 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.0009641/0.0009641, allocations: 91.31 kB / 261.4 MB, free: 13.6 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.2251/0.2251, allocations: 43.48 MB / 352.8 MB, free: 2.02 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2424/0.4675, allocations: 64.97 MB / 417.8 MB, free: 40.48 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.416/0.8835, allocations: 58.84 MB / 476.7 MB, free: 5.184 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.128/8.011, allocations: 2.827 GB / 3.292 GB, free: 38.24 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002628/8.012, allocations: 79.95 kB / 3.292 GB, free: 38.16 MB / 0.4948 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: 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 4.203/12.21, allocations: 0.8656 GB / 4.158 GB, free: 27.44 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 6.202e-05/12.21, allocations: 12.06 kB / 4.158 GB, free: 27.44 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008441/12.22, allocations: 0.8824 MB / 4.159 GB, free: 27.3 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01177/12.24, allocations: 2.115 MB / 4.161 GB, free: 26.85 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003548/12.24, allocations: 93.7 kB / 4.161 GB, free: 26.85 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00133/12.24, allocations: 120.9 kB / 4.161 GB, free: 26.85 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007097/12.24, allocations: 2.615 MB / 4.164 GB, free: 26.84 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009378/12.25, allocations: 2.868 MB / 4.166 GB, free: 26.3 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001298/12.25, allocations: 9.281 kB / 4.166 GB, free: 26.29 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00084/12.25, allocations: 7.094 kB / 4.166 GB, free: 26.29 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002505/12.25, allocations: 174.8 kB / 4.167 GB, free: 26.29 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2173/12.47, allocations: 94.84 MB / 4.259 GB, free: 15.18 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002505/12.47, allocations: 1.132 MB / 4.26 GB, free: 15.16 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001913/12.48, allocations: 1.03 MB / 4.261 GB, free: 15.14 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03894/12.52, allocations: 16.94 MB / 4.278 GB, free: 20.02 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003246/12.52, allocations: 1.208 MB / 4.279 GB, free: 19.88 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=147): time 7.484e-06/12.52, allocations: 0 / 4.279 GB, free: 19.88 MB / 0.5886 GB Notification: Performance of matching and sorting (n=163): time 0.03261/12.55, allocations: 8.386 MB / 4.287 GB, free: 18.18 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002793/12.55, allocations: 387.1 kB / 4.288 GB, free: 17.75 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003404/12.56, allocations: 1.15 MB / 4.289 GB, free: 17.57 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.00053/12.56, allocations: 32.48 kB / 4.289 GB, free: 17.54 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.001168/12.56, allocations: 0.767 MB / 4.29 GB, free: 17.08 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.001129/12.56, allocations: 0.54 MB / 4.29 GB, free: 16.73 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003384/12.56, allocations: 5.562 kB / 4.29 GB, free: 16.73 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0002991/12.56, allocations: 386.1 kB / 4.29 GB, free: 16.42 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002175/12.56, allocations: 1.158 MB / 4.292 GB, free: 16.42 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00242/12.56, allocations: 1.616 MB / 4.293 GB, free: 15.91 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01554/12.58, allocations: 3.531 MB / 4.297 GB, free: 15.82 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.898e-05/12.58, allocations: 3.75 kB / 4.297 GB, free: 15.82 MB / 0.5886 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.02715/12.61, allocations: 6.553 MB / 4.303 GB, free: 15.58 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.003559/12.61, allocations: 4.682 MB / 4.308 GB, free: 10.73 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001295/12.61, allocations: 18.69 kB / 4.308 GB, free: 10.73 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01049/12.62, allocations: 2.149 MB / 4.31 GB, free: 10.67 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002075/12.62, allocations: 316.1 kB / 4.31 GB, free: 10.67 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01244/12.64, allocations: 4.307 MB / 4.314 GB, free: 10.09 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004792/12.64, allocations: 262.5 kB / 4.314 GB, free: 10.05 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001021/12.64, allocations: 104.3 kB / 4.315 GB, free: 10.05 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 2.039e-05/12.64, allocations: 4.75 kB / 4.315 GB, free: 10.05 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02484/12.67, allocations: 5.323 MB / 4.32 GB, free: 9.93 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.664e-05/12.67, allocations: 15.59 kB / 4.32 GB, free: 9.93 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007291/12.67, allocations: 1.614 MB / 4.321 GB, free: 9.867 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001926/12.68, allocations: 361.6 kB / 4.322 GB, free: 9.863 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006631/12.68, allocations: 3.005 MB / 4.325 GB, free: 9.301 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003766/12.69, allocations: 234.3 kB / 4.325 GB, free: 9.266 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008606/12.69, allocations: 101.2 kB / 4.325 GB, free: 9.266 MB / 0.5886 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.00136/12.69, allocations: 187.2 kB / 4.325 GB, free: 9.117 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00277/12.69, allocations: 0.6526 MB / 4.326 GB, free: 9.023 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0141/12.71, allocations: 6.688 MB / 4.332 GB, free: 6.68 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.63e-05/12.71, allocations: 53.05 kB / 4.332 GB, free: 6.656 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.745e-05/12.71, allocations: 0 / 4.332 GB, free: 6.656 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009771/12.72, allocations: 5.484 MB / 4.338 GB, free: 3.336 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4427/13.16, allocations: 9.293 MB / 4.347 GB, free: 132.4 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.76e-05/13.16, allocations: 3.797 kB / 4.347 GB, free: 132.4 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001683/13.16, allocations: 334.5 kB / 4.347 GB, free: 132.4 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001005/13.16, allocations: 332.9 kB / 4.347 GB, free: 132.3 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001957/13.16, allocations: 51.11 kB / 4.347 GB, free: 132.3 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001913/13.16, allocations: 2.721 MB / 4.35 GB, free: 130.3 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.853e-06/13.16, allocations: 0 / 4.35 GB, free: 130.3 MB / 0.5886 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01281/13.18, allocations: 7.143 MB / 4.357 GB, free: 129.9 MB / 0.5886 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.017/13.19, allocations: 9.683 MB / 4.367 GB, free: 129 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00212/13.19, allocations: 0.6927 MB / 4.367 GB, free: 128.9 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005329/13.2, allocations: 18.25 kB / 4.367 GB, free: 128.9 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002018/13.2, allocations: 161.4 kB / 4.367 GB, free: 128.9 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000328/13.2, allocations: 132.3 kB / 4.367 GB, free: 128.9 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000187/13.2, allocations: 68.91 kB / 4.368 GB, free: 128.9 MB / 0.5886 GB Notification: Performance of sort global known variables: time 0.001992/13.2, allocations: 1.106 MB / 4.369 GB, free: 128.8 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01812/13.22, allocations: 3.209 MB / 4.372 GB, free: 128.8 MB / 0.5886 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: 36 ($cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse21.phase,$cse21.region,$cse22.phase,$cse22.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,$cse29.phase,$cse29.region,$cse31.phase,$cse31.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 (173): * Single equations (assignments): 155 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 13 * 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.01971/13.24, allocations: 3.059 MB / 4.375 GB, free: 128.7 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.01195/13.25, allocations: 5.576 MB / 4.38 GB, free: 128.5 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.074e-05/13.25, allocations: 0 / 4.38 GB, free: 128.5 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.004319/13.25, allocations: 2.867 MB / 4.383 GB, free: 128.4 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005089/13.26, allocations: 0.7354 MB / 4.384 GB, free: 128.4 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01518/13.27, allocations: 5.951 MB / 4.39 GB, free: 127.4 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00367/13.28, allocations: 2.328 MB / 4.392 GB, free: 126.7 MB / 0.5886 GB Notification: Performance of SimCode: time 2.444e-06/13.28, allocations: 0 / 4.392 GB, free: 126.7 MB / 0.5886 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes13_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes13.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.pipe 2>&1)