Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes1",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.001788/0.001788, allocations: 192.1 kB / 7.804 MB, free: 2.5 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.46/1.46, 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.0009387/0.0009388, allocations: 87.75 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.2095/0.2095, allocations: 43.49 MB / 352.8 MB, free: 1.961 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2335/0.4431, allocations: 64.96 MB / 417.8 MB, free: 40.48 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3318/0.7749, allocations: 58.83 MB / 476.6 MB, free: 5.191 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.829/7.604, allocations: 2.827 GB / 3.292 GB, free: 39.19 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002675/7.604, allocations: 71.95 kB / 3.292 GB, free: 39.12 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 3.718/11.32, allocations: 0.8021 GB / 4.094 GB, free: 29.91 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 6.929e-05/11.32, allocations: 11.94 kB / 4.094 GB, free: 29.89 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009346/11.33, allocations: 0.8891 MB / 4.095 GB, free: 29.06 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01036/11.34, allocations: 2.106 MB / 4.097 GB, free: 26.94 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003793/11.34, allocations: 91.98 kB / 4.097 GB, free: 26.85 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001666/11.34, allocations: 116 kB / 4.098 GB, free: 26.74 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007947/11.35, allocations: 2.616 MB / 4.1 GB, free: 24.12 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009997/11.36, allocations: 2.863 MB / 4.103 GB, free: 21.05 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001584/11.36, allocations: 11.84 kB / 4.103 GB, free: 21.04 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001133/11.36, allocations: 4 kB / 4.103 GB, free: 21.03 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003238/11.36, allocations: 175.5 kB / 4.103 GB, free: 20.86 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6332/12, allocations: 94.83 MB / 4.196 GB, free: 53.01 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002651/12, allocations: 1.14 MB / 4.197 GB, free: 53 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002062/12, allocations: 1.029 MB / 4.198 GB, free: 52.98 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03465/12.04, allocations: 16.94 MB / 4.214 GB, free: 41.89 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003466/12.04, allocations: 1.215 MB / 4.215 GB, free: 41.75 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=147): time 8.947e-06/12.04, allocations: 1.781 kB / 4.215 GB, free: 41.75 MB / 0.5417 GB Notification: Performance of matching and sorting (n=163): time 0.03689/12.08, allocations: 8.385 MB / 4.224 GB, free: 40.3 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001692/12.08, allocations: 388.3 kB / 4.224 GB, free: 39.86 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002401/12.08, allocations: 1.151 MB / 4.225 GB, free: 39.69 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0005431/12.08, allocations: 28.83 kB / 4.225 GB, free: 39.66 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.001097/12.08, allocations: 0.7745 MB / 4.226 GB, free: 39.32 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.001115/12.08, allocations: 0.5326 MB / 4.226 GB, free: 39.04 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001316/12.08, allocations: 0 / 4.226 GB, free: 39.04 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001919/12.08, allocations: 384.9 kB / 4.227 GB, free: 38.73 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002023/12.08, allocations: 1.159 MB / 4.228 GB, free: 38.73 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002256/12.09, allocations: 1.608 MB / 4.23 GB, free: 38.22 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01485/12.1, allocations: 3.534 MB / 4.233 GB, free: 38.13 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.249e-05/12.1, allocations: 5.562 kB / 4.233 GB, free: 38.13 MB / 0.5417 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.0231/12.13, allocations: 5.935 MB / 4.239 GB, free: 37.86 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.001529/12.13, allocations: 4.691 MB / 4.243 GB, free: 33.02 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.585e-05/12.13, allocations: 14.53 kB / 4.243 GB, free: 33.02 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007977/12.13, allocations: 251.3 kB / 4.244 GB, free: 32.98 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002886/12.13, allocations: 0.5137 MB / 4.244 GB, free: 32.98 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002156/12.13, allocations: 2.568 MB / 4.247 GB, free: 30.89 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004085/12.14, allocations: 265 kB / 4.247 GB, free: 30.86 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004226/12.14, allocations: 101.7 kB / 4.247 GB, free: 30.86 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.567e-05/12.14, allocations: 3.062 kB / 4.247 GB, free: 30.86 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01806/12.16, allocations: 4.897 MB / 4.252 GB, free: 30.72 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.807e-05/12.16, allocations: 13.41 kB / 4.252 GB, free: 30.72 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006094/12.16, allocations: 249.3 kB / 4.252 GB, free: 30.69 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002296/12.16, allocations: 0.5102 MB / 4.253 GB, free: 30.68 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00156/12.16, allocations: 2.559 MB / 4.255 GB, free: 28.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002862/12.16, allocations: 237 kB / 4.255 GB, free: 28.57 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000261/12.16, allocations: 100.3 kB / 4.255 GB, free: 28.57 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 (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.0008039/12.16, allocations: 206.8 kB / 4.256 GB, free: 28.43 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002276/12.17, allocations: 0.6493 MB / 4.256 GB, free: 28.34 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01117/12.18, allocations: 6.673 MB / 4.263 GB, free: 27.81 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.129e-05/12.18, allocations: 61.02 kB / 4.263 GB, free: 27.81 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.082e-05/12.18, allocations: 128 / 4.263 GB, free: 27.81 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007542/12.19, allocations: 5.488 MB / 4.268 GB, free: 27.15 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01555/12.2, allocations: 9.264 MB / 4.277 GB, free: 26.32 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.731e-05/12.2, allocations: 2.969 kB / 4.277 GB, free: 26.32 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001766/12.2, allocations: 328.5 kB / 4.277 GB, free: 26.32 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001119/12.2, allocations: 338.8 kB / 4.278 GB, free: 26.27 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003092/12.2, allocations: 48.89 kB / 4.278 GB, free: 26.27 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001937/12.21, allocations: 2.712 MB / 4.28 GB, free: 24.18 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.028e-05/12.21, allocations: 3.844 kB / 4.281 GB, free: 24.18 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01285/12.22, allocations: 7.145 MB / 4.287 GB, free: 23.61 MB / 0.5417 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01656/12.24, allocations: 9.694 MB / 4.297 GB, free: 22.63 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002366/12.24, allocations: 0.6908 MB / 4.298 GB, free: 22.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001016/12.24, allocations: 17.75 kB / 4.298 GB, free: 22.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002584/12.24, allocations: 162.8 kB / 4.298 GB, free: 22.38 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003606/12.24, allocations: 133 kB / 4.298 GB, free: 22.38 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002348/12.24, allocations: 65.73 kB / 4.298 GB, free: 22.38 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.00271/12.25, allocations: 1.121 MB / 4.299 GB, free: 22.27 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.02145/12.27, allocations: 3.204 MB / 4.302 GB, free: 22.21 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.02066/12.29, allocations: 3.058 MB / 4.305 GB, free: 21.79 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01232/12.3, allocations: 5.508 MB / 4.311 GB, free: 21.6 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.281e-05/12.3, allocations: 3.906 kB / 4.311 GB, free: 21.6 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.004876/12.3, allocations: 2.869 MB / 4.313 GB, free: 21.55 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006454/12.31, allocations: 0.734 MB / 4.314 GB, free: 21.52 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01811/12.33, allocations: 5.939 MB / 4.32 GB, free: 20.28 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005134/12.33, allocations: 2.361 MB / 4.322 GB, free: 19.47 MB / 0.5417 GB Notification: Performance of SimCode: time 1.784e-06/12.33, allocations: 1 kB / 4.322 GB, free: 19.47 MB / 0.5417 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes1_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes1.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.pipe 2>&1)