Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes12",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes12",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 4.0.0+maint.om/package.mo): time 0.001062/0.001062, allocations: 178.3 kB / 8.518 MB, free: 1.844 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.288/1.288, allocations: 221.4 MB / 230.3 MB, free: 7.613 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001064/0.001065, allocations: 89.8 kB / 281.2 MB, free: 5.434 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1905/0.1905, allocations: 44.15 MB / 376.1 MB, free: 3.211 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.235/0.4255, allocations: 68.03 MB / 444.1 MB, free: 15.51 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1215/0.5471, allocations: 61.91 MB / 0.4942 GB, free: 1.516 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.247/5.794, allocations: 2.829 GB / 3.324 GB, free: 149.7 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001675/5.795, allocations: 74.83 kB / 3.324 GB, free: 149.7 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 518 * Number of variables: 518 Notification: Performance of Generate backend data structure: time 2.519/8.313, allocations: 0.8154 GB / 4.139 GB, free: 33.81 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.635e-05/8.313, allocations: 11.75 kB / 4.139 GB, free: 33.81 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006438/8.32, allocations: 0.8692 MB / 4.14 GB, free: 33.67 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006188/8.326, allocations: 2.182 MB / 4.142 GB, free: 33.2 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001633/8.326, allocations: 92.75 kB / 4.142 GB, free: 33.2 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008061/8.327, allocations: 113.1 kB / 4.142 GB, free: 33.2 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004494/8.331, allocations: 2.951 MB / 4.145 GB, free: 33.19 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004045/8.335, allocations: 2.96 MB / 4.148 GB, free: 32.64 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.874e-05/8.336, allocations: 5.594 kB / 4.148 GB, free: 32.63 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002307/8.336, allocations: 6.031 kB / 4.148 GB, free: 32.63 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001307/8.336, allocations: 177.7 kB / 4.148 GB, free: 32.63 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2315/8.567, allocations: 126.2 MB / 4.271 GB, free: 17.24 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002135/8.57, allocations: 1.187 MB / 4.273 GB, free: 17.22 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001641/8.571, allocations: 1.039 MB / 4.274 GB, free: 17.21 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03521/8.606, allocations: 17.02 MB / 4.29 GB, free: 22 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00267/8.609, allocations: 1.266 MB / 4.291 GB, free: 21.45 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=152): time 6.642e-06/8.609, allocations: 7.938 kB / 4.291 GB, free: 21.44 MB / 0.6198 GB Notification: Performance of matching and sorting (n=164): time 0.02261/8.632, allocations: 8.335 MB / 4.3 GB, free: 15.93 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001799/8.632, allocations: 0.5066 MB / 4.3 GB, free: 15.31 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001626/8.634, allocations: 1.223 MB / 4.301 GB, free: 14.54 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 0.0003127/8.634, allocations: 29.7 kB / 4.301 GB, free: 14.5 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005639/8.635, allocations: 0.772 MB / 4.302 GB, free: 13.93 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005323/8.635, allocations: 0.5316 MB / 4.303 GB, free: 13.5 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001382/8.635, allocations: 4 kB / 4.303 GB, free: 13.5 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001483/8.635, allocations: 386.9 kB / 4.303 GB, free: 13.18 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00154/8.637, allocations: 1.178 MB / 4.304 GB, free: 12.55 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001765/8.639, allocations: 1.6 MB / 4.306 GB, free: 11.39 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005582/8.644, allocations: 2.035 MB / 4.308 GB, free: 10.38 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.311e-05/8.644, allocations: 4 kB / 4.308 GB, free: 10.38 MB / 0.6198 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.01185/8.656, allocations: 4.616 MB / 4.312 GB, free: 7.797 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 0.001091/8.657, allocations: 3.927 MB / 4.316 GB, free: 3.738 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.557e-05/8.657, allocations: 23.03 kB / 4.316 GB, free: 3.723 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003962/8.661, allocations: 0.86 MB / 4.317 GB, free: 3.203 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002337/8.664, allocations: 474.7 kB / 4.317 GB, free: 2.848 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2178/8.882, allocations: 3.542 MB / 4.321 GB, free: 149.1 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003106/8.885, allocations: 234.5 kB / 4.321 GB, free: 149.1 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004866/8.885, allocations: 106.9 kB / 4.321 GB, free: 149.1 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.239e-05/8.885, allocations: 3.656 kB / 4.321 GB, free: 149.1 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008174/8.893, allocations: 3.481 MB / 4.325 GB, free: 149.1 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.705e-05/8.894, allocations: 15.48 kB / 4.325 GB, free: 149.1 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001151/8.895, allocations: 351.5 kB / 4.325 GB, free: 149 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002217/8.897, allocations: 0.4907 MB / 4.325 GB, free: 149 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00353/8.901, allocations: 3.992 MB / 4.329 GB, free: 146.3 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002841/8.903, allocations: 211.4 kB / 4.329 GB, free: 146.3 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003894/8.904, allocations: 106 kB / 4.33 GB, free: 146.3 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 29 (pipe3.state_a.phase,pipe2.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.state_a.phase,pipe1.state_b.phase,pipe1.state_a.phase,$whenCondition1,$whenCondition2,pipe1.statesFM[2].phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled,source.medium.phase,sink.medium.phase,pipe3.state_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (219): * Single equations (assignments): 209 * Array equations: 2 * Algorithm blocks: 2 * Record equations: 2 * 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,3 19} Notification: Performance of prepare postOptimizeDAE: time 0.0006417/8.904, allocations: 223.4 kB / 4.33 GB, free: 146.1 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001964/8.906, allocations: 0.6248 MB / 4.33 GB, free: 146.1 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009673/8.916, allocations: 6.796 MB / 4.337 GB, free: 145.8 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.525e-05/8.916, allocations: 52.66 kB / 4.337 GB, free: 145.8 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.213e-06/8.916, allocations: 9.5 kB / 4.337 GB, free: 145.8 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006964/8.923, allocations: 5.736 MB / 4.343 GB, free: 145.1 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01371/8.937, allocations: 9.373 MB / 4.352 GB, free: 144.3 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.156e-05/8.937, allocations: 0 / 4.352 GB, free: 144.3 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001442/8.938, allocations: 275.8 kB / 4.352 GB, free: 144.3 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003929/8.942, allocations: 2.067 MB / 4.354 GB, free: 144.2 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003821/8.943, allocations: 48.38 kB / 4.354 GB, free: 144.2 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003562/8.946, allocations: 4.284 MB / 4.358 GB, free: 142.1 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.146e-06/8.946, allocations: 4.938 kB / 4.358 GB, free: 142.1 MB / 0.6198 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01083/8.957, allocations: 7.248 MB / 4.365 GB, free: 141.6 MB / 0.6198 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01302/8.97, allocations: 9.762 MB / 4.375 GB, free: 140.6 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001625/8.972, allocations: 0.7033 MB / 4.376 GB, free: 140.4 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006006/8.973, allocations: 22.34 kB / 4.376 GB, free: 140.4 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001864/8.974, allocations: 156.5 kB / 4.376 GB, free: 140.4 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002901/8.975, allocations: 125.9 kB / 4.376 GB, free: 140.4 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000184/8.975, allocations: 69.84 kB / 4.376 GB, free: 140.4 MB / 0.6198 GB Notification: Performance of sort global known variables: time 0.001658/8.977, allocations: 1.166 MB / 4.377 GB, free: 140.2 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0145/8.991, allocations: 3.273 MB / 4.38 GB, free: 140.2 MB / 0.6198 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,valveIncompressible.filter.x[1],valveIncompressible.filter.x[2],valveIncompressible1.filter.x[1],valveIncompressible1.filter.x[2],pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 39 ($cse5.phase,$cse5.region,$cse8.phase,$cse8.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse31.phase,$cse31.region,$cse33.phase,$cse33.region,$cse35.phase,$cse35.region,$cse37.phase,$cse37.region,$whenCondition1,$whenCondition2,pipe1.statesFM[2].phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,valveOpening2.nextEventScaled) * Number of discrete states: 12 (valveOpening2.nextEvent,valveOpening2.last,valveOpening2.nextEventScaled,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (145): * Single equations (assignments): 130 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 9 * 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,3 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.01293/9.004, allocations: 3.087 MB / 4.383 GB, free: 140 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.008081/9.012, allocations: 5.617 MB / 4.389 GB, free: 139.6 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 7.824e-06/9.012, allocations: 0 / 4.389 GB, free: 139.6 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.003465/9.016, allocations: 2.743 MB / 4.392 GB, free: 139.5 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004095/9.02, allocations: 0.7442 MB / 4.392 GB, free: 139.5 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01007/9.03, allocations: 5.708 MB / 4.398 GB, free: 138.5 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00236/9.032, allocations: 2.361 MB / 4.4 GB, free: 137.8 MB / 0.6198 GB Notification: Performance of SimCode: time 2.024e-06/9.032, allocations: 0.7188 kB / 4.4 GB, free: 137.8 MB / 0.6198 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes12_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes12.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe 2>&1)