Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter,fileNamePrefix="Buildings_8_Buildings_Fluid_FixedResistances_Examples_HydraulicDiameter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter,fileNamePrefix="Buildings_8_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 8.1.4-maint.8.1.x/package.mo): time 1.634/1.634, allocations: 289.8 MB / 297.1 MB, free: 6.66 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001205/0.001205, allocations: 169.3 kB / 366.3 MB, free: 1.973 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.645/1.645, allocations: 205.2 MB / 0.6256 GB, free: 5.805 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009554/0.0009555, allocations: 79 kB / 0.7395 GB, free: 39.65 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2982/0.2992, allocations: 122.4 MB / 0.8591 GB, free: 13.25 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7106/1.01, allocations: 116.3 MB / 0.9726 GB, free: 68.22 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9636/1.973, allocations: 402 MB / 1.365 GB, free: 82.61 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002318/1.974, allocations: 79.2 kB / 1.365 GB, free: 82.57 MB / 0.823 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.3505/2.324, allocations: 167.6 MB / 1.529 GB, free: 5.781 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 4.715e-05/2.324, allocations: 11.98 kB / 1.529 GB, free: 5.77 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001931/2.324, allocations: 43.53 kB / 1.529 GB, free: 5.727 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03793/2.362, allocations: 13.71 MB / 1.542 GB, free: 7.824 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.391e-05/2.363, allocations: 4 kB / 1.542 GB, free: 7.82 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001092/2.363, allocations: 12 kB / 1.542 GB, free: 7.809 MB / 0.9167 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003384/2.363, allocations: 104.6 kB / 1.543 GB, free: 7.707 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000331/2.363, allocations: 131.9 kB / 1.543 GB, free: 7.574 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.951e-05/2.363, allocations: 3.984 kB / 1.543 GB, free: 7.57 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.559e-05/2.363, allocations: 3.938 kB / 1.543 GB, free: 7.566 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.373e-05/2.363, allocations: 4 kB / 1.543 GB, free: 7.562 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001831/2.365, allocations: 0.8137 MB / 1.543 GB, free: 6.668 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002519/2.366, allocations: 94.61 kB / 1.544 GB, free: 6.566 MB / 0.9167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001076/2.366, allocations: 52.84 kB / 1.544 GB, free: 6.512 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000359/2.366, allocations: 332.4 kB / 1.544 GB, free: 6.113 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.48e-05/2.366, allocations: 42.55 kB / 1.544 GB, free: 6.062 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=12): time 3.837e-06/2.366, allocations: 3.984 kB / 1.544 GB, free: 6.059 MB / 0.9167 GB Notification: Performance of matching and sorting (n=12): time 0.0005079/2.367, allocations: 141.1 kB / 1.544 GB, free: 5.914 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.502e-05/2.367, allocations: 51.41 kB / 1.544 GB, free: 5.852 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003404/2.367, allocations: 250.1 kB / 1.544 GB, free: 5.602 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 3.356e-05/2.367, allocations: 25.7 kB / 1.544 GB, free: 5.57 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001459/2.367, allocations: 148.5 kB / 1.545 GB, free: 5.422 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 6.107e-05/2.367, allocations: 39.39 kB / 1.545 GB, free: 5.383 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.576e-06/2.367, allocations: 3.938 kB / 1.545 GB, free: 5.379 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0002303/2.368, allocations: 342.8 kB / 1.545 GB, free: 5.035 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.075e-05/2.368, allocations: 31.92 kB / 1.545 GB, free: 5.004 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001202/2.368, allocations: 74.86 kB / 1.545 GB, free: 4.906 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002149/2.368, allocations: 51.88 kB / 1.545 GB, free: 4.855 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/2.368, allocations: 0 / 1.545 GB, free: 4.855 MB / 0.9167 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000384/2.368, allocations: 137.2 kB / 1.545 GB, free: 4.715 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001821/2.369, allocations: 179.8 kB / 1.545 GB, free: 4.527 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.251e-05/2.369, allocations: 7.938 kB / 1.545 GB, free: 4.52 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.409e-05/2.369, allocations: 3.984 kB / 1.545 GB, free: 4.516 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001733/2.369, allocations: 35.92 kB / 1.545 GB, free: 4.48 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.828e-06/2.369, allocations: 0 / 1.545 GB, free: 4.48 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002737/2.369, allocations: 23.89 kB / 1.545 GB, free: 4.457 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.075e-05/2.369, allocations: 15.98 kB / 1.545 GB, free: 4.441 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.026e-05/2.369, allocations: 4 kB / 1.545 GB, free: 4.438 MB / 0.9167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002431/2.369, allocations: 75.89 kB / 1.546 GB, free: 4.363 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.104e-06/2.369, allocations: 0 / 1.546 GB, free: 4.363 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.777e-06/2.369, allocations: 0 / 1.546 GB, free: 4.363 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002049/2.37, allocations: 27.98 kB / 1.546 GB, free: 4.336 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.344e-06/2.37, allocations: 0 / 1.546 GB, free: 4.336 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002302/2.37, allocations: 35.81 kB / 1.546 GB, free: 4.301 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.115e-05/2.37, allocations: 4 kB / 1.546 GB, free: 4.297 MB / 0.9167 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 9.613e-05/2.37, allocations: 112.9 kB / 1.546 GB, free: 4.18 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.86e-05/2.37, allocations: 39.53 kB / 1.546 GB, free: 4.141 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004627/2.371, allocations: 191.6 kB / 1.546 GB, free: 3.949 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.711e-06/2.371, allocations: 96 / 1.546 GB, free: 3.949 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/2.371, allocations: 3.984 kB / 1.546 GB, free: 3.945 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.223e-05/2.371, allocations: 3.984 kB / 1.546 GB, free: 3.941 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008703/2.372, allocations: 0.5323 MB / 1.546 GB, free: 3.355 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.901e-06/2.372, allocations: 4.078 kB / 1.546 GB, free: 3.352 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001314/2.372, allocations: 27.98 kB / 1.547 GB, free: 3.324 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.747e-06/2.372, allocations: 4 kB / 1.547 GB, free: 3.32 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.439e-05/2.372, allocations: 4 kB / 1.547 GB, free: 3.316 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.594e-06/2.372, allocations: 4 kB / 1.547 GB, free: 3.312 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.147e-06/2.372, allocations: 3.938 kB / 1.547 GB, free: 3.309 MB / 0.9167 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004111/2.372, allocations: 307.9 kB / 1.547 GB, free: 2.965 MB / 0.9167 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000611/2.373, allocations: 0.7022 MB / 1.548 GB, free: 2.215 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001459/2.373, allocations: 124.6 kB / 1.548 GB, free: 2.074 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.16e-05/2.373, allocations: 0 / 1.548 GB, free: 2.074 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002355/2.373, allocations: 27.97 kB / 1.548 GB, free: 2.047 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.217e-05/2.373, allocations: 7.984 kB / 1.548 GB, free: 2.039 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.445e-05/2.373, allocations: 4 kB / 1.548 GB, free: 2.035 MB / 0.9167 GB Notification: Performance of sort global known variables: time 0.0002008/2.374, allocations: 200.6 kB / 1.548 GB, free: 1.84 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.002151/2.376, allocations: 207.7 kB / 1.548 GB, free: 1.637 MB / 0.9167 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.0007007/2.376, allocations: 291.1 kB / 1.548 GB, free: 1.352 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.000315/2.377, allocations: 146 kB / 1.548 GB, free: 1.207 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 4.629e-06/2.377, allocations: 0 / 1.548 GB, free: 1.207 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.0001087/2.377, allocations: 63.86 kB / 1.549 GB, free: 1.145 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007221/2.378, allocations: 126.2 kB / 1.549 GB, free: 1.023 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008363/2.378, allocations: 379 kB / 1.549 GB, free: 0.6211 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005855/2.379, allocations: 0.8343 MB / 1.55 GB, free: 15.76 MB / 0.9323 GB Notification: Performance of SimCode: time 5.62e-07/2.379, allocations: 0 / 1.55 GB, free: 15.76 MB / 0.9323 GB (rm -f Buildings_8_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe ; mkfifo Buildings_8_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe >> ../files/Buildings_8_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_FixedResistances_Examples_HydraulicDiameter_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_FixedResistances_Examples_HydraulicDiameter.fmu > Buildings_8_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe 2>&1)