Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.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.TraceSubstances.RoomCO2,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_TraceSubstances_RoomCO2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.TraceSubstances.RoomCO2,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_TraceSubstances_RoomCO2",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.0009746/0.0009747, allocations: 179.8 kB / 8.477 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.053/1.053, allocations: 205.2 MB / 214.1 MB, free: 5.16 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.000884/0.000884, allocations: 82.84 kB / 262.1 MB, free: 5.207 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1449/0.1458, allocations: 52.97 MB / 315.1 MB, free: 41.42 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06159/0.2074, allocations: 47.57 MB / 362.6 MB, free: 9.891 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.539/4.746, allocations: 3.611 GB / 3.965 GB, free: 149.8 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002133/4.747, allocations: 83.47 kB / 3.965 GB, free: 149.8 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: 228 * Number of variables: 228 Notification: Performance of Generate backend data structure: time 1.622/6.368, allocations: 0.5541 GB / 4.519 GB, free: 38.91 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.928e-05/6.368, allocations: 7.469 kB / 4.519 GB, free: 38.91 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000603/6.369, allocations: 128.6 kB / 4.52 GB, free: 38.85 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001506/6.371, allocations: 0.7356 MB / 4.52 GB, free: 38.58 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.407e-05/6.371, allocations: 99.25 kB / 4.52 GB, free: 38.51 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001838/6.371, allocations: 54.95 kB / 4.52 GB, free: 38.51 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001906/6.373, allocations: 1.315 MB / 4.522 GB, free: 38.5 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001798/6.375, allocations: 1.33 MB / 4.523 GB, free: 38.27 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.678e-05/6.375, allocations: 6.188 kB / 4.523 GB, free: 38.27 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001219/6.375, allocations: 3 kB / 4.523 GB, free: 38.27 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.715e-05/6.375, allocations: 67.78 kB / 4.523 GB, free: 38.27 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007537/6.382, allocations: 6.423 MB / 4.529 GB, free: 34.76 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001009/6.383, allocations: 0.6296 MB / 4.53 GB, free: 34.74 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007136/6.384, allocations: 480.2 kB / 4.53 GB, free: 34.73 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008822/6.385, allocations: 1.234 MB / 4.532 GB, free: 33.42 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.363e-05/6.385, allocations: 46.88 kB / 4.532 GB, free: 33.38 MB / 442.7 MB Notification: Performance of pre-optimization done (n=78): time 2.515e-06/6.385, allocations: 0 / 4.532 GB, free: 33.38 MB / 442.7 MB Notification: Performance of matching and sorting (n=90): time 0.01629/6.401, allocations: 4.258 MB / 4.536 GB, free: 32.89 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.752e-05/6.401, allocations: 120.4 kB / 4.536 GB, free: 32.77 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005582/6.402, allocations: 0.55 MB / 4.536 GB, free: 32.64 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 8.73e-05/6.402, allocations: 28.8 kB / 4.537 GB, free: 32.61 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001422/6.402, allocations: 416.2 kB / 4.537 GB, free: 32.33 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001753/6.402, allocations: 311.7 kB / 4.537 GB, free: 32.13 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.407e-05/6.403, allocations: 0 / 4.537 GB, free: 32.13 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 9.014e-05/6.403, allocations: 398.1 kB / 4.538 GB, free: 31.82 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007241/6.403, allocations: 0.5511 MB / 4.538 GB, free: 31.82 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008265/6.404, allocations: 0.8804 MB / 4.539 GB, free: 31.43 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004567/6.409, allocations: 1.353 MB / 4.54 GB, free: 31.42 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/6.409, allocations: 4.906 kB / 4.54 GB, free: 31.42 MB / 442.7 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.005941/6.415, allocations: 2.305 MB / 4.543 GB, free: 31.32 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000577/6.415, allocations: 3.913 MB / 4.546 GB, free: 27.25 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.428e-05/6.415, allocations: 10.91 kB / 4.546 GB, free: 27.25 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009804/6.416, allocations: 245.4 kB / 4.547 GB, free: 27.24 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001072/6.417, allocations: 278.4 kB / 4.547 GB, free: 27.24 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008029/6.418, allocations: 0.8636 MB / 4.548 GB, free: 26.71 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001157/6.419, allocations: 91.69 kB / 4.548 GB, free: 26.71 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001383/6.42, allocations: 76.17 kB / 4.548 GB, free: 26.71 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.3e-06/6.42, allocations: 3.031 kB / 4.548 GB, free: 26.71 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005689/6.425, allocations: 2.149 MB / 4.55 GB, free: 26.68 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.184e-05/6.425, allocations: 9.5 kB / 4.55 GB, free: 26.68 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009242/6.426, allocations: 249 kB / 4.55 GB, free: 26.67 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001058/6.427, allocations: 276.6 kB / 4.551 GB, free: 26.67 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007727/6.428, allocations: 0.8607 MB / 4.551 GB, free: 26.14 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001029/6.429, allocations: 74.83 kB / 4.551 GB, free: 26.14 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001294/6.429, allocations: 75.62 kB / 4.551 GB, free: 26.14 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * Number of states: 0 () * Number of discrete variables: 6 (traceVolume.ind,traceSource.ind,volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (147): * Single equations (assignments): 144 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 6} Notification: Performance of prepare postOptimizeDAE: time 0.0002864/6.43, allocations: 157.9 kB / 4.552 GB, free: 26.02 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001707/6.43, allocations: 83.34 kB / 4.552 GB, free: 25.98 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003865/6.434, allocations: 1.866 MB / 4.554 GB, free: 25.85 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.101e-05/6.434, allocations: 10.41 kB / 4.554 GB, free: 25.85 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/6.434, allocations: 0 / 4.554 GB, free: 25.85 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.211e-05/6.434, allocations: 17.23 kB / 4.554 GB, free: 25.85 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007414/6.441, allocations: 3.885 MB / 4.557 GB, free: 25.05 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.801e-06/6.441, allocations: 2.781 kB / 4.557 GB, free: 25.05 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007951/6.442, allocations: 177.3 kB / 4.558 GB, free: 25.04 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00131/6.443, allocations: 318.5 kB / 4.558 GB, free: 25.03 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.608e-05/6.443, allocations: 31.77 kB / 4.558 GB, free: 25.03 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007514/6.444, allocations: 0.8453 MB / 4.559 GB, free: 24.5 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.558e-06/6.444, allocations: 6.25 kB / 4.559 GB, free: 24.5 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003726/6.448, allocations: 2.513 MB / 4.561 GB, free: 23.96 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005159/6.453, allocations: 3.83 MB / 4.565 GB, free: 23.04 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004919/6.453, allocations: 327 kB / 4.565 GB, free: 22.89 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000181/6.454, allocations: 10.84 kB / 4.565 GB, free: 22.89 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009657/6.455, allocations: 70.23 kB / 4.565 GB, free: 22.89 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001149/6.455, allocations: 66.27 kB / 4.565 GB, free: 22.88 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001168/6.455, allocations: 64.91 kB / 4.565 GB, free: 22.88 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.0004468/6.455, allocations: 426 kB / 4.566 GB, free: 22.79 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005631/6.461, allocations: 1.716 MB / 4.567 GB, free: 22.55 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 4 (volume.medium.p,volume.medium.Xi[1],volume.medium.T,volume.mC_scaled[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (94): * Single equations (assignments): 91 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.003627/6.465, allocations: 2.225 MB / 4.57 GB, free: 22.08 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003142/6.468, allocations: 2.312 MB / 4.572 GB, free: 21.87 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/6.468, allocations: 4.344 kB / 4.572 GB, free: 21.86 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000898/6.469, allocations: 0.6589 MB / 4.573 GB, free: 21.83 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001642/6.47, allocations: 375.1 kB / 4.573 GB, free: 21.81 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004395/6.475, allocations: 2.062 MB / 4.575 GB, free: 21.23 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001227/6.476, allocations: 1.303 MB / 4.576 GB, free: 20.47 MB / 442.7 MB Notification: Performance of SimCode: time 5.71e-07/6.476, allocations: 0 / 4.576 GB, free: 20.47 MB / 442.7 MB (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Fluid_Examples_TraceSubstances_RoomCO2_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Fluid_Examples_TraceSubstances_RoomCO2.fmu > Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe 2>&1)