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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.206/2.206, allocations: 390.5 MB / 398 MB, free: 10.91 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.001179/0.001179, allocations: 171.8 kB / 491.2 MB, free: 1.59 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.526/1.526, allocations: 221.5 MB / 0.7868 GB, free: 13.26 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.0009377/0.0009374, allocations: 87.95 kB / 0.9269 GB, free: 13.76 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.053e-05/2.059e-05, allocations: 4 kB / 1.073 GB, free: 182.1 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2785/0.2785, allocations: 143 MB / 1.212 GB, free: 39.54 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.049/1.328, allocations: 156 MB / 1.365 GB, free: 17.4 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000385/1.329, allocations: 81.03 kB / 1.365 GB, free: 17.4 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.02993/1.358, allocations: 12.28 MB / 1.377 GB, free: 32.31 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.815e-06/1.359, allocations: 0 / 1.377 GB, free: 32.31 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 8.831e-05/1.359, allocations: 15.56 kB / 1.377 GB, free: 32.31 MB / 0.8386 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.002277/1.361, allocations: 0.8721 MB / 1.378 GB, free: 31.74 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.9e-05/1.361, allocations: 11.56 kB / 1.378 GB, free: 31.74 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003585/1.361, allocations: 81.53 kB / 1.378 GB, free: 31.7 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001208/1.363, allocations: 0.5239 MB / 1.378 GB, free: 31.42 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.223e-05/1.363, allocations: 19.34 kB / 1.378 GB, free: 31.42 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001547/1.363, allocations: 34.91 kB / 1.378 GB, free: 31.42 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001202/1.364, allocations: 398.8 kB / 1.379 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001272/1.365, allocations: 0.5195 MB / 1.379 GB, free: 31.29 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.103e-05/1.365, allocations: 0 / 1.379 GB, free: 31.29 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.36e-05/1.365, allocations: 3.781 kB / 1.379 GB, free: 31.29 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.811e-05/1.365, allocations: 11.59 kB / 1.379 GB, free: 31.29 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004283/1.37, allocations: 1.988 MB / 1.381 GB, free: 30.44 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008502/1.371, allocations: 414.8 kB / 1.381 GB, free: 30.39 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003881/1.371, allocations: 206.7 kB / 1.382 GB, free: 30.38 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 5.355e-05/1.371, allocations: 4.281 kB / 1.382 GB, free: 30.38 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005432/1.372, allocations: 237.2 kB / 1.382 GB, free: 30.29 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=50): time 4.389e-06/1.372, allocations: 0 / 1.382 GB, free: 30.29 MB / 0.8386 GB Notification: Performance of matching and sorting (n=50): time 0.0009037/1.373, allocations: 398.8 kB / 1.382 GB, free: 30.2 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.098e-05/1.373, allocations: 162.3 kB / 1.382 GB, free: 30.01 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005354/1.373, allocations: 355.5 kB / 1.383 GB, free: 29.86 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 6.397e-05/1.373, allocations: 29.55 kB / 1.383 GB, free: 29.83 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002602/1.374, allocations: 315 kB / 1.383 GB, free: 29.64 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001525/1.374, allocations: 166.2 kB / 1.383 GB, free: 29.52 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.294e-05/1.374, allocations: 4 kB / 1.383 GB, free: 29.52 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001732/1.374, allocations: 360 kB / 1.384 GB, free: 29.19 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003255/1.374, allocations: 142.6 kB / 1.384 GB, free: 29.19 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004043/1.375, allocations: 251.5 kB / 1.384 GB, free: 29.08 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003616/1.375, allocations: 167.7 kB / 1.384 GB, free: 29.05 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/1.375, allocations: 0 / 1.384 GB, free: 29.05 MB / 0.8386 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001005/1.376, allocations: 476.7 kB / 1.385 GB, free: 28.95 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 5.518e-05/1.376, allocations: 29.58 kB / 1.385 GB, free: 28.91 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.311e-05/1.376, allocations: 3.969 kB / 1.385 GB, free: 28.91 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.859e-05/1.376, allocations: 7.781 kB / 1.385 GB, free: 28.91 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000698/1.377, allocations: 126.6 kB / 1.385 GB, free: 28.88 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.305e-05/1.377, allocations: 3.781 kB / 1.385 GB, free: 28.88 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005935/1.378, allocations: 70.27 kB / 1.385 GB, free: 28.85 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.823e-05/1.378, allocations: 15.03 kB / 1.385 GB, free: 28.85 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.00018/1.378, allocations: 117.9 kB / 1.385 GB, free: 28.74 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001051/1.378, allocations: 62.36 kB / 1.385 GB, free: 28.7 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001669/1.378, allocations: 60.31 kB / 1.385 GB, free: 28.68 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.063e-06/1.378, allocations: 3.875 kB / 1.385 GB, free: 28.68 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.12e-05/1.378, allocations: 0 / 1.385 GB, free: 28.68 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.697e-06/1.378, allocations: 0 / 1.385 GB, free: 28.68 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001919/1.38, allocations: 1.109 MB / 1.386 GB, free: 28.21 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.769e-06/1.38, allocations: 3.938 kB / 1.386 GB, free: 28.21 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006973/1.381, allocations: 118.8 kB / 1.386 GB, free: 28.18 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.526e-05/1.381, allocations: 3.844 kB / 1.386 GB, free: 28.18 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.737e-05/1.381, allocations: 3.125 kB / 1.386 GB, free: 28.18 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.749e-06/1.381, allocations: 3.844 kB / 1.386 GB, free: 28.18 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.701e-06/1.381, allocations: 3.984 kB / 1.386 GB, free: 28.18 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001263/1.382, allocations: 0.7079 MB / 1.387 GB, free: 27.98 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002764/1.382, allocations: 179.4 kB / 1.387 GB, free: 27.83 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001155/1.383, allocations: 7.344 kB / 1.387 GB, free: 27.83 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005356/1.383, allocations: 42.73 kB / 1.387 GB, free: 27.82 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001271/1.383, allocations: 34.77 kB / 1.387 GB, free: 27.8 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.208e-05/1.383, allocations: 19.73 kB / 1.387 GB, free: 27.8 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0004631/1.384, allocations: 267.5 kB / 1.388 GB, free: 27.7 MB / 0.8386 GB Notification: Performance of sort global known variables: time 4.7e-07/1.384, allocations: 3.938 kB / 1.388 GB, free: 27.69 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0007931/1.385, allocations: 138.7 kB / 1.388 GB, free: 27.66 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.0001908/1.385, allocations: 106.3 kB / 1.388 GB, free: 27.57 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0009119/1.386, allocations: 435.2 kB / 1.388 GB, free: 27.49 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/1.386, allocations: 4.125 kB / 1.388 GB, free: 27.48 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0004094/1.386, allocations: 201.4 kB / 1.388 GB, free: 27.47 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001009/1.387, allocations: 126.2 kB / 1.388 GB, free: 27.43 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003686/1.391, allocations: 1.234 MB / 1.39 GB, free: 26.8 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000685/1.392, allocations: 0.9124 MB / 1.391 GB, free: 26 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0004716/1.392, allocations: 63.41 kB / 1.391 GB, free: 25.96 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001908/1.392, allocations: 42.28 kB / 1.391 GB, free: 25.95 MB / 0.8386 GB Notification: Performance of SimCode: time 8.81e-07/1.392, allocations: 0 / 1.391 GB, free: 25.95 MB / 0.8386 GB Notification: Performance of Templates: time 0.01605/1.408, allocations: 5.514 MB / 1.396 GB, free: 23.29 MB / 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