Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.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.BranchingPipes3,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes3",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.001078/0.001078, allocations: 189.8 kB / 7.804 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.445/1.445, 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.001023/0.001023, allocations: 100.3 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.1932/0.1932, allocations: 43.49 MB / 352.8 MB, free: 1.961 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2231/0.4163, allocations: 64.96 MB / 417.8 MB, free: 40.47 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3454/0.7617, allocations: 58.83 MB / 476.6 MB, free: 5.312 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.305/7.066, allocations: 2.842 GB / 3.307 GB, free: 42.55 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002506/7.067, allocations: 83.45 kB / 3.307 GB, free: 42.47 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: 476 * Number of variables: 476 Notification: Performance of Generate backend data structure: time 3.91/10.98, allocations: 0.8729 GB / 4.18 GB, free: 39.9 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.447e-05/10.98, allocations: 7.906 kB / 4.18 GB, free: 39.9 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007118/10.98, allocations: 0.8225 MB / 4.181 GB, free: 39.77 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006249/10.99, allocations: 1.995 MB / 4.183 GB, free: 39.34 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001381/10.99, allocations: 85.09 kB / 4.183 GB, free: 39.34 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000437/10.99, allocations: 111.3 kB / 4.183 GB, free: 39.33 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0043/11, allocations: 2.371 MB / 4.186 GB, free: 39.32 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004123/11, allocations: 2.617 MB / 4.188 GB, free: 38.84 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.094e-05/11, allocations: 6.906 kB / 4.188 GB, free: 38.84 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002041/11, allocations: 8.25 kB / 4.188 GB, free: 38.84 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001755/11, allocations: 158.1 kB / 4.188 GB, free: 38.84 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.254/11.25, allocations: 125.6 MB / 4.311 GB, free: 23.98 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002256/11.26, allocations: 1.044 MB / 4.312 GB, free: 23.95 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001708/11.26, allocations: 1.008 MB / 4.313 GB, free: 23.94 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03747/11.3, allocations: 17.07 MB / 4.33 GB, free: 12.64 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002642/11.3, allocations: 1.188 MB / 4.331 GB, free: 12.47 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=145): time 6.162e-06/11.3, allocations: 0 / 4.331 GB, free: 12.47 MB / 0.6042 GB Notification: Performance of matching and sorting (n=157): time 0.04264/11.34, allocations: 9.208 MB / 4.34 GB, free: 10.81 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002159/11.34, allocations: 357 kB / 4.34 GB, free: 10.41 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002379/11.34, allocations: 1.053 MB / 4.341 GB, free: 10.24 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.0005373/11.34, allocations: 29.08 kB / 4.341 GB, free: 10.21 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007953/11.34, allocations: 0.6992 MB / 4.342 GB, free: 9.801 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008352/11.35, allocations: 0.5092 MB / 4.342 GB, free: 9.469 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002854/11.35, allocations: 0 / 4.342 GB, free: 9.469 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0002363/11.35, allocations: 381.1 kB / 4.343 GB, free: 9.16 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00176/11.35, allocations: 1.023 MB / 4.344 GB, free: 9.156 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002056/11.35, allocations: 1.416 MB / 4.345 GB, free: 8.762 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009464/11.36, allocations: 1.987 MB / 4.347 GB, free: 8.715 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.431e-05/11.36, allocations: 3.312 kB / 4.347 GB, free: 8.715 MB / 0.6042 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.01773/11.38, allocations: 4.318 MB / 4.351 GB, free: 8.492 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.001428/11.38, allocations: 3.72 MB / 4.355 GB, free: 20.65 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.506e-05/11.38, allocations: 8.469 kB / 4.355 GB, free: 20.65 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002469/11.38, allocations: 0.5185 MB / 4.355 GB, free: 20.61 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002451/11.38, allocations: 459.1 kB / 4.356 GB, free: 20.6 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003282/11.39, allocations: 2.905 MB / 4.359 GB, free: 18.52 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003613/11.39, allocations: 284.5 kB / 4.359 GB, free: 18.47 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007034/11.39, allocations: 97.08 kB / 4.359 GB, free: 18.47 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.268e-05/11.39, allocations: 4.656 kB / 4.359 GB, free: 18.47 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01355/11.41, allocations: 3.184 MB / 4.362 GB, free: 18.38 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.097e-05/11.41, allocations: 13.38 kB / 4.362 GB, free: 18.38 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005054/11.41, allocations: 185.3 kB / 4.362 GB, free: 18.36 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002421/11.41, allocations: 474 kB / 4.363 GB, free: 18.35 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00158/11.41, allocations: 1.916 MB / 4.365 GB, free: 16.79 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003033/11.41, allocations: 245.7 kB / 4.365 GB, free: 16.75 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005342/11.41, allocations: 100.4 kB / 4.365 GB, free: 16.75 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 29 (valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.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_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (211): * Single equations (assignments): 205 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * 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,2 5} Notification: Performance of prepare postOptimizeDAE: time 0.001296/11.41, allocations: 225.4 kB / 4.365 GB, free: 16.57 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002582/11.42, allocations: 0.6098 MB / 4.366 GB, free: 16.48 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01845/11.44, allocations: 6.735 MB / 4.372 GB, free: 15.96 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.113e-05/11.44, allocations: 55.09 kB / 4.372 GB, free: 15.96 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.837e-05/11.44, allocations: 2.188 kB / 4.372 GB, free: 15.96 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01501/11.45, allocations: 5.841 MB / 4.378 GB, free: 15.02 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02279/11.47, allocations: 10.23 MB / 4.388 GB, free: 9.277 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.034e-05/11.47, allocations: 8 kB / 4.388 GB, free: 9.27 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001486/11.48, allocations: 299 kB / 4.388 GB, free: 9.047 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002194/11.48, allocations: 1.16 MB / 4.39 GB, free: 8.184 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003653/11.48, allocations: 56.3 kB / 4.39 GB, free: 8.152 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003638/11.48, allocations: 3.389 MB / 4.393 GB, free: 5.332 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.216e-05/11.48, allocations: 8.5 kB / 4.393 GB, free: 5.328 MB / 0.6198 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01855/11.5, allocations: 7.663 MB / 4.4 GB, free: 0.582 MB / 0.6198 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.3225/11.82, allocations: 10.01 MB / 4.41 GB, free: 160.3 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001775/11.82, allocations: 0.6629 MB / 4.411 GB, free: 160.2 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005484/11.83, allocations: 22.25 kB / 4.411 GB, free: 160.2 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001689/11.83, allocations: 161.3 kB / 4.411 GB, free: 160.2 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002981/11.83, allocations: 135.2 kB / 4.411 GB, free: 160.2 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001634/11.83, allocations: 72.47 kB / 4.411 GB, free: 160.2 MB / 0.6198 GB Notification: Performance of sort global known variables: time 0.001464/11.83, allocations: 1.04 MB / 4.412 GB, free: 160.1 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0145/11.84, allocations: 3.038 MB / 4.415 GB, free: 160.1 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,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,$cse7.phase,$cse7.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse31.phase,$cse31.region,$cse33.phase,$cse33.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 (155): * Single equations (assignments): 139 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 10 * 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,2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.01384/11.86, allocations: 3.019 MB / 4.418 GB, free: 159.9 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.007672/11.86, allocations: 4.92 MB / 4.423 GB, free: 159.8 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.159e-05/11.86, allocations: 1.406 kB / 4.423 GB, free: 159.8 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.003531/11.87, allocations: 2.98 MB / 4.426 GB, free: 159.7 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004524/11.87, allocations: 0.7521 MB / 4.427 GB, free: 159.7 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01012/11.88, allocations: 5.431 MB / 4.432 GB, free: 158.6 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002093/11.89, allocations: 2.235 MB / 4.434 GB, free: 157.9 MB / 0.6198 GB Notification: Performance of SimCode: time 1.963e-06/11.89, allocations: 0 / 4.434 GB, free: 157.9 MB / 0.6198 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes3_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes3.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe 2>&1)