Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.PIDHysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/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 BuildSysPro with version 3.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo) Running command: translateModel(BuildSysPro.IBPSA.Controls.Continuous.Examples.PIDHysteresis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.PIDHysteresis") translateModel(BuildSysPro.IBPSA.Controls.Continuous.Examples.PIDHysteresis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.PIDHysteresis") [: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/BuildSysPro 3.5.0/package.mo): time 0.6492/0.6492, allocations: 127.4 MB / 134.6 MB, free: 4.082 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001012/0.001012, allocations: 181.3 kB / 164.4 MB, free: 6.895 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.349/1.349, allocations: 205.1 MB / 399.1 MB, free: 6.094 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001006/0.001006, allocations: 79.36 kB / 476.3 MB, free: 8.852 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 7.043e-06/7.083e-06, allocations: 0 / 0.546 GB, free: 42.77 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1494/0.1494, allocations: 76.75 MB / 0.6209 GB, free: 13.95 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4151/0.5645, allocations: 109 MB / 0.7274 GB, free: 3.371 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002301/0.5648, allocations: 79.95 kB / 0.7274 GB, free: 3.293 MB / 490.7 MB Notification: Performance of FrontEnd: time 0.01934/0.5842, allocations: 6.912 MB / 0.7342 GB, free: 12.37 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 5.1e-05/0.5843, allocations: 8 kB / 0.7342 GB, free: 12.36 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001126/0.5854, allocations: 0.6072 MB / 0.7348 GB, free: 11.71 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.556e-05/0.5855, allocations: 11.97 kB / 0.7348 GB, free: 11.7 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001754/0.5856, allocations: 47.44 kB / 0.7348 GB, free: 11.65 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007184/0.5864, allocations: 391.3 kB / 0.7352 GB, free: 11.23 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.464e-05/0.5864, allocations: 8 kB / 0.7352 GB, free: 11.22 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.551e-05/0.5865, allocations: 20 kB / 0.7352 GB, free: 11.2 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004436/0.5869, allocations: 185.3 kB / 0.7354 GB, free: 11.02 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005344/0.5875, allocations: 304.8 kB / 0.7357 GB, free: 10.69 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.846e-05/0.5875, allocations: 0 / 0.7357 GB, free: 10.69 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.652e-05/0.5875, allocations: 4.219 kB / 0.7357 GB, free: 10.69 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.241e-05/0.5876, allocations: 4 kB / 0.7357 GB, free: 10.68 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001893/0.5894, allocations: 1.205 MB / 0.7369 GB, free: 9.414 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00037/0.5898, allocations: 144.8 kB / 0.737 GB, free: 9.27 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001742/0.59, allocations: 105.3 kB / 0.7371 GB, free: 9.164 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 3.368e-05/0.5901, allocations: 192 / 0.7371 GB, free: 9.164 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.212e-05/0.5901, allocations: 46.69 kB / 0.7372 GB, free: 9.109 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=22): time 1.342e-06/0.5901, allocations: 0 / 0.7372 GB, free: 9.109 MB / 0.4948 GB Notification: Performance of matching and sorting (n=22): time 0.0004274/0.5905, allocations: 195.5 kB / 0.7374 GB, free: 8.918 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.751e-05/0.5906, allocations: 170.1 kB / 0.7375 GB, free: 8.715 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003153/0.591, allocations: 266 kB / 0.7378 GB, free: 8.449 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 2.899e-05/0.591, allocations: 25.7 kB / 0.7378 GB, free: 8.418 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001235/0.5911, allocations: 180.7 kB / 0.738 GB, free: 8.238 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 5.909e-05/0.5912, allocations: 67 kB / 0.738 GB, free: 8.172 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.162e-05/0.5912, allocations: 0 / 0.738 GB, free: 8.172 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001372/0.5914, allocations: 354.7 kB / 0.7384 GB, free: 7.816 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001353/0.5915, allocations: 68 kB / 0.7385 GB, free: 7.75 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001729/0.5917, allocations: 135.7 kB / 0.7386 GB, free: 7.59 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001489/0.5918, allocations: 85.22 kB / 0.7387 GB, free: 7.508 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.5919, allocations: 3.938 kB / 0.7387 GB, free: 7.504 MB / 0.4948 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003943/0.5923, allocations: 229.1 kB / 0.7389 GB, free: 7.273 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002009/0.5925, allocations: 453.3 kB / 0.7393 GB, free: 6.797 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.394e-06/0.5925, allocations: 3.938 kB / 0.7393 GB, free: 6.793 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.73e-05/0.5925, allocations: 4 kB / 0.7393 GB, free: 6.789 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002673/0.5928, allocations: 59.97 kB / 0.7394 GB, free: 6.73 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.728e-06/0.5928, allocations: 3.938 kB / 0.7394 GB, free: 6.727 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002559/0.5931, allocations: 47.72 kB / 0.7394 GB, free: 6.68 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.481e-05/0.5931, allocations: 8 kB / 0.7394 GB, free: 6.672 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.006e-05/0.5931, allocations: 4 kB / 0.7394 GB, free: 6.668 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003035/0.5934, allocations: 163.8 kB / 0.7396 GB, free: 6.508 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.614e-06/0.5934, allocations: 0 / 0.7396 GB, free: 6.508 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.306e-06/0.5935, allocations: 7.984 kB / 0.7396 GB, free: 6.5 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002095/0.5937, allocations: 48.05 kB / 0.7397 GB, free: 6.453 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.296e-06/0.5937, allocations: 4 kB / 0.7397 GB, free: 6.449 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002041/0.5939, allocations: 31.77 kB / 0.7397 GB, free: 6.418 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.499e-05/0.5939, allocations: 16 kB / 0.7397 GB, free: 6.402 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 ($PRE.con.hys.y,con.hys.y,con.PID.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 29 * 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.0001111/0.5941, allocations: 120.3 kB / 0.7398 GB, free: 6.281 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.074e-05/0.5941, allocations: 35.53 kB / 0.7398 GB, free: 6.246 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.849e-05/0.5942, allocations: 35.16 kB / 0.7399 GB, free: 6.207 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.961e-06/0.5943, allocations: 4 kB / 0.7399 GB, free: 6.203 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.141e-06/0.5943, allocations: 0 / 0.7399 GB, free: 6.203 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.5943, allocations: 0 / 0.7399 GB, free: 6.203 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004459/0.5947, allocations: 361.8 kB / 0.7402 GB, free: 5.812 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.923e-06/0.5947, allocations: 0 / 0.7402 GB, free: 5.812 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002591/0.595, allocations: 55.92 kB / 0.7403 GB, free: 5.758 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.877e-06/0.595, allocations: 0 / 0.7403 GB, free: 5.758 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.352e-05/0.595, allocations: 3.984 kB / 0.7403 GB, free: 5.754 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.275e-06/0.5951, allocations: 0 / 0.7403 GB, free: 5.754 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.711e-06/0.5951, allocations: 7.906 kB / 0.7403 GB, free: 5.746 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005875/0.5957, allocations: 395.1 kB / 0.7407 GB, free: 5.344 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001621/0.5958, allocations: 140.6 kB / 0.7408 GB, free: 5.188 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.524e-05/0.5959, allocations: 4 kB / 0.7408 GB, free: 5.184 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000233/0.5961, allocations: 23.97 kB / 0.7408 GB, free: 5.16 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.308e-05/0.5962, allocations: 23.97 kB / 0.7409 GB, free: 5.137 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.512e-05/0.5962, allocations: 4 kB / 0.7409 GB, free: 5.133 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.0002204/0.5965, allocations: 208.6 kB / 0.7411 GB, free: 4.93 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0004832/0.5969, allocations: 123.4 kB / 0.7412 GB, free: 4.809 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (con.PID.I.y,cap.T) * Number of discrete variables: 1 (con.hys.y) * Number of discrete states: 1 (con.hys.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 22 * 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.0001857/0.5971, allocations: 115.1 kB / 0.7413 GB, free: 4.688 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.000516/0.5977, allocations: 286.2 kB / 0.7416 GB, free: 4.41 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 5.15e-06/0.5977, allocations: 8.125 kB / 0.7416 GB, free: 4.402 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0001586/0.5978, allocations: 91.92 kB / 0.7417 GB, free: 4.312 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005213/0.5984, allocations: 67.92 kB / 0.7417 GB, free: 4.25 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001374/0.5998, allocations: 0.5017 MB / 0.7422 GB, free: 3.727 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005711/0.6003, allocations: 0.8382 MB / 0.743 GB, free: 2.859 MB / 0.4948 GB Notification: Performance of SimCode: time 5.21e-07/0.6004, allocations: 0 / 0.743 GB, free: 2.859 MB / 0.4948 GB Notification: Performance of Templates: time 0.01059/0.611, allocations: 4.768 MB / 0.7477 GB, free: 14.12 MB / 0.5105 GB make -j1 -f BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.PIDHysteresis.makefile (rm -f BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.PIDHysteresis.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.PIDHysteresis.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.PIDHysteresis.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.PIDHysteresis.sim & ./BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.PIDHysteresis -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.PIDHysteresis.pipe 2>&1)