Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Delays.Examples.Delay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Fluid.Delays.Examples.Delay,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Delays_Examples_Delay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Delays.Examples.Delay,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Delays_Examples_Delay",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/BuildingSystems 2.0.0-master/package.mo): time 0.7371/0.7371, allocations: 141.8 MB / 149.1 MB, free: 4.496 MB / 122.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001146/0.001146, allocations: 186.2 kB / 181.9 MB, free: 164 kB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.36/1.36, allocations: 221.3 MB / 436 MB, free: 9.352 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009661/0.0009661, allocations: 94.19 kB / 0.507 GB, free: 24.14 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001843/0.001843, allocations: 280.7 kB / 0.5884 GB, free: 12.34 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.1761/0.178, allocations: 89.63 MB / 0.676 GB, free: 2.625 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4099/0.5879, allocations: 82.76 MB / 0.7568 GB, free: 112.9 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.69/4.277, allocations: 1.882 GB / 2.639 GB, free: 156.2 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002277/4.278, allocations: 95.27 kB / 2.639 GB, free: 156.1 MB / 0.6982 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 1.623/5.9, allocations: 489.3 MB / 3.117 GB, free: 156.5 MB / 0.6982 GB Notification: Performance of prepare preOptimizeDAE: time 4.09e-05/5.9, allocations: 9.125 kB / 3.117 GB, free: 156.5 MB / 0.6982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001612/5.902, allocations: 218.1 kB / 3.117 GB, free: 156.5 MB / 0.6982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001459/5.904, allocations: 0.6296 MB / 3.118 GB, free: 156.2 MB / 0.6982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.835e-05/5.904, allocations: 17.94 kB / 3.118 GB, free: 156.2 MB / 0.6982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001124/5.904, allocations: 26.69 kB / 3.118 GB, free: 156.2 MB / 0.6982 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007538/5.905, allocations: 368.8 kB / 3.118 GB, free: 156.2 MB / 0.6982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007294/5.905, allocations: 404.4 kB / 3.119 GB, free: 156.2 MB / 0.6982 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.433e-05/5.905, allocations: 0 / 3.119 GB, free: 156.2 MB / 0.6982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.827e-05/5.905, allocations: 2.516 kB / 3.119 GB, free: 156.2 MB / 0.6982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.87e-05/5.905, allocations: 18.38 kB / 3.119 GB, free: 156.2 MB / 0.6982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002925/5.908, allocations: 2.027 MB / 3.121 GB, free: 155.2 MB / 0.6982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004112/5.909, allocations: 294.7 kB / 3.121 GB, free: 155.2 MB / 0.6982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002305/5.909, allocations: 185.2 kB / 3.121 GB, free: 155.2 MB / 0.6982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002924/5.909, allocations: 194.2 kB / 3.121 GB, free: 155 MB / 0.6982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.365e-05/5.909, allocations: 41.56 kB / 3.121 GB, free: 155 MB / 0.6982 GB Notification: Performance of pre-optimization done (n=33): time 2.264e-06/5.909, allocations: 0 / 3.121 GB, free: 155 MB / 0.6982 GB Notification: Performance of matching and sorting (n=33): time 0.001026/5.91, allocations: 386.5 kB / 3.122 GB, free: 154.9 MB / 0.6982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.193e-05/5.91, allocations: 57.78 kB / 3.122 GB, free: 154.8 MB / 0.6982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004252/5.911, allocations: 378.7 kB / 3.122 GB, free: 154.7 MB / 0.6982 GB Notification: Performance of collectPreVariables (initialization): time 4.488e-05/5.911, allocations: 31.08 kB / 3.122 GB, free: 154.7 MB / 0.6982 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001082/5.911, allocations: 228.9 kB / 3.122 GB, free: 154.6 MB / 0.6982 GB Notification: Performance of collectInitialBindings (initialization): time 9.346e-05/5.911, allocations: 110.1 kB / 3.122 GB, free: 154.5 MB / 0.6982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.7e-05/5.911, allocations: 0 / 3.122 GB, free: 154.5 MB / 0.6982 GB Notification: Performance of setup shared object (initialization): time 9.268e-05/5.911, allocations: 362.2 kB / 3.123 GB, free: 154.2 MB / 0.6982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001642/5.911, allocations: 115.2 kB / 3.123 GB, free: 154.2 MB / 0.6982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002067/5.912, allocations: 201 kB / 3.123 GB, free: 154.1 MB / 0.6982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002053/5.912, allocations: 146.7 kB / 3.123 GB, free: 154.1 MB / 0.6982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/5.912, allocations: 2.406 kB / 3.123 GB, free: 154.1 MB / 0.6982 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005497/5.912, allocations: 375.5 kB / 3.124 GB, free: 154 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 8.557e-05/5.912, allocations: 363.4 kB / 3.124 GB, free: 153.7 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/5.912, allocations: 2.625 kB / 3.124 GB, free: 153.7 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.749e-05/5.913, allocations: 6.5 kB / 3.124 GB, free: 153.7 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003758/5.913, allocations: 79.38 kB / 3.124 GB, free: 153.7 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.418e-06/5.913, allocations: 6.812 kB / 3.124 GB, free: 153.7 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006253/5.914, allocations: 58.8 kB / 3.124 GB, free: 153.7 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.664e-05/5.914, allocations: 17.08 kB / 3.124 GB, free: 153.7 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 8.737e-06/5.914, allocations: 3.938 kB / 3.124 GB, free: 153.7 MB / 0.6982 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004036/5.914, allocations: 281.4 kB / 3.124 GB, free: 153.7 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.395e-06/5.914, allocations: 3.094 kB / 3.124 GB, free: 153.7 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.13e-06/5.914, allocations: 3.969 kB / 3.124 GB, free: 153.7 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003201/5.914, allocations: 68.81 kB / 3.124 GB, free: 153.7 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.066e-06/5.914, allocations: 7.281 kB / 3.124 GB, free: 153.7 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005878/5.915, allocations: 58.78 kB / 3.125 GB, free: 153.6 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.941e-05/5.915, allocations: 16.17 kB / 3.125 GB, free: 153.6 MB / 0.6982 GB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (39): * Single equations (assignments): 39 * 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.0001164/5.915, allocations: 107.8 kB / 3.125 GB, free: 153.5 MB / 0.6982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000102/5.915, allocations: 56.75 kB / 3.125 GB, free: 153.5 MB / 0.6982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005943/5.916, allocations: 364.2 kB / 3.125 GB, free: 153.5 MB / 0.6982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.544e-06/5.916, allocations: 7.641 kB / 3.125 GB, free: 153.5 MB / 0.6982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.404e-06/5.916, allocations: 3.594 kB / 3.125 GB, free: 153.5 MB / 0.6982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003924/5.916, allocations: 384.2 kB / 3.125 GB, free: 153.3 MB / 0.6982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001575/5.918, allocations: 1.048 MB / 3.126 GB, free: 153 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/5.918, allocations: 6.969 kB / 3.126 GB, free: 153 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004456/5.918, allocations: 91.88 kB / 3.127 GB, free: 153 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.259e-06/5.918, allocations: 2.906 kB / 3.127 GB, free: 153 MB / 0.6982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.937e-05/5.918, allocations: 7.469 kB / 3.127 GB, free: 153 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.478e-06/5.918, allocations: 3.969 kB / 3.127 GB, free: 153 MB / 0.6982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.129e-06/5.918, allocations: 7.875 kB / 3.127 GB, free: 153 MB / 0.6982 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007749/5.919, allocations: 0.7333 MB / 3.127 GB, free: 152.7 MB / 0.6982 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001246/5.92, allocations: 1.362 MB / 3.129 GB, free: 152 MB / 0.6982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000259/5.921, allocations: 177.2 kB / 3.129 GB, free: 151.9 MB / 0.6982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.782e-05/5.921, allocations: 7.812 kB / 3.129 GB, free: 151.9 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005766/5.921, allocations: 50.39 kB / 3.129 GB, free: 151.9 MB / 0.6982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.929e-05/5.922, allocations: 29.22 kB / 3.129 GB, free: 151.9 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.826e-05/5.922, allocations: 8.719 kB / 3.129 GB, free: 151.9 MB / 0.6982 GB Notification: Performance of sort global known variables: time 0.0002972/5.922, allocations: 295.2 kB / 3.129 GB, free: 151.8 MB / 0.6982 GB Notification: Performance of remove unused functions: time 0.002847/5.925, allocations: 0.7015 MB / 3.13 GB, free: 151.7 MB / 0.6982 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (del.dynBal.U,del.dynBal.m,del.dynBal.mXi[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 33 * 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 Backend phase and start with SimCode phase: time 0.001938/5.927, allocations: 1.425 MB / 3.131 GB, free: 151.4 MB / 0.6982 GB Notification: Performance of simCode: created initialization part: time 0.000796/5.927, allocations: 489.4 kB / 3.132 GB, free: 151.4 MB / 0.6982 GB Notification: Performance of simCode: created event and clocks part: time 4.608e-06/5.927, allocations: 0 / 3.132 GB, free: 151.4 MB / 0.6982 GB Notification: Performance of simCode: created simulation system equations: time 0.0002371/5.928, allocations: 164 kB / 3.132 GB, free: 151.4 MB / 0.6982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001802/5.93, allocations: 318.1 kB / 3.132 GB, free: 151.4 MB / 0.6982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002056/5.932, allocations: 0.9781 MB / 3.133 GB, free: 151.1 MB / 0.6982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007042/5.932, allocations: 0.9979 MB / 3.134 GB, free: 150.4 MB / 0.6982 GB Notification: Performance of SimCode: time 5.01e-07/5.932, allocations: 0 / 3.134 GB, free: 150.4 MB / 0.6982 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Delays.Examples.Delay.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Delays.Examples.Delay.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Delays.Examples.Delay.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Delays.Examples.Delay.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Delays_Examples_Delay_fmu --startTime=0 --stopTime=300 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Delays_Examples_Delay.fmu > BuildingSystems_BuildingSystems.Fluid.Delays.Examples.Delay.pipe 2>&1)