Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.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.BranchingPipes1,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes1",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.0009966/0.0009967, allocations: 181.2 kB / 8.516 MB, free: 1.852 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.181/1.181, allocations: 221.4 MB / 230.3 MB, free: 7.676 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.0009171/0.0009173, allocations: 84 kB / 281.2 MB, free: 5.477 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.1681/0.1681, allocations: 44.15 MB / 376.1 MB, free: 3.113 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1919/0.36, allocations: 68.03 MB / 444.1 MB, free: 15.38 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.4662, allocations: 61.9 MB / 0.4942 GB, free: 1.402 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.96/5.426, allocations: 2.829 GB / 3.324 GB, free: 134.3 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002482/5.427, allocations: 78.3 kB / 3.324 GB, free: 134.2 MB / 0.5261 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.879/8.306, allocations: 0.8085 GB / 4.132 GB, free: 30.34 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.103e-05/8.306, allocations: 12.94 kB / 4.132 GB, free: 30.33 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006775/8.313, allocations: 0.8687 MB / 4.133 GB, free: 30.19 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005713/8.319, allocations: 2.107 MB / 4.135 GB, free: 29.73 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000136/8.319, allocations: 90.64 kB / 4.135 GB, free: 29.73 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004999/8.319, allocations: 120.7 kB / 4.135 GB, free: 29.73 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004632/8.324, allocations: 2.944 MB / 4.138 GB, free: 29.71 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004174/8.328, allocations: 2.952 MB / 4.141 GB, free: 29.17 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.194e-05/8.328, allocations: 6.75 kB / 4.141 GB, free: 29.17 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002299/8.328, allocations: 7.438 kB / 4.141 GB, free: 29.17 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001542/8.329, allocations: 178.2 kB / 4.141 GB, free: 29.16 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2439/8.572, allocations: 126.2 MB / 4.264 GB, free: 13.71 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002464/8.575, allocations: 1.184 MB / 4.266 GB, free: 13.69 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00188/8.577, allocations: 1.039 MB / 4.267 GB, free: 13.68 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03609/8.613, allocations: 17.02 MB / 4.283 GB, free: 17.67 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003036/8.616, allocations: 1.273 MB / 4.284 GB, free: 16.95 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=152): time 8.876e-06/8.616, allocations: 0 / 4.284 GB, free: 16.95 MB / 0.6198 GB Notification: Performance of matching and sorting (n=164): time 0.02411/8.64, allocations: 8.334 MB / 4.293 GB, free: 11.45 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002088/8.641, allocations: 0.5071 MB / 4.293 GB, free: 10.83 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001793/8.642, allocations: 1.223 MB / 4.294 GB, free: 10.05 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 0.0003225/8.643, allocations: 29.7 kB / 4.294 GB, free: 10.02 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.000577/8.643, allocations: 0.7748 MB / 4.295 GB, free: 9.445 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.000487/8.644, allocations: 0.5382 MB / 4.296 GB, free: 9.016 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000134/8.644, allocations: 1.781 kB / 4.296 GB, free: 9.016 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001545/8.644, allocations: 390 kB / 4.296 GB, free: 8.684 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001569/8.646, allocations: 1.171 MB / 4.297 GB, free: 8.059 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001777/8.647, allocations: 1.606 MB / 4.299 GB, free: 6.902 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005825/8.653, allocations: 2.033 MB / 4.301 GB, free: 5.887 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.606e-05/8.653, allocations: 4.75 kB / 4.301 GB, free: 5.883 MB / 0.6198 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.01174/8.665, allocations: 4.614 MB / 4.305 GB, free: 3.305 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 0.2492/8.914, allocations: 3.919 MB / 4.309 GB, free: 151.1 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001071/8.914, allocations: 14.75 kB / 4.309 GB, free: 151.1 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004198/8.919, allocations: 0.8615 MB / 4.31 GB, free: 151.1 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002418/8.921, allocations: 474.9 kB / 4.31 GB, free: 151.1 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003302/8.924, allocations: 3.526 MB / 4.314 GB, free: 149 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002933/8.927, allocations: 247 kB / 4.314 GB, free: 149 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000337/8.928, allocations: 109.9 kB / 4.314 GB, free: 149 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.015e-05/8.928, allocations: 3.562 kB / 4.314 GB, free: 149 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008153/8.936, allocations: 3.481 MB / 4.318 GB, free: 149 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.622e-05/8.936, allocations: 21.53 kB / 4.318 GB, free: 149 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001096/8.937, allocations: 345.7 kB / 4.318 GB, free: 148.9 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002037/8.939, allocations: 0.495 MB / 4.318 GB, free: 148.9 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003343/8.942, allocations: 3.98 MB / 4.322 GB, free: 146.2 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002609/8.945, allocations: 212.4 kB / 4.322 GB, free: 146.2 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002442/8.945, allocations: 101.4 kB / 4.323 GB, free: 146.2 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,valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.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.000685/8.946, allocations: 231.2 kB / 4.323 GB, free: 146 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001932/8.948, allocations: 0.6248 MB / 4.323 GB, free: 146 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009287/8.957, allocations: 6.801 MB / 4.33 GB, free: 145.7 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-05/8.957, allocations: 58.56 kB / 4.33 GB, free: 145.7 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.012e-06/8.957, allocations: 0 / 4.33 GB, free: 145.7 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006777/8.964, allocations: 5.73 MB / 4.336 GB, free: 145 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01272/8.977, allocations: 9.38 MB / 4.345 GB, free: 144.2 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.034e-05/8.977, allocations: 3.875 kB / 4.345 GB, free: 144.2 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001321/8.978, allocations: 278 kB / 4.345 GB, free: 144.2 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003748/8.982, allocations: 2.068 MB / 4.347 GB, free: 144.1 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002379/8.982, allocations: 56.25 kB / 4.347 GB, free: 144.1 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00363/8.986, allocations: 4.288 MB / 4.351 GB, free: 142 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.092e-06/8.986, allocations: 6.375 kB / 4.351 GB, free: 142 MB / 0.6198 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0104/8.996, allocations: 7.242 MB / 4.358 GB, free: 141.5 MB / 0.6198 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01255/9.009, allocations: 9.762 MB / 4.368 GB, free: 140.4 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001626/9.011, allocations: 0.7051 MB / 4.369 GB, free: 140.2 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004632/9.011, allocations: 20.19 kB / 4.369 GB, free: 140.2 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00155/9.013, allocations: 156.4 kB / 4.369 GB, free: 140.2 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002451/9.013, allocations: 127.8 kB / 4.369 GB, free: 140.2 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001565/9.013, allocations: 70.56 kB / 4.369 GB, free: 140.2 MB / 0.6198 GB Notification: Performance of sort global known variables: time 0.001581/9.015, allocations: 1.166 MB / 4.37 GB, free: 140.1 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.01201/9.027, allocations: 3.263 MB / 4.373 GB, free: 140.1 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,valve1.filter.x[1],valve1.filter.x[2],valve2.filter.x[1],valve2.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.01167/9.038, allocations: 3.105 MB / 4.376 GB, free: 139.9 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.00751/9.046, allocations: 5.61 MB / 4.382 GB, free: 139.5 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 7.745e-06/9.046, allocations: 0 / 4.382 GB, free: 139.5 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.003022/9.049, allocations: 2.744 MB / 4.385 GB, free: 139.4 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003875/9.053, allocations: 0.7482 MB / 4.385 GB, free: 139.4 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009001/9.062, allocations: 5.709 MB / 4.391 GB, free: 138.4 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001935/9.064, allocations: 2.353 MB / 4.393 GB, free: 137.6 MB / 0.6198 GB Notification: Performance of SimCode: time 6.31e-07/9.064, allocations: 3.219 kB / 4.393 GB, free: 137.6 MB / 0.6198 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes1_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes1.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe 2>&1)