Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.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: translateModel(Buildings.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSet.y|plaWitRes.temSen.T|plaNoRes.temSen.T|conWitRes.conPID.trigger|conWitRes.conPID.controlError|conNoRes.conPID.controlError",fileNamePrefix="Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset") translateModel(Buildings.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSet.y|plaWitRes.temSen.T|plaNoRes.temSen.T|conWitRes.conPID.trigger|conWitRes.conPID.controlError|conNoRes.conPID.controlError",fileNamePrefix="Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset") [: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 1.724/1.724, allocations: 390.4 MB / 397.7 MB, free: 11.27 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.0009529/0.000953, allocations: 181.3 kB / 490.8 MB, free: 1.973 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.076/1.076, allocations: 221.4 MB / 0.7863 GB, free: 13.81 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.0008037/0.0008037, allocations: 92.61 kB / 0.9264 GB, free: 14.35 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.759e-06/4.789e-06, allocations: 0 / 1.072 GB, free: 164.8 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.168/0.168, allocations: 143 MB / 1.212 GB, free: 21.96 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4629/0.6309, allocations: 156.6 MB / 1.365 GB, free: 12.19 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001746/0.6311, allocations: 81.52 kB / 1.365 GB, free: 12.15 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.02662/0.6577, allocations: 12.03 MB / 1.376 GB, free: 2.301 MB / 0.823 GB Notification: Performance of Transformations before backend: time 3.183e-05/0.6578, allocations: 12 kB / 1.376 GB, free: 2.289 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.001196/0.659, allocations: 0.8907 MB / 1.377 GB, free: 1.391 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 2.835e-05/0.659, allocations: 8.031 kB / 1.377 GB, free: 1.383 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001318/0.6592, allocations: 83.06 kB / 1.377 GB, free: 1.301 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000653/0.6598, allocations: 0.5246 MB / 1.378 GB, free: 0.8438 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.446e-05/0.6599, allocations: 23.98 kB / 1.378 GB, free: 0.8203 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.022e-05/0.6599, allocations: 43.91 kB / 1.378 GB, free: 0.7773 MB / 0.823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000627/0.6606, allocations: 393 kB / 1.378 GB, free: 0.5586 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007465/0.6613, allocations: 0.5198 MB / 1.379 GB, free: 164 kB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.857e-05/0.6614, allocations: 0 / 1.379 GB, free: 164 kB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.284e-05/0.6614, allocations: 0 / 1.379 GB, free: 164 kB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.24e-05/0.6614, allocations: 20 kB / 1.379 GB, free: 144 kB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002453/0.6639, allocations: 1.994 MB / 1.381 GB, free: 14.61 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004369/0.6643, allocations: 310.8 kB / 1.381 GB, free: 14.42 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002644/0.6646, allocations: 202.1 kB / 1.381 GB, free: 14.3 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.611e-05/0.6646, allocations: 4.438 kB / 1.381 GB, free: 14.3 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002905/0.6649, allocations: 224.6 kB / 1.381 GB, free: 14.13 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=50): time 1.673e-06/0.665, allocations: 0 / 1.381 GB, free: 14.13 MB / 0.8386 GB Notification: Performance of matching and sorting (n=50): time 0.0005802/0.6655, allocations: 388.9 kB / 1.382 GB, free: 13.86 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.641e-05/0.6656, allocations: 173.8 kB / 1.382 GB, free: 13.66 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003244/0.6659, allocations: 351.2 kB / 1.382 GB, free: 13.38 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 3.546e-05/0.666, allocations: 25.7 kB / 1.382 GB, free: 13.35 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.000131/0.6661, allocations: 251.8 kB / 1.383 GB, free: 13.13 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 9.811e-05/0.6662, allocations: 166 kB / 1.383 GB, free: 12.99 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.001e-05/0.6662, allocations: 0 / 1.383 GB, free: 12.99 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001192/0.6664, allocations: 363.7 kB / 1.383 GB, free: 12.64 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002125/0.6666, allocations: 149.7 kB / 1.383 GB, free: 12.56 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002742/0.6669, allocations: 245.8 kB / 1.383 GB, free: 12.37 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002326/0.6671, allocations: 166.5 kB / 1.384 GB, free: 12.27 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.6671, allocations: 4 kB / 1.384 GB, free: 12.27 MB / 0.8386 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.0006275/0.6677, allocations: 461.7 kB / 1.384 GB, free: 11.94 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.131e-05/0.6678, allocations: 8 kB / 1.384 GB, free: 11.93 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-06/0.6678, allocations: 0 / 1.384 GB, free: 11.93 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.476e-05/0.6678, allocations: 4 kB / 1.384 GB, free: 11.93 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004888/0.6683, allocations: 131.7 kB / 1.384 GB, free: 11.8 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.381e-05/0.6683, allocations: 7.938 kB / 1.384 GB, free: 11.8 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003721/0.6687, allocations: 75.55 kB / 1.384 GB, free: 11.72 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.36e-05/0.6687, allocations: 19.31 kB / 1.384 GB, free: 11.71 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,$whenCondition1,conWitRes.conPID.trigger,conNoRes.trigger.y,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,conNoRes.conPID.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (64): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 1 * 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.0001015/0.6688, allocations: 120.3 kB / 1.384 GB, free: 11.59 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.31e-05/0.6689, allocations: 55.34 kB / 1.384 GB, free: 11.54 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001014/0.669, allocations: 60.5 kB / 1.385 GB, free: 11.5 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.402e-06/0.669, allocations: 7.906 kB / 1.385 GB, free: 11.5 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.263e-05/0.6691, allocations: 0 / 1.385 GB, free: 11.5 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/0.6691, allocations: 0 / 1.385 GB, free: 11.5 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00122/0.6703, allocations: 1.111 MB / 1.386 GB, free: 10.67 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.6703, allocations: 0 / 1.386 GB, free: 10.67 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005223/0.6708, allocations: 115.2 kB / 1.386 GB, free: 10.56 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.396e-06/0.6708, allocations: 0 / 1.386 GB, free: 10.56 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.057e-05/0.6709, allocations: 7.906 kB / 1.386 GB, free: 10.55 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.864e-06/0.6709, allocations: 0 / 1.386 GB, free: 10.55 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.6709, allocations: 0 / 1.386 GB, free: 10.55 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008268/0.6717, allocations: 0.7175 MB / 1.386 GB, free: 10.05 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001752/0.6719, allocations: 182.3 kB / 1.387 GB, free: 9.883 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.369e-05/0.672, allocations: 7.984 kB / 1.387 GB, free: 9.875 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003722/0.6724, allocations: 51.95 kB / 1.387 GB, free: 9.824 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.771e-05/0.6724, allocations: 32.08 kB / 1.387 GB, free: 9.801 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.85e-05/0.6725, allocations: 11.31 kB / 1.387 GB, free: 9.793 MB / 0.8386 GB Notification: Performance of sort global known variables: time 0.0002259/0.6727, allocations: 267.7 kB / 1.387 GB, free: 9.594 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003827/0.6731, allocations: 139.4 kB / 1.387 GB, free: 9.457 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (plaWitRes.cap.T,plaWitRes.cap1.T,conWitRes.conPID.I.y,plaNoRes.cap.T,plaNoRes.cap1.T,conNoRes.conPID.I.y) * Number of discrete variables: 6 (conWitRes.conPID.trigger,$whenCondition2,$whenCondition1,conNoRes.trigger.y,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001184/0.6732, allocations: 111.2 kB / 1.387 GB, free: 9.34 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0005374/0.6738, allocations: 411.9 kB / 1.388 GB, free: 9.062 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.6738, allocations: 3.75 kB / 1.388 GB, free: 9.062 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002574/0.674, allocations: 203 kB / 1.388 GB, free: 8.934 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005498/0.6746, allocations: 112.8 kB / 1.388 GB, free: 8.848 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002359/0.677, allocations: 1.245 MB / 1.389 GB, free: 7.672 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005583/0.6775, allocations: 0.9553 MB / 1.39 GB, free: 6.695 MB / 0.8386 GB Notification: Performance of SimCode: time 2.51e-07/0.6775, allocations: 4 kB / 1.39 GB, free: 6.691 MB / 0.8386 GB Notification: Performance of Templates: time 0.01038/0.6879, allocations: 6.573 MB / 1.396 GB, free: 212 kB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.makefile (rm -f Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.sim & ./Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_Continuous_Examples_LimPIDWithReset.csv","../files/Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches