Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.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) 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(Modelica.Fluid.Examples.HeatingSystem,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_HeatingSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.HeatingSystem,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_HeatingSystem",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.001002/0.001002, allocations: 183.7 kB / 8.478 MB, free: 1.883 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.128/1.128, allocations: 205.2 MB / 214.1 MB, free: 5.117 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008701/0.00087, allocations: 83.33 kB / 262.1 MB, free: 5.16 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1771/0.178, allocations: 52.95 MB / 315 MB, free: 41.44 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07115/0.2491, allocations: 47.58 MB / 362.6 MB, free: 9.898 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.721/4.97, allocations: 3.153 GB / 3.507 GB, free: 82.08 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002063/4.971, allocations: 82.59 kB / 3.507 GB, free: 82 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 538 * Number of variables: 538 Notification: Performance of Generate backend data structure: time 8.184/13.15, allocations: 3.092 GB / 6.6 GB, free: 29.12 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.406e-05/13.15, allocations: 11.56 kB / 6.6 GB, free: 29.12 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001085/13.16, allocations: 308.3 kB / 6.6 GB, free: 28.98 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004226/13.16, allocations: 2.041 MB / 6.602 GB, free: 28.52 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001166/13.16, allocations: 151.1 kB / 6.602 GB, free: 28.45 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002959/13.16, allocations: 115.6 kB / 6.602 GB, free: 28.45 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003933/13.16, allocations: 2.938 MB / 6.605 GB, free: 28.44 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003845/13.17, allocations: 3.104 MB / 6.608 GB, free: 27.95 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.78e-05/13.17, allocations: 7.125 kB / 6.608 GB, free: 27.95 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002322/13.17, allocations: 5.469 kB / 6.608 GB, free: 27.95 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001585/13.17, allocations: 213.6 kB / 6.609 GB, free: 27.95 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01497/13.18, allocations: 12.06 MB / 6.62 GB, free: 23.03 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001668/13.18, allocations: 1.358 MB / 6.622 GB, free: 23 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001607/13.19, allocations: 1.351 MB / 6.623 GB, free: 22.99 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007623/13.19, allocations: 6.007 MB / 6.629 GB, free: 20.06 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.905e-05/13.19, allocations: 57.28 kB / 6.629 GB, free: 20.02 MB / 458.7 MB Notification: Performance of pre-optimization done (n=173): time 4.95e-06/13.19, allocations: 0 / 6.629 GB, free: 20.02 MB / 458.7 MB Notification: Performance of matching and sorting (n=199): time 0.02371/13.22, allocations: 8.829 MB / 6.638 GB, free: 19.1 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.764e-05/13.22, allocations: 125.2 kB / 6.638 GB, free: 18.97 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001446/13.22, allocations: 1.216 MB / 6.639 GB, free: 18.8 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001588/13.22, allocations: 27.95 kB / 6.639 GB, free: 18.77 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003075/13.22, allocations: 0.7988 MB / 6.64 GB, free: 18.29 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004526/13.22, allocations: 0.654 MB / 6.64 GB, free: 17.86 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001474/13.22, allocations: 3.906 kB / 6.64 GB, free: 17.86 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001027/13.22, allocations: 399.7 kB / 6.641 GB, free: 17.55 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001469/13.22, allocations: 1.212 MB / 6.642 GB, free: 17.54 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001626/13.22, allocations: 1.712 MB / 6.644 GB, free: 16.99 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01418/13.24, allocations: 3.942 MB / 6.647 GB, free: 16.97 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.046e-05/13.24, allocations: 3.438 kB / 6.647 GB, free: 16.97 MB / 458.7 MB Notification: Performance of matching and sorting (n=294) (initialization): time 0.01849/13.26, allocations: 6.547 MB / 6.654 GB, free: 16.78 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008553/13.26, allocations: 5.772 MB / 6.659 GB, free: 10.9 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.09e-05/13.26, allocations: 12.34 kB / 6.659 GB, free: 10.9 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008437/13.27, allocations: 2.623 MB / 6.662 GB, free: 10.86 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001299/13.27, allocations: 318.8 kB / 6.662 GB, free: 10.86 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008944/13.28, allocations: 4.764 MB / 6.667 GB, free: 10.26 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002747/13.28, allocations: 141.5 kB / 6.667 GB, free: 10.24 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004575/13.28, allocations: 109.7 kB / 6.667 GB, free: 10.24 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.015e-05/13.28, allocations: 6.656 kB / 6.667 GB, free: 10.24 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0182/13.3, allocations: 5.948 MB / 6.673 GB, free: 10.19 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.02e-05/13.3, allocations: 14.59 kB / 6.673 GB, free: 10.19 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007673/13.31, allocations: 2.316 MB / 6.675 GB, free: 10.16 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001578/13.31, allocations: 364.5 kB / 6.676 GB, free: 10.16 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006138/13.31, allocations: 4.023 MB / 6.68 GB, free: 9.57 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002232/13.32, allocations: 142.7 kB / 6.68 GB, free: 9.555 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003191/13.32, allocations: 103.7 kB / 6.68 GB, free: 9.555 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 65 * Number of states: 0 () * Number of discrete variables: 4 (tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (170): * Single equations (assignments): 169 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {18 107} Notification: Performance of prepare postOptimizeDAE: time 0.0006141/13.32, allocations: 153.2 kB / 6.68 GB, free: 9.434 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005512/13.32, allocations: 201.2 kB / 6.68 GB, free: 9.332 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009308/13.33, allocations: 4.393 MB / 6.684 GB, free: 9.086 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.751e-05/13.33, allocations: 20.25 kB / 6.684 GB, free: 9.086 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.989e-05/13.33, allocations: 3.812 kB / 6.684 GB, free: 9.086 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007165/13.33, allocations: 3.665 MB / 6.688 GB, free: 8.625 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01237/13.35, allocations: 6.44 MB / 6.694 GB, free: 8.191 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.247e-06/13.35, allocations: 8.188 kB / 6.694 GB, free: 8.188 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001439/13.35, allocations: 321.4 kB / 6.695 GB, free: 8.188 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003016/13.35, allocations: 1.022 MB / 6.696 GB, free: 8.117 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001946/13.35, allocations: 48.5 kB / 6.696 GB, free: 8.117 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008292/13.36, allocations: 10.34 MB / 6.706 GB, free: 16.49 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/13.36, allocations: 2.906 kB / 6.706 GB, free: 16.49 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009572/13.37, allocations: 5.536 MB / 6.711 GB, free: 15.01 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01627/13.38, allocations: 11.4 MB / 6.722 GB, free: 10.51 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001538/13.39, allocations: 0.5923 MB / 6.723 GB, free: 10.17 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006918/13.39, allocations: 15.7 kB / 6.723 GB, free: 10.17 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001971/13.39, allocations: 110.8 kB / 6.723 GB, free: 10.16 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003092/13.39, allocations: 144.2 kB / 6.723 GB, free: 10.14 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002307/13.39, allocations: 84.02 kB / 6.723 GB, free: 10.12 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.001471/13.39, allocations: 0.8878 MB / 6.724 GB, free: 9.75 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.008266/13.4, allocations: 2.106 MB / 6.726 GB, free: 9.152 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (tank.medium.T,tank.level,heater.mediums[1].p,heater.mediums[1].T,radiator.mediums[1].p,radiator.mediums[1].T,pipe.mediums[1].p,pipe.mediums[1].T,pipe.mediums[2].p,pipe.mediums[2].T) * Number of discrete variables: 4 (tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (184): * Single equations (assignments): 170 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 6,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 3 {1 9,2 8,5 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.004161/13.4, allocations: 1.355 MB / 6.727 GB, free: 8.754 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01075/13.41, allocations: 4.916 MB / 6.732 GB, free: 7.258 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.371e-06/13.41, allocations: 1.25 kB / 6.732 GB, free: 7.258 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004033/13.42, allocations: 2.122 MB / 6.734 GB, free: 6.27 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004278/13.42, allocations: 0.775 MB / 6.735 GB, free: 6.109 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01077/13.43, allocations: 4.802 MB / 6.74 GB, free: 3.957 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002427/13.44, allocations: 2.176 MB / 6.742 GB, free: 2.223 MB / 474.7 MB Notification: Performance of SimCode: time 8.42e-07/13.44, allocations: 2.469 kB / 6.742 GB, free: 2.223 MB / 474.7 MB (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Fluid_Examples_HeatingSystem_fmu --startTime=0 --stopTime=6000 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Fluid_Examples_HeatingSystem.fmu > Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.pipe 2>&1)