Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.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.SeriesPipes12,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes12",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes12",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.002209/0.002209, allocations: 187.9 kB / 7.802 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.53/1.53, allocations: 205.2 MB / 213.4 MB, free: 13.86 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.0009535/0.0009538, allocations: 96.91 kB / 261.4 MB, free: 13.55 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.2305/0.2305, allocations: 43.49 MB / 352.9 MB, free: 1.945 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2489/0.4794, allocations: 64.96 MB / 417.8 MB, free: 40.45 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3968/0.8762, allocations: 58.84 MB / 476.6 MB, free: 5.184 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.875/7.751, allocations: 2.827 GB / 3.292 GB, free: 38.9 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002488/7.751, allocations: 83.45 kB / 3.292 GB, free: 38.82 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: 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 3.628/11.38, allocations: 0.8034 GB / 4.096 GB, free: 38.48 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.358e-05/11.38, allocations: 7.375 kB / 4.096 GB, free: 38.48 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008039/11.39, allocations: 0.8779 MB / 4.097 GB, free: 38.27 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01028/11.4, allocations: 2.1 MB / 4.099 GB, free: 37.33 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005555/11.4, allocations: 93.11 kB / 4.099 GB, free: 37.32 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00194/11.4, allocations: 119.4 kB / 4.099 GB, free: 37.32 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01007/11.41, allocations: 2.622 MB / 4.101 GB, free: 36.45 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01006/11.42, allocations: 2.864 MB / 4.104 GB, free: 35.15 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001439/11.42, allocations: 11.12 kB / 4.104 GB, free: 35.14 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007659/11.42, allocations: 5.875 kB / 4.104 GB, free: 35.14 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003548/11.42, allocations: 175.9 kB / 4.104 GB, free: 35.12 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5862/12.01, allocations: 94.83 MB / 4.197 GB, free: 67.84 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002332/12.01, allocations: 1.143 MB / 4.198 GB, free: 67.82 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001817/12.01, allocations: 1.028 MB / 4.199 GB, free: 67.8 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03766/12.05, allocations: 16.93 MB / 4.216 GB, free: 57.29 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003619/12.05, allocations: 1.213 MB / 4.217 GB, free: 57.16 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=147): time 7.033e-06/12.05, allocations: 0 / 4.217 GB, free: 57.16 MB / 0.5417 GB Notification: Performance of matching and sorting (n=163): time 0.03404/12.09, allocations: 8.396 MB / 4.225 GB, free: 55.7 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001934/12.09, allocations: 389.8 kB / 4.225 GB, free: 55.26 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002702/12.09, allocations: 1.152 MB / 4.226 GB, free: 55.09 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.000504/12.09, allocations: 28.73 kB / 4.227 GB, free: 55.06 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.001032/12.09, allocations: 0.7752 MB / 4.227 GB, free: 54.72 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.001042/12.09, allocations: 0.5296 MB / 4.228 GB, free: 54.44 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002783/12.09, allocations: 2.188 kB / 4.228 GB, free: 54.44 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0002177/12.09, allocations: 384.8 kB / 4.228 GB, free: 54.14 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002022/12.1, allocations: 1.165 MB / 4.229 GB, free: 54.13 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002417/12.1, allocations: 1.608 MB / 4.231 GB, free: 53.63 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01538/12.11, allocations: 3.539 MB / 4.234 GB, free: 53.54 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.118e-05/12.11, allocations: 7.344 kB / 4.234 GB, free: 53.53 MB / 0.5417 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.02644/12.14, allocations: 6.544 MB / 4.241 GB, free: 53.3 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.001638/12.14, allocations: 4.69 MB / 4.245 GB, free: 48.45 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.617e-05/12.14, allocations: 15.31 kB / 4.245 GB, free: 48.45 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008844/12.15, allocations: 2.149 MB / 4.247 GB, free: 48.39 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001674/12.15, allocations: 310.6 kB / 4.248 GB, free: 48.39 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009863/12.16, allocations: 4.306 MB / 4.252 GB, free: 47.81 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003752/12.17, allocations: 264.1 kB / 4.252 GB, free: 47.78 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006357/12.17, allocations: 100.6 kB / 4.252 GB, free: 47.78 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.948e-05/12.17, allocations: 9.188 kB / 4.252 GB, free: 47.78 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02178/12.19, allocations: 5.321 MB / 4.257 GB, free: 47.66 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.254e-05/12.19, allocations: 14.28 kB / 4.257 GB, free: 47.66 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00639/12.2, allocations: 1.615 MB / 4.259 GB, free: 47.61 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001725/12.2, allocations: 355.2 kB / 4.259 GB, free: 47.61 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004988/12.2, allocations: 3.009 MB / 4.262 GB, free: 47.04 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003181/12.21, allocations: 241.7 kB / 4.263 GB, free: 47.01 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005455/12.21, allocations: 104.1 kB / 4.263 GB, free: 47.01 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,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.001093/12.21, allocations: 191.7 kB / 4.263 GB, free: 46.87 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002647/12.21, allocations: 0.6496 MB / 4.263 GB, free: 46.78 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01345/12.22, allocations: 6.673 MB / 4.27 GB, free: 46.25 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.59e-05/12.22, allocations: 63.05 kB / 4.27 GB, free: 46.25 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.772e-05/12.22, allocations: 3.938 kB / 4.27 GB, free: 46.25 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009319/12.23, allocations: 5.488 MB / 4.275 GB, free: 45.59 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02076/12.25, allocations: 9.258 MB / 4.284 GB, free: 44.77 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.469e-05/12.25, allocations: 4.125 kB / 4.284 GB, free: 44.77 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001767/12.26, allocations: 336.3 kB / 4.285 GB, free: 44.76 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001053/12.26, allocations: 328.2 kB / 4.285 GB, free: 44.72 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003942/12.26, allocations: 50.45 kB / 4.285 GB, free: 44.72 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002297/12.26, allocations: 2.719 MB / 4.288 GB, free: 42.62 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.255e-05/12.26, allocations: 2.625 kB / 4.288 GB, free: 42.62 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0167/12.28, allocations: 7.143 MB / 4.295 GB, free: 42.05 MB / 0.5417 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01621/12.29, allocations: 9.691 MB / 4.304 GB, free: 41.08 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002572/12.3, allocations: 0.685 MB / 4.305 GB, free: 40.85 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00108/12.3, allocations: 26.45 kB / 4.305 GB, free: 40.85 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002665/12.3, allocations: 161.2 kB / 4.305 GB, free: 40.83 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003971/12.3, allocations: 130.1 kB / 4.305 GB, free: 40.83 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002679/12.3, allocations: 68.22 kB / 4.305 GB, free: 40.83 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.003252/12.3, allocations: 1.104 MB / 4.306 GB, free: 40.72 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.02372/12.33, allocations: 3.204 MB / 4.309 GB, free: 40.65 MB / 0.5417 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.01865/12.35, allocations: 3.058 MB / 4.312 GB, free: 40.21 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01275/12.36, allocations: 5.573 MB / 4.318 GB, free: 39.98 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.174e-05/12.36, allocations: 0 / 4.318 GB, free: 39.98 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.004847/12.36, allocations: 2.87 MB / 4.321 GB, free: 39.94 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006006/12.37, allocations: 0.7405 MB / 4.321 GB, free: 39.89 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01854/12.39, allocations: 5.943 MB / 4.327 GB, free: 38.65 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004469/12.39, allocations: 2.33 MB / 4.33 GB, free: 37.85 MB / 0.5417 GB Notification: Performance of SimCode: time 1.422e-06/12.39, allocations: 0 / 4.33 GB, free: 37.85 MB / 0.5417 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes12_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes12.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe 2>&1)