Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Interfaces.Examples.ConservationEquation.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) 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) 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) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.ConservationEquation,fileNamePrefix="Buildings_9_Buildings_Fluid_Interfaces_Examples_ConservationEquation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.ConservationEquation,fileNamePrefix="Buildings_9_Buildings_Fluid_Interfaces_Examples_ConservationEquation",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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.071/2.071, allocations: 387.2 MB / 394.5 MB, free: 13.64 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001171/0.001171, allocations: 177.3 kB / 487 MB, free: 5.336 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.502/1.502, allocations: 221.3 MB / 0.7819 GB, free: 1.289 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001063/0.001062, allocations: 98.61 kB / 0.9213 GB, free: 2.539 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.6742/0.6753, allocations: 148.4 MB / 1.066 GB, free: 168.1 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.288/0.9633, allocations: 142.3 MB / 1.205 GB, free: 26.07 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9906/1.954, allocations: 400.4 MB / 1.596 GB, free: 6.469 MB / 1.026 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003228/1.954, allocations: 86.36 kB / 1.596 GB, free: 6.426 MB / 1.026 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 92 * Number of variables: 92 Notification: Performance of Generate backend data structure: time 1.059/3.013, allocations: 259.8 MB / 1.85 GB, free: 279.6 MB / 1.135 GB Notification: Performance of prepare preOptimizeDAE: time 4.517e-05/3.013, allocations: 10.75 kB / 1.85 GB, free: 279.6 MB / 1.135 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000879/3.014, allocations: 192.7 kB / 1.85 GB, free: 279.5 MB / 1.135 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02831/3.043, allocations: 12.07 MB / 1.862 GB, free: 272.2 MB / 1.135 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003466/3.043, allocations: 89.88 kB / 1.862 GB, free: 272.2 MB / 1.135 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.284e-05/3.043, allocations: 22.91 kB / 1.862 GB, free: 272.2 MB / 1.135 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006444/3.044, allocations: 294 kB / 1.862 GB, free: 272.1 MB / 1.135 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006674/3.044, allocations: 409.4 kB / 1.863 GB, free: 271.8 MB / 1.135 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.005e-05/3.045, allocations: 9.594 kB / 1.863 GB, free: 271.8 MB / 1.135 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.267e-05/3.045, allocations: 1.562 kB / 1.863 GB, free: 271.8 MB / 1.135 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.269e-05/3.045, allocations: 20.48 kB / 1.863 GB, free: 271.8 MB / 1.135 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003041/3.048, allocations: 2.238 MB / 1.865 GB, free: 269.8 MB / 1.135 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005138/3.048, allocations: 256.8 kB / 1.865 GB, free: 269.7 MB / 1.135 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002644/3.048, allocations: 177.1 kB / 1.865 GB, free: 269.6 MB / 1.135 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002882/3.049, allocations: 342.8 kB / 1.866 GB, free: 269.2 MB / 1.135 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000338/3.049, allocations: 250.3 kB / 1.866 GB, free: 269.1 MB / 1.135 GB Notification: Performance of pre-optimization done (n=33): time 3.126e-06/3.049, allocations: 0 / 1.866 GB, free: 269.1 MB / 1.135 GB Notification: Performance of matching and sorting (n=33): time 0.001205/3.05, allocations: 432.2 kB / 1.866 GB, free: 268.8 MB / 1.135 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.547e-05/3.05, allocations: 81.23 kB / 1.867 GB, free: 268.8 MB / 1.135 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004715/3.051, allocations: 374.9 kB / 1.867 GB, free: 268.5 MB / 1.135 GB Notification: Performance of collectPreVariables (initialization): time 4.163e-05/3.051, allocations: 28.02 kB / 1.867 GB, free: 268.5 MB / 1.135 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001278/3.051, allocations: 210.7 kB / 1.867 GB, free: 268.3 MB / 1.135 GB Notification: Performance of collectInitialBindings (initialization): time 9.1e-05/3.051, allocations: 104.2 kB / 1.867 GB, free: 268.2 MB / 1.135 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.021e-05/3.051, allocations: 0.8125 kB / 1.867 GB, free: 268.2 MB / 1.135 GB Notification: Performance of setup shared object (initialization): time 9.87e-05/3.051, allocations: 362.4 kB / 1.868 GB, free: 267.9 MB / 1.135 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002384/3.052, allocations: 121.3 kB / 1.868 GB, free: 267.8 MB / 1.135 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002825/3.052, allocations: 227.2 kB / 1.868 GB, free: 267.6 MB / 1.135 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004285/3.052, allocations: 168.3 kB / 1.868 GB, free: 267.6 MB / 1.135 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/3.052, allocations: 0 / 1.868 GB, free: 267.6 MB / 1.135 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.001075/3.053, allocations: 474.6 kB / 1.869 GB, free: 267.3 MB / 1.135 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001513/3.053, allocations: 0.6174 MB / 1.869 GB, free: 266.7 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/3.054, allocations: 1.938 kB / 1.869 GB, free: 266.7 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001878/3.054, allocations: 50.28 kB / 1.869 GB, free: 266.6 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000408/3.054, allocations: 86.91 kB / 1.869 GB, free: 266.6 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004133/3.055, allocations: 0.6116 MB / 1.87 GB, free: 266 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006466/3.055, allocations: 67.02 kB / 1.87 GB, free: 266 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.666e-05/3.055, allocations: 22.33 kB / 1.87 GB, free: 266 MB / 1.135 GB Notification: Performance of prepare postOptimizeDAE: time 7.945e-06/3.055, allocations: 7.594 kB / 1.87 GB, free: 266 MB / 1.135 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008253/3.056, allocations: 373.1 kB / 1.87 GB, free: 265.8 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.797e-06/3.056, allocations: 1.594 kB / 1.87 GB, free: 265.8 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001563/3.056, allocations: 46.67 kB / 1.87 GB, free: 265.8 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003912/3.057, allocations: 91.66 kB / 1.87 GB, free: 265.8 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00115/3.058, allocations: 1.501 MB / 1.872 GB, free: 264.3 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005864/3.058, allocations: 70.27 kB / 1.872 GB, free: 264.3 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.701e-05/3.059, allocations: 21.92 kB / 1.872 GB, free: 264.3 MB / 1.135 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,QSen_flow.a,QSen_flow.b,QSen_flow.last,$PRE.QSen_flow.nextEvent,QSen_flow.nextEvent,QSen_flow.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * 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 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0001827/3.059, allocations: 151.7 kB / 1.872 GB, free: 264.1 MB / 1.135 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001068/3.059, allocations: 54.78 kB / 1.872 GB, free: 264.1 MB / 1.135 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001131/3.06, allocations: 0.49 MB / 1.873 GB, free: 263.8 MB / 1.135 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.337e-06/3.06, allocations: 7.344 kB / 1.873 GB, free: 263.8 MB / 1.135 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.014e-06/3.06, allocations: 1.125 kB / 1.873 GB, free: 263.8 MB / 1.135 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009131/3.061, allocations: 0.6424 MB / 1.873 GB, free: 263.3 MB / 1.135 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002079/3.063, allocations: 1.095 MB / 1.874 GB, free: 262.6 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/3.063, allocations: 0.7812 kB / 1.874 GB, free: 262.6 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004225/3.063, allocations: 73.42 kB / 1.874 GB, free: 262.6 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001082/3.064, allocations: 36 kB / 1.874 GB, free: 262.5 MB / 1.135 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.494e-05/3.064, allocations: 9.953 kB / 1.874 GB, free: 262.5 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003086/3.064, allocations: 0.5858 MB / 1.875 GB, free: 262 MB / 1.135 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/3.064, allocations: 1.312 kB / 1.875 GB, free: 262 MB / 1.135 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001294/3.065, allocations: 0.8188 MB / 1.876 GB, free: 261.4 MB / 1.135 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001626/3.067, allocations: 1.417 MB / 1.877 GB, free: 260.4 MB / 1.135 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003608/3.067, allocations: 184.8 kB / 1.877 GB, free: 260.3 MB / 1.135 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.299e-05/3.067, allocations: 7.828 kB / 1.877 GB, free: 260.3 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000652/3.068, allocations: 62.89 kB / 1.877 GB, free: 260.2 MB / 1.135 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.234e-05/3.068, allocations: 24.38 kB / 1.877 GB, free: 260.2 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.887e-05/3.068, allocations: 26.78 kB / 1.878 GB, free: 260.2 MB / 1.135 GB Notification: Performance of sort global known variables: time 0.0004205/3.069, allocations: 289 kB / 1.878 GB, free: 260 MB / 1.135 GB Notification: Performance of remove unused functions: time 0.002612/3.071, allocations: 440.2 kB / 1.878 GB, free: 259.6 MB / 1.135 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 1 (dyn.U) * Number of discrete variables: 6 ($whenCondition1,QSen_flow.a,QSen_flow.b,QSen_flow.last,QSen_flow.nextEvent,QSen_flow.nextEventScaled) * Number of discrete states: 6 (QSen_flow.nextEvent,QSen_flow.last,QSen_flow.nextEventScaled,QSen_flow.b,QSen_flow.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 1 * 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 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008707/3.072, allocations: 418.6 kB / 1.879 GB, free: 259.2 MB / 1.135 GB Notification: Performance of simCode: created initialization part: time 0.001195/3.073, allocations: 0.7115 MB / 1.879 GB, free: 258.5 MB / 1.135 GB Notification: Performance of simCode: created event and clocks part: time 3.497e-06/3.073, allocations: 4.062 kB / 1.879 GB, free: 258.5 MB / 1.135 GB Notification: Performance of simCode: created simulation system equations: time 0.0003011/3.074, allocations: 233.6 kB / 1.88 GB, free: 258.3 MB / 1.135 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001229/3.075, allocations: 217.8 kB / 1.88 GB, free: 258.1 MB / 1.135 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001985/3.077, allocations: 0.7822 MB / 1.881 GB, free: 257.2 MB / 1.135 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004719/3.077, allocations: 0.9486 MB / 1.881 GB, free: 256.3 MB / 1.135 GB Notification: Performance of SimCode: time 7.21e-07/3.077, allocations: 0 / 1.881 GB, free: 256.3 MB / 1.135 GB (rm -f Buildings_9_Buildings.Fluid.Interfaces.Examples.ConservationEquation.pipe ; mkfifo Buildings_9_Buildings.Fluid.Interfaces.Examples.ConservationEquation.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Interfaces.Examples.ConservationEquation.pipe >> ../files/Buildings_9_Buildings.Fluid.Interfaces.Examples.ConservationEquation.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Interfaces.Examples.ConservationEquation_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Interfaces_Examples_ConservationEquation_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Interfaces_Examples_ConservationEquation.fmu > Buildings_9_Buildings.Fluid.Interfaces.Examples.ConservationEquation.pipe 2>&1)