Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.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.BranchingPipes1,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1,fileNamePrefix="ModelicaTest_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001511/0.001511, allocations: 178.9 kB / 7.802 MB, free: 1.203 MB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.474/1.474, allocations: 205.2 MB / 213.4 MB, free: 8.523 MB / 178.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009214/0.0009215, allocations: 97.45 kB / 261.4 MB, free: 5.113 MB / 210.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2134/0.2134, allocations: 43.49 MB / 352.8 MB, free: 11.36 MB / 306.8 MB Notification: Performance of FrontEnd - loaded program: time 0.2729/0.4864, allocations: 64.96 MB / 417.8 MB, free: 68.1 MB / 322.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1282/0.6146, allocations: 58.86 MB / 476.7 MB, free: 9.195 MB / 322.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.033/6.647, allocations: 2.825 GB / 3.29 GB, free: 20.62 MB / 0.5027 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002818/6.648, allocations: 74.97 kB / 3.29 GB, free: 20.55 MB / 0.5027 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 3.461/10.11, allocations: 0.7998 GB / 4.09 GB, free: 13.72 MB / 0.5339 GB Notification: Performance of prepare preOptimizeDAE: time 6.394e-05/10.11, allocations: 8 kB / 4.09 GB, free: 13.71 MB / 0.5339 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009119/10.12, allocations: 0.8748 MB / 4.091 GB, free: 12.83 MB / 0.5339 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01007/10.13, allocations: 2.103 MB / 4.093 GB, free: 10.71 MB / 0.5339 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003237/10.13, allocations: 91.98 kB / 4.093 GB, free: 10.62 MB / 0.5339 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001425/10.13, allocations: 115.9 kB / 4.093 GB, free: 10.51 MB / 0.5339 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009037/10.14, allocations: 2.944 MB / 4.096 GB, free: 7.559 MB / 0.5339 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01251/10.15, allocations: 2.961 MB / 4.099 GB, free: 4.391 MB / 0.5339 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001446/10.15, allocations: 7.938 kB / 4.099 GB, free: 4.383 MB / 0.5339 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001042/10.15, allocations: 8 kB / 4.099 GB, free: 4.375 MB / 0.5339 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002571/10.15, allocations: 171.7 kB / 4.099 GB, free: 4.207 MB / 0.5339 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6131/10.77, allocations: 126.2 MB / 4.222 GB, free: 32.66 MB / 0.5652 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002652/10.77, allocations: 1.188 MB / 4.223 GB, free: 32.64 MB / 0.5652 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001994/10.77, allocations: 1.043 MB / 4.224 GB, free: 32.62 MB / 0.5652 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03882/10.81, allocations: 17.01 MB / 4.241 GB, free: 37.44 MB / 0.5808 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003289/10.81, allocations: 1.272 MB / 4.242 GB, free: 37.27 MB / 0.5808 GB Notification: Performance of pre-optimization done (n=152): time 1.044e-05/10.81, allocations: 0 / 4.242 GB, free: 37.27 MB / 0.5808 GB Notification: Performance of matching and sorting (n=164): time 0.02376/10.84, allocations: 8.338 MB / 4.25 GB, free: 35.59 MB / 0.5808 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003283/10.84, allocations: 0.5036 MB / 4.251 GB, free: 35 MB / 0.5808 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002208/10.84, allocations: 1.231 MB / 4.252 GB, free: 34.83 MB / 0.5808 GB Notification: Performance of collectPreVariables (initialization): time 0.0002356/10.84, allocations: 25.7 kB / 4.252 GB, free: 34.8 MB / 0.5808 GB Notification: Performance of collectInitialEqns (initialization): time 0.000919/10.84, allocations: 0.772 MB / 4.253 GB, free: 34.46 MB / 0.5808 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006731/10.84, allocations: 0.5361 MB / 4.253 GB, free: 34.18 MB / 0.5808 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001289/10.84, allocations: 3.875 kB / 4.253 GB, free: 34.18 MB / 0.5808 GB Notification: Performance of setup shared object (initialization): time 0.0002133/10.84, allocations: 382.6 kB / 4.254 GB, free: 33.88 MB / 0.5808 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001751/10.84, allocations: 1.177 MB / 4.255 GB, free: 33.87 MB / 0.5808 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001909/10.85, allocations: 1.602 MB / 4.256 GB, free: 33.4 MB / 0.5808 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01244/10.86, allocations: 3.118 MB / 4.259 GB, free: 33.34 MB / 0.5808 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.209e-05/10.86, allocations: 2.375 kB / 4.259 GB, free: 33.34 MB / 0.5808 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.02015/10.88, allocations: 5.708 MB / 4.265 GB, free: 33.09 MB / 0.5808 GB Notification: Performance of prepare postOptimizeDAE: time 0.001703/10.88, allocations: 3.921 MB / 4.269 GB, free: 29.07 MB / 0.5808 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.243e-05/10.88, allocations: 16.91 kB / 4.269 GB, free: 29.07 MB / 0.5808 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003837/10.88, allocations: 0.8631 MB / 4.27 GB, free: 29.01 MB / 0.5808 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0022/10.89, allocations: 475.6 kB / 4.27 GB, free: 29 MB / 0.5808 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004107/10.89, allocations: 3.528 MB / 4.274 GB, free: 42.91 MB / 0.5964 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003094/10.89, allocations: 236.7 kB / 4.274 GB, free: 42.88 MB / 0.5964 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002811/10.89, allocations: 108.4 kB / 4.274 GB, free: 42.88 MB / 0.5964 GB Notification: Performance of prepare postOptimizeDAE: time 1.382e-05/10.89, allocations: 5.078 kB / 4.274 GB, free: 42.88 MB / 0.5964 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01519/10.91, allocations: 4.563 MB / 4.278 GB, free: 42.76 MB / 0.5964 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.575e-05/10.91, allocations: 19.66 kB / 4.278 GB, free: 42.76 MB / 0.5964 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001153/10.91, allocations: 356.5 kB / 4.279 GB, free: 42.71 MB / 0.5964 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002083/10.91, allocations: 0.489 MB / 4.279 GB, free: 42.71 MB / 0.5964 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004346/10.92, allocations: 3.972 MB / 4.283 GB, free: 39.93 MB / 0.5964 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00288/10.92, allocations: 214.6 kB / 4.283 GB, free: 39.91 MB / 0.5964 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003047/10.92, allocations: 108.5 kB / 4.283 GB, free: 39.91 MB / 0.5964 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.0008851/10.92, allocations: 238.2 kB / 4.284 GB, free: 39.73 MB / 0.5964 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002198/10.92, allocations: 0.6215 MB / 4.284 GB, free: 39.63 MB / 0.5964 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01085/10.93, allocations: 6.794 MB / 4.291 GB, free: 39.14 MB / 0.5964 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.415e-05/10.93, allocations: 54.81 kB / 4.291 GB, free: 39.14 MB / 0.5964 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/10.93, allocations: 0 / 4.291 GB, free: 39.14 MB / 0.5964 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007567/10.94, allocations: 5.742 MB / 4.297 GB, free: 38.42 MB / 0.5964 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01409/10.96, allocations: 9.369 MB / 4.306 GB, free: 37.56 MB / 0.5964 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.949e-06/10.96, allocations: 3.844 kB / 4.306 GB, free: 37.56 MB / 0.5964 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001292/10.96, allocations: 280.7 kB / 4.306 GB, free: 37.56 MB / 0.5964 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004091/10.96, allocations: 2.065 MB / 4.308 GB, free: 37.45 MB / 0.5964 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002088/10.96, allocations: 58.77 kB / 4.308 GB, free: 37.44 MB / 0.5964 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004666/10.97, allocations: 4.279 MB / 4.312 GB, free: 35.3 MB / 0.5964 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.885e-06/10.97, allocations: 4.656 kB / 4.312 GB, free: 35.3 MB / 0.5964 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01124/10.98, allocations: 7.249 MB / 4.319 GB, free: 34.68 MB / 0.5964 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01441/10.99, allocations: 9.75 MB / 4.329 GB, free: 31.48 MB / 0.5964 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001907/10.99, allocations: 0.7051 MB / 4.33 GB, free: 31.04 MB / 0.5964 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008654/10.99, allocations: 29.58 kB / 4.33 GB, free: 31.02 MB / 0.5964 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002187/11, allocations: 152 kB / 4.33 GB, free: 30.92 MB / 0.5964 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003037/11, allocations: 120.5 kB / 4.33 GB, free: 30.86 MB / 0.5964 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002046/11, allocations: 71.08 kB / 4.33 GB, free: 30.82 MB / 0.5964 GB Notification: Performance of sort global known variables: time 0.002453/11, allocations: 1.175 MB / 4.331 GB, free: 30.09 MB / 0.5964 GB Notification: Performance of remove unused functions: time 0.01688/11.02, allocations: 3.264 MB / 4.334 GB, free: 27.91 MB / 0.5964 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.01815/11.03, allocations: 3.084 MB / 4.337 GB, free: 25.86 MB / 0.5964 GB Notification: Performance of simCode: created initialization part: time 0.01122/11.05, allocations: 5.606 MB / 4.343 GB, free: 22.54 MB / 0.5964 GB Notification: Performance of simCode: created event and clocks part: time 1.248e-05/11.05, allocations: 5.781 kB / 4.343 GB, free: 22.54 MB / 0.5964 GB Notification: Performance of simCode: created simulation system equations: time 0.004143/11.05, allocations: 2.743 MB / 4.345 GB, free: 21.18 MB / 0.5964 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005939/11.06, allocations: 0.7588 MB / 4.346 GB, free: 20.75 MB / 0.5964 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01435/11.07, allocations: 5.701 MB / 4.352 GB, free: 16.76 MB / 0.5964 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003952/11.07, allocations: 2.361 MB / 4.354 GB, free: 15 MB / 0.5964 GB Notification: Performance of SimCode: time 1.293e-06/11.07, allocations: 4 kB / 4.354 GB, free: 15 MB / 0.5964 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes1_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes1.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe 2>&1)