Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Actuators.Dampers.Examples.MixingBox.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: translateModel(BuildingSystems.Fluid.Actuators.Dampers.Examples.MixingBox,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Dampers.Examples.MixingBox") translateModel(BuildingSystems.Fluid.Actuators.Dampers.Examples.MixingBox,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Dampers.Examples.MixingBox") [: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.728/0.728, allocations: 141.8 MB / 149.1 MB, free: 4.395 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.001051/0.001051, allocations: 183 kB / 181.9 MB, free: 64 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.413/1.413, allocations: 221.3 MB / 436 MB, free: 9.176 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.0009273/0.0009274, allocations: 95.38 kB / 0.507 GB, free: 24.43 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001783/0.001783, allocations: 268.9 kB / 0.5884 GB, free: 12.21 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 7.524e-06/7.554e-06, allocations: 3.938 kB / 0.6759 GB, free: 2.562 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3567/0.3567, allocations: 82.76 MB / 0.7567 GB, free: 112.8 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.047/3.403, allocations: 1.875 GB / 2.632 GB, free: 201.5 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002365/3.404, allocations: 96.58 kB / 2.632 GB, free: 201.4 MB / 0.6982 GB Notification: Performance of FrontEnd: time 1.652/5.056, allocations: 0.6111 GB / 3.243 GB, free: 118.5 MB / 0.6982 GB Notification: Performance of Transformations before backend: time 0.0001259/5.056, allocations: 30.48 kB / 3.243 GB, free: 118.5 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: 119 * Number of variables: 119 Notification: Performance of Generate backend data structure: time 0.00348/5.06, allocations: 1.309 MB / 3.244 GB, free: 117.2 MB / 0.6982 GB Notification: Performance of prepare preOptimizeDAE: time 3.809e-05/5.06, allocations: 17.22 kB / 3.244 GB, free: 117.1 MB / 0.6982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003379/5.063, allocations: 382.3 kB / 3.245 GB, free: 116.8 MB / 0.6982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002609/5.066, allocations: 1.058 MB / 3.246 GB, free: 115.7 MB / 0.6982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.112e-05/5.066, allocations: 16 kB / 3.246 GB, free: 115.7 MB / 0.6982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001974/5.066, allocations: 39.98 kB / 3.246 GB, free: 115.6 MB / 0.6982 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009519/5.067, allocations: 0.5368 MB / 3.246 GB, free: 115.1 MB / 0.6982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000839/5.068, allocations: 0.5042 MB / 3.247 GB, free: 114.6 MB / 0.6982 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.589e-05/5.068, allocations: 0 / 3.247 GB, free: 114.6 MB / 0.6982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.045e-05/5.068, allocations: 3.906 kB / 3.247 GB, free: 114.6 MB / 0.6982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.622e-05/5.068, allocations: 17 kB / 3.247 GB, free: 114.6 MB / 0.6982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004553/5.072, allocations: 2.645 MB / 3.25 GB, free: 111.8 MB / 0.6982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006199/5.073, allocations: 0.5048 MB / 3.25 GB, free: 111.3 MB / 0.6982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003604/5.074, allocations: 310.1 kB / 3.25 GB, free: 111 MB / 0.6982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000367/5.074, allocations: 294.1 kB / 3.251 GB, free: 110.7 MB / 0.6982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.933e-05/5.074, allocations: 42.56 kB / 3.251 GB, free: 110.6 MB / 0.6982 GB Notification: Performance of pre-optimization done (n=44): time 2.345e-06/5.074, allocations: 0 / 3.251 GB, free: 110.6 MB / 0.6982 GB Notification: Performance of matching and sorting (n=44): time 0.001551/5.075, allocations: 0.6883 MB / 3.251 GB, free: 109.9 MB / 0.6982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.054e-05/5.076, allocations: 55.41 kB / 3.251 GB, free: 109.9 MB / 0.6982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001404/5.077, allocations: 0.9608 MB / 3.252 GB, free: 108.9 MB / 0.6982 GB Notification: Performance of collectPreVariables (initialization): time 9.813e-05/5.077, allocations: 33.42 kB / 3.252 GB, free: 108.8 MB / 0.6982 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001447/5.077, allocations: 279.3 kB / 3.253 GB, free: 108.6 MB / 0.6982 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001168/5.077, allocations: 141.9 kB / 3.253 GB, free: 108.4 MB / 0.6982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.406e-05/5.077, allocations: 0 / 3.253 GB, free: 108.4 MB / 0.6982 GB Notification: Performance of setup shared object (initialization): time 6.244e-05/5.077, allocations: 318 kB / 3.253 GB, free: 108.1 MB / 0.6982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003026/5.078, allocations: 236.6 kB / 3.253 GB, free: 107.9 MB / 0.6982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004232/5.078, allocations: 453.9 kB / 3.254 GB, free: 107.3 MB / 0.6982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004018/5.079, allocations: 287.6 kB / 3.254 GB, free: 107.1 MB / 0.6982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.574e-06/5.079, allocations: 3.906 kB / 3.254 GB, free: 107.1 MB / 0.6982 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001093/5.08, allocations: 0.664 MB / 3.255 GB, free: 106.4 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 3.197e-05/5.08, allocations: 94.88 kB / 3.255 GB, free: 106.3 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.714e-06/5.08, allocations: 7.984 kB / 3.255 GB, free: 106.3 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.551e-05/5.08, allocations: 0 / 3.255 GB, free: 106.3 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007867/5.081, allocations: 139.8 kB / 3.255 GB, free: 106.2 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.154e-06/5.081, allocations: 0 / 3.255 GB, free: 106.2 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001491/5.082, allocations: 127.6 kB / 3.255 GB, free: 106 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.832e-05/5.082, allocations: 35.95 kB / 3.255 GB, free: 106 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 8.866e-06/5.082, allocations: 6.969 kB / 3.255 GB, free: 106 MB / 0.6982 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007851/5.083, allocations: 0.5344 MB / 3.256 GB, free: 105.5 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.184e-06/5.083, allocations: 4 kB / 3.256 GB, free: 105.4 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.529e-06/5.083, allocations: 0 / 3.256 GB, free: 105.4 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007089/5.084, allocations: 135.8 kB / 3.256 GB, free: 105.3 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.701e-06/5.084, allocations: 8 kB / 3.256 GB, free: 105.3 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001509/5.085, allocations: 123.6 kB / 3.256 GB, free: 105.2 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.729e-05/5.085, allocations: 27.97 kB / 3.256 GB, free: 105.2 MB / 0.6982 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 46 * 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.0002061/5.086, allocations: 112.8 kB / 3.256 GB, free: 105 MB / 0.6982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002769/5.086, allocations: 90.88 kB / 3.256 GB, free: 105 MB / 0.6982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001413/5.087, allocations: 0.7542 MB / 3.257 GB, free: 104.2 MB / 0.6982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.332e-06/5.087, allocations: 4 kB / 3.257 GB, free: 104.2 MB / 0.6982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/5.087, allocations: 0 / 3.257 GB, free: 104.2 MB / 0.6982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.773e-06/5.087, allocations: 11.98 kB / 3.257 GB, free: 104.2 MB / 0.6982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002619/5.09, allocations: 1.836 MB / 3.259 GB, free: 102.3 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.468e-06/5.09, allocations: 8 kB / 3.259 GB, free: 102.3 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006429/5.091, allocations: 124.1 kB / 3.259 GB, free: 102.2 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.197e-06/5.091, allocations: 4 kB / 3.259 GB, free: 102.2 MB / 0.6982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.782e-05/5.091, allocations: 11.98 kB / 3.259 GB, free: 102.1 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.338e-06/5.091, allocations: 4 kB / 3.259 GB, free: 102.1 MB / 0.6982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/5.091, allocations: 7.906 kB / 3.259 GB, free: 102.1 MB / 0.6982 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001329/5.092, allocations: 1.226 MB / 3.26 GB, free: 100.8 MB / 0.6982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004981/5.093, allocations: 303.6 kB / 3.26 GB, free: 100.5 MB / 0.6982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002282/5.093, allocations: 8 kB / 3.26 GB, free: 100.5 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001199/5.094, allocations: 83.91 kB / 3.26 GB, free: 100.4 MB / 0.6982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001057/5.094, allocations: 39.84 kB / 3.26 GB, free: 100.4 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.066e-05/5.094, allocations: 20 kB / 3.26 GB, free: 100.3 MB / 0.6982 GB Notification: Performance of sort global known variables: time 0.0009148/5.095, allocations: 0.7507 MB / 3.261 GB, free: 99.58 MB / 0.6982 GB Notification: Performance of remove unused functions: time 0.001523/5.097, allocations: 0.507 MB / 3.262 GB, free: 99.07 MB / 0.6982 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (mixBox.filter.s[1],mixBox.filter.s[2]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 53 * 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.002053/5.099, allocations: 1.822 MB / 3.263 GB, free: 97.39 MB / 0.6982 GB Notification: Performance of simCode: created initialization part: time 0.001227/5.1, allocations: 0.8492 MB / 3.264 GB, free: 96.54 MB / 0.6982 GB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/5.1, allocations: 0 / 3.264 GB, free: 96.54 MB / 0.6982 GB Notification: Performance of simCode: created simulation system equations: time 0.0003647/5.1, allocations: 303 kB / 3.264 GB, free: 96.25 MB / 0.6982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002133/5.102, allocations: 377.4 kB / 3.265 GB, free: 95.88 MB / 0.6982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002796/5.105, allocations: 1.314 MB / 3.266 GB, free: 94.53 MB / 0.6982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008687/5.106, allocations: 1.168 MB / 3.267 GB, free: 93.34 MB / 0.6982 GB Notification: Performance of SimCode: time 6.92e-07/5.106, allocations: 0 / 3.267 GB, free: 93.34 MB / 0.6982 GB Notification: Performance of Templates: time 0.04376/5.15, allocations: 32.69 MB / 3.299 GB, free: 60.94 MB / 0.6982 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Actuators.Dampers.Examples.MixingBox.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Actuators.Dampers.Examples.MixingBox.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Actuators.Dampers.Examples.MixingBox.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Actuators.Dampers.Examples.MixingBox.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Actuators.Dampers.Examples.MixingBox.sim & ./BuildingSystems_BuildingSystems.Fluid.Actuators.Dampers.Examples.MixingBox -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Actuators.Dampers.Examples.MixingBox.pipe 2>&1)