Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) 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) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_FixedResistances_Examples_HydraulicDiameter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_FixedResistances_Examples_HydraulicDiameter",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 7.0.3-maint.7.0.x/package.mo): time 1.29/1.29, allocations: 249.4 MB / 256.7 MB, free: 7.066 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001156/0.001156, allocations: 173.3 kB / 316 MB, free: 3.578 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.132/1.132, allocations: 205.1 MB / 0.5667 GB, free: 15.61 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008516/0.0008516, allocations: 93.08 kB / 0.671 GB, free: 4.75 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3251/0.326, allocations: 112.5 MB / 0.7808 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1615/0.4875, allocations: 106.3 MB / 0.8846 GB, free: 12.56 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9716/1.459, allocations: 394.4 MB / 1.27 GB, free: 325.3 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001691/1.459, allocations: 87.05 kB / 1.27 GB, free: 325.3 MB / 0.8698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.2859/1.745, allocations: 163 MB / 1.429 GB, free: 188.5 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 2.822e-05/1.745, allocations: 8 kB / 1.429 GB, free: 188.5 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.143e-05/1.745, allocations: 51.44 kB / 1.429 GB, free: 188.4 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02562/1.771, allocations: 13.39 MB / 1.442 GB, free: 174.9 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.138e-05/1.771, allocations: 8 kB / 1.442 GB, free: 174.8 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.549e-05/1.771, allocations: 15.98 kB / 1.442 GB, free: 174.8 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001758/1.771, allocations: 92.55 kB / 1.442 GB, free: 174.7 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000189/1.771, allocations: 135.9 kB / 1.442 GB, free: 174.6 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.285e-06/1.772, allocations: 0 / 1.442 GB, free: 174.6 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.57e-05/1.772, allocations: 3.938 kB / 1.442 GB, free: 174.6 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.731e-06/1.772, allocations: 4 kB / 1.442 GB, free: 174.6 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007896/1.772, allocations: 0.812 MB / 1.443 GB, free: 173.7 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001697/1.773, allocations: 94.67 kB / 1.443 GB, free: 173.6 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.516e-05/1.773, allocations: 56.78 kB / 1.443 GB, free: 173.5 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001792/1.773, allocations: 336.3 kB / 1.444 GB, free: 173.1 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.496e-05/1.773, allocations: 38.56 kB / 1.444 GB, free: 173.1 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=12): time 1.252e-06/1.773, allocations: 224 / 1.444 GB, free: 173.1 MB / 0.8698 GB Notification: Performance of matching and sorting (n=12): time 0.0002944/1.773, allocations: 133.2 kB / 1.444 GB, free: 173 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.346e-05/1.773, allocations: 55.41 kB / 1.444 GB, free: 172.9 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001674/1.773, allocations: 250.1 kB / 1.444 GB, free: 172.6 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 1.399e-05/1.773, allocations: 29.7 kB / 1.444 GB, free: 172.6 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 4.037e-05/1.773, allocations: 144.3 kB / 1.444 GB, free: 172.4 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 2.292e-05/1.773, allocations: 47.23 kB / 1.444 GB, free: 172.4 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.731e-06/1.773, allocations: 0 / 1.444 GB, free: 172.4 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 4.525e-05/1.773, allocations: 338.8 kB / 1.445 GB, free: 172.1 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.186e-05/1.774, allocations: 27.98 kB / 1.445 GB, free: 172 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.204e-05/1.774, allocations: 90.78 kB / 1.445 GB, free: 171.9 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001168/1.774, allocations: 39.97 kB / 1.445 GB, free: 171.9 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/1.774, allocations: 0 / 1.445 GB, free: 171.9 MB / 0.8698 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002188/1.774, allocations: 141.2 kB / 1.445 GB, free: 171.7 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 3.103e-05/1.774, allocations: 189.9 kB / 1.445 GB, free: 171.5 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/1.774, allocations: 0 / 1.445 GB, free: 171.5 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.306e-06/1.774, allocations: 3.938 kB / 1.445 GB, free: 171.5 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001331/1.774, allocations: 35.92 kB / 1.445 GB, free: 171.5 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.417e-06/1.774, allocations: 0 / 1.445 GB, free: 171.5 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001701/1.774, allocations: 31.97 kB / 1.445 GB, free: 171.5 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.917e-05/1.774, allocations: 4 kB / 1.445 GB, free: 171.5 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 4.789e-06/1.774, allocations: 4 kB / 1.445 GB, free: 171.5 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0001724/1.775, allocations: 79.8 kB / 1.445 GB, free: 171.4 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.232e-06/1.775, allocations: 0 / 1.445 GB, free: 171.4 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.464e-06/1.775, allocations: 4.094 kB / 1.445 GB, free: 171.4 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001144/1.775, allocations: 35.95 kB / 1.445 GB, free: 171.3 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.823e-06/1.775, allocations: 4 kB / 1.445 GB, free: 171.3 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000152/1.775, allocations: 20.2 kB / 1.445 GB, free: 171.3 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.387e-05/1.775, allocations: 16 kB / 1.445 GB, free: 171.3 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.612e-05/1.775, allocations: 112.8 kB / 1.446 GB, free: 171.2 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.335e-05/1.775, allocations: 35.56 kB / 1.446 GB, free: 171.2 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003306/1.775, allocations: 184.5 kB / 1.446 GB, free: 171 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/1.775, allocations: 0 / 1.446 GB, free: 171 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/1.775, allocations: 0 / 1.446 GB, free: 171 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.905e-06/1.775, allocations: 4 kB / 1.446 GB, free: 171 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005177/1.776, allocations: 0.532 MB / 1.446 GB, free: 170.4 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/1.776, allocations: 0 / 1.446 GB, free: 170.4 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001091/1.776, allocations: 31.98 kB / 1.446 GB, free: 170.4 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/1.776, allocations: 3.906 kB / 1.446 GB, free: 170.3 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.718e-06/1.776, allocations: 4 kB / 1.446 GB, free: 170.3 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/1.776, allocations: 4.094 kB / 1.446 GB, free: 170.3 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.604e-06/1.776, allocations: 4 kB / 1.446 GB, free: 170.3 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002472/1.776, allocations: 315.9 kB / 1.447 GB, free: 170 MB / 0.8698 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002957/1.777, allocations: 0.7016 MB / 1.447 GB, free: 169.2 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 7.354e-05/1.777, allocations: 128.5 kB / 1.447 GB, free: 169.1 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.849e-05/1.777, allocations: 0 / 1.447 GB, free: 169.1 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001883/1.777, allocations: 19.98 kB / 1.447 GB, free: 169.1 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.092e-05/1.777, allocations: 19.83 kB / 1.447 GB, free: 169.1 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.08e-05/1.777, allocations: 4 kB / 1.447 GB, free: 169.1 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.000114/1.777, allocations: 200.6 kB / 1.448 GB, free: 168.9 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.001593/1.779, allocations: 199.7 kB / 1.448 GB, free: 168.7 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 12 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003712/1.779, allocations: 298.6 kB / 1.448 GB, free: 168.4 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0001976/1.779, allocations: 149.9 kB / 1.448 GB, free: 168.2 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.403e-06/1.779, allocations: 0 / 1.448 GB, free: 168.2 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 7.325e-05/1.779, allocations: 60.05 kB / 1.448 GB, free: 168.2 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000545/1.78, allocations: 116 kB / 1.448 GB, free: 168.1 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005221/1.78, allocations: 379.4 kB / 1.449 GB, free: 167.6 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001955/1.781, allocations: 0.8304 MB / 1.45 GB, free: 166.8 MB / 0.8698 GB Notification: Performance of SimCode: time 2.6e-07/1.781, allocations: 0 / 1.45 GB, free: 166.8 MB / 0.8698 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_FixedResistances_Examples_HydraulicDiameter_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_FixedResistances_Examples_HydraulicDiameter.fmu > Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe 2>&1)