Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter,fileNamePrefix="Buildings_latest_Buildings_Fluid_FixedResistances_Examples_HydraulicDiameter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 2.246/2.246, allocations: 390.4 MB / 397.7 MB, free: 11.23 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.001206/0.001206, allocations: 177.2 kB / 490.8 MB, free: 1.938 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.606/1.606, allocations: 221.3 MB / 0.7863 GB, free: 13.67 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001054/0.001054, allocations: 81.86 kB / 0.9264 GB, free: 14.2 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.713/0.7141, allocations: 149.1 MB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3298/1.044, allocations: 143 MB / 1.212 GB, free: 40.05 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.282/2.326, allocations: 413.2 MB / 1.615 GB, free: 2.602 MB / 1.026 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003759/2.327, allocations: 85.06 kB / 1.615 GB, free: 2.559 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 1.311/3.638, allocations: 171.7 MB / 1.783 GB, free: 303.4 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.819e-05/3.638, allocations: 7.812 kB / 1.783 GB, free: 303.4 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001435/3.638, allocations: 51.72 kB / 1.783 GB, free: 303.4 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05775/3.696, allocations: 14.67 MB / 1.797 GB, free: 302.7 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.268e-05/3.696, allocations: 7.562 kB / 1.797 GB, free: 302.7 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.02e-05/3.696, allocations: 15.66 kB / 1.797 GB, free: 302.7 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003592/3.696, allocations: 98.61 kB / 1.797 GB, free: 302.7 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003423/3.696, allocations: 139.1 kB / 1.798 GB, free: 302.6 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.518e-05/3.696, allocations: 0 / 1.798 GB, free: 302.6 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.597e-05/3.697, allocations: 0 / 1.798 GB, free: 302.6 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.011e-05/3.697, allocations: 3.625 kB / 1.798 GB, free: 302.6 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001528/3.698, allocations: 0.8134 MB / 1.798 GB, free: 302.1 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003598/3.698, allocations: 104 kB / 1.798 GB, free: 302.1 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001261/3.699, allocations: 46.61 kB / 1.798 GB, free: 302.1 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003515/3.699, allocations: 335.3 kB / 1.799 GB, free: 301.7 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.7e-05/3.699, allocations: 41.95 kB / 1.799 GB, free: 301.7 MB / 1.151 GB Notification: Performance of pre-optimization done (n=12): time 2.344e-06/3.699, allocations: 0 / 1.799 GB, free: 301.7 MB / 1.151 GB Notification: Performance of matching and sorting (n=12): time 0.0005779/3.7, allocations: 140.4 kB / 1.799 GB, free: 301.6 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.031e-05/3.7, allocations: 51.41 kB / 1.799 GB, free: 301.6 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003668/3.7, allocations: 250 kB / 1.799 GB, free: 301.5 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 2.588e-05/3.7, allocations: 29.45 kB / 1.799 GB, free: 301.4 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 8.756e-05/3.7, allocations: 144 kB / 1.799 GB, free: 301.3 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 5.034e-05/3.7, allocations: 34.83 kB / 1.799 GB, free: 301.3 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.928e-06/3.7, allocations: 0 / 1.799 GB, free: 301.3 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0001294/3.7, allocations: 350.4 kB / 1.8 GB, free: 301 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.922e-05/3.701, allocations: 19.19 kB / 1.8 GB, free: 301 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001314/3.701, allocations: 85.39 kB / 1.8 GB, free: 300.9 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002363/3.701, allocations: 45.7 kB / 1.8 GB, free: 300.9 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.906e-06/3.701, allocations: 0 / 1.8 GB, free: 300.9 MB / 1.151 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0004319/3.701, allocations: 139 kB / 1.8 GB, free: 300.9 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 7.083e-05/3.701, allocations: 191.1 kB / 1.8 GB, free: 300.7 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.654e-06/3.701, allocations: 0 / 1.8 GB, free: 300.7 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.714e-05/3.702, allocations: 0 / 1.8 GB, free: 300.7 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002405/3.702, allocations: 30.55 kB / 1.8 GB, free: 300.7 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.07e-05/3.702, allocations: 3.281 kB / 1.8 GB, free: 300.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003479/3.702, allocations: 26.12 kB / 1.8 GB, free: 300.7 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.807e-05/3.702, allocations: 14.41 kB / 1.8 GB, free: 300.7 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 7.845e-06/3.702, allocations: 5.094 kB / 1.8 GB, free: 300.7 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003329/3.703, allocations: 79.17 kB / 1.8 GB, free: 300.7 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.158e-06/3.703, allocations: 0 / 1.8 GB, free: 300.7 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.268e-06/3.703, allocations: 7.125 kB / 1.8 GB, free: 300.7 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002066/3.703, allocations: 30.12 kB / 1.8 GB, free: 300.7 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.605e-06/3.703, allocations: 0 / 1.8 GB, free: 300.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003021/3.703, allocations: 21.91 kB / 1.8 GB, free: 300.7 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.77e-05/3.703, allocations: 14.28 kB / 1.8 GB, free: 300.7 MB / 1.151 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 0.0001078/3.703, allocations: 108 kB / 1.801 GB, free: 300.6 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.028e-05/3.703, allocations: 32.12 kB / 1.801 GB, free: 300.6 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006899/3.704, allocations: 195.3 kB / 1.801 GB, free: 300.5 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.213e-05/3.704, allocations: 3.812 kB / 1.801 GB, free: 300.5 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.235e-06/3.704, allocations: 4.562 kB / 1.801 GB, free: 300.5 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.672e-06/3.704, allocations: 3.844 kB / 1.801 GB, free: 300.5 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001061/3.705, allocations: 0.5295 MB / 1.801 GB, free: 300.2 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.961e-06/3.705, allocations: 0 / 1.801 GB, free: 300.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002046/3.705, allocations: 40.31 kB / 1.801 GB, free: 300.2 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.498e-06/3.706, allocations: 0 / 1.801 GB, free: 300.2 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.799e-05/3.706, allocations: 3.156 kB / 1.801 GB, free: 300.2 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/3.706, allocations: 0 / 1.801 GB, free: 300.2 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.26e-06/3.706, allocations: 1.312 kB / 1.801 GB, free: 300.2 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004974/3.706, allocations: 318.7 kB / 1.802 GB, free: 300 MB / 1.151 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000648/3.707, allocations: 0.7017 MB / 1.802 GB, free: 299.4 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001328/3.707, allocations: 117.8 kB / 1.802 GB, free: 299.3 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.536e-05/3.707, allocations: 0 / 1.802 GB, free: 299.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003503/3.707, allocations: 31.16 kB / 1.802 GB, free: 299.3 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.865e-05/3.707, allocations: 15.56 kB / 1.802 GB, free: 299.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.075e-05/3.707, allocations: 6.359 kB / 1.802 GB, free: 299.3 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.0002485/3.708, allocations: 194.5 kB / 1.803 GB, free: 299.2 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.003322/3.711, allocations: 202.8 kB / 1.803 GB, free: 299.2 MB / 1.151 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.0007844/3.712, allocations: 293.9 kB / 1.803 GB, free: 299.1 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.0004291/3.712, allocations: 149.8 kB / 1.803 GB, free: 299 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/3.712, allocations: 3.562 kB / 1.803 GB, free: 299 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0001383/3.712, allocations: 60.62 kB / 1.803 GB, free: 299 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00107/3.714, allocations: 118.8 kB / 1.803 GB, free: 299 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001067/3.715, allocations: 375.1 kB / 1.804 GB, free: 298.9 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003973/3.715, allocations: 0.8385 MB / 1.805 GB, free: 298.2 MB / 1.151 GB Notification: Performance of SimCode: time 4.01e-07/3.715, allocations: 0 / 1.805 GB, free: 298.2 MB / 1.151 GB (rm -f Buildings_latest_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe ; mkfifo Buildings_latest_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe >> ../files/Buildings_latest_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_FixedResistances_Examples_HydraulicDiameter_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_FixedResistances_Examples_HydraulicDiameter.fmu > Buildings_latest_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe 2>&1)