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.39/2.39, allocations: 393.5 MB / 408.4 MB, free: 11 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.001211/0.001211, allocations: 182.9 kB / 0.4902 GB, free: 2.246 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.729/1.729, allocations: 223.1 MB / 0.7992 GB, free: 15.65 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.0009282/0.0009283, allocations: 101.3 kB / 0.9396 GB, free: 2.848 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004714/0.0004713, allocations: 9.156 kB / 1.09 GB, free: 212.8 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.342/0.3425, allocations: 143 MB / 1.229 GB, free: 85.5 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2401/0.5827, allocations: 156.7 MB / 1.382 GB, free: 8.559 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004193/0.5832, allocations: 79.95 kB / 1.382 GB, free: 8.48 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.03367/0.6168, allocations: 12.39 MB / 1.394 GB, free: 12.05 MB / 0.9011 GB Notification: Performance of FrontEnd: time 3.827e-06/0.6169, allocations: 0 / 1.394 GB, free: 12.05 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 4.692e-05/0.617, allocations: 16 kB / 1.394 GB, free: 12.04 MB / 0.9011 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.002032/0.619, allocations: 0.9543 MB / 1.395 GB, free: 11.03 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 6.584e-05/0.6191, allocations: 20.55 kB / 1.395 GB, free: 11.01 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001853/0.6193, allocations: 79.06 kB / 1.395 GB, free: 10.93 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009378/0.6203, allocations: 0.5289 MB / 1.396 GB, free: 10.36 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.423e-05/0.6203, allocations: 45.31 kB / 1.396 GB, free: 10.32 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001095/0.6205, allocations: 55.98 kB / 1.396 GB, free: 10.26 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001371/0.6218, allocations: 0.6601 MB / 1.397 GB, free: 9.57 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.265e-05/0.6219, allocations: 7.859 kB / 1.397 GB, free: 9.562 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.745e-05/0.622, allocations: 28 kB / 1.397 GB, free: 9.535 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.025e-05/0.622, allocations: 19.94 kB / 1.397 GB, free: 9.516 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001195/0.6232, allocations: 0.5127 MB / 1.397 GB, free: 9.004 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003431/0.6266, allocations: 2.091 MB / 1.399 GB, free: 6.844 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001195/0.6279, allocations: 0.5314 MB / 1.4 GB, free: 6.305 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 5.519e-05/0.6279, allocations: 8.438 kB / 1.4 GB, free: 6.297 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007107/0.6286, allocations: 301.3 kB / 1.4 GB, free: 5.992 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=50): time 3.326e-06/0.6287, allocations: 0 / 1.4 GB, free: 5.992 MB / 0.9011 GB Notification: Performance of matching and sorting (n=50): time 0.001505/0.6302, allocations: 0.706 MB / 1.401 GB, free: 5.281 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.245e-05/0.6303, allocations: 166.7 kB / 1.401 GB, free: 5.082 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005343/0.6308, allocations: 401.2 kB / 1.401 GB, free: 4.684 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 5.285e-05/0.6309, allocations: 41.7 kB / 1.401 GB, free: 4.637 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.000243/0.6311, allocations: 312.4 kB / 1.402 GB, free: 4.328 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001465/0.6313, allocations: 169.5 kB / 1.402 GB, free: 4.16 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.589e-05/0.6313, allocations: 8 kB / 1.402 GB, free: 4.152 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0001738/0.6315, allocations: 366.8 kB / 1.402 GB, free: 3.785 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004459/0.632, allocations: 205 kB / 1.402 GB, free: 3.586 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000531/0.6325, allocations: 315.4 kB / 1.403 GB, free: 3.242 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004897/0.633, allocations: 251.8 kB / 1.403 GB, free: 2.992 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.01e-06/0.633, allocations: 7.953 kB / 1.403 GB, free: 2.984 MB / 0.9011 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001149/0.6342, allocations: 0.6249 MB / 1.404 GB, free: 2.348 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 4.61e-05/0.6342, allocations: 29.7 kB / 1.404 GB, free: 2.312 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.707e-06/0.6342, allocations: 4 kB / 1.404 GB, free: 2.309 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.405e-05/0.6343, allocations: 4 kB / 1.404 GB, free: 2.305 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005461/0.6348, allocations: 124 kB / 1.404 GB, free: 2.184 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.119e-05/0.6348, allocations: 4 kB / 1.404 GB, free: 2.18 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004364/0.6353, allocations: 83.48 kB / 1.404 GB, free: 2.098 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.189e-05/0.6353, allocations: 23.98 kB / 1.404 GB, free: 2.074 MB / 0.9011 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 () * Number of clocked 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.0003124/0.6357, allocations: 205.8 kB / 1.404 GB, free: 1.863 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.254e-05/0.6357, allocations: 63.23 kB / 1.404 GB, free: 1.801 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001457/0.6359, allocations: 65.58 kB / 1.404 GB, free: 1.734 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.572e-06/0.6359, allocations: 4 kB / 1.404 GB, free: 1.73 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.206e-05/0.6359, allocations: 4 kB / 1.404 GB, free: 1.727 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.201e-06/0.6359, allocations: 0 / 1.404 GB, free: 1.727 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001985/0.6379, allocations: 1.318 MB / 1.405 GB, free: 360 kB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.6379, allocations: 0 / 1.405 GB, free: 360 kB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005431/0.6385, allocations: 111.8 kB / 1.406 GB, free: 248 kB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.459e-06/0.6385, allocations: 0 / 1.406 GB, free: 248 kB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.736e-05/0.6386, allocations: 16 kB / 1.406 GB, free: 232 kB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.234e-06/0.6386, allocations: 0 / 1.406 GB, free: 232 kB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.6386, allocations: 0 / 1.406 GB, free: 232 kB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.8075/1.446, allocations: 0.8897 MB / 1.406 GB, free: 166.4 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003477/1.446, allocations: 183.6 kB / 1.407 GB, free: 166.3 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.407e-05/1.447, allocations: 12.11 kB / 1.407 GB, free: 166.3 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004622/1.447, allocations: 53.39 kB / 1.407 GB, free: 166.3 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001462/1.447, allocations: 41.55 kB / 1.407 GB, free: 166.3 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.582e-05/1.447, allocations: 17.3 kB / 1.407 GB, free: 166.3 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 0.0005518/1.448, allocations: 318.8 kB / 1.407 GB, free: 166.2 MB / 0.9011 GB Notification: Performance of sort global known variables: time 5.01e-07/1.448, allocations: 0 / 1.407 GB, free: 166.2 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.0006363/1.448, allocations: 150.8 kB / 1.407 GB, free: 166.2 MB / 0.9011 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) * Number of clocked states: 0 () * 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.0001819/1.449, allocations: 118.9 kB / 1.407 GB, free: 166.1 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.001334/1.45, allocations: 0.5503 MB / 1.408 GB, free: 166 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/1.45, allocations: 0 / 1.408 GB, free: 166 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.0005658/1.451, allocations: 255.7 kB / 1.408 GB, free: 166 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007682/1.451, allocations: 136.5 kB / 1.408 GB, free: 166 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004066/1.455, allocations: 1.835 MB / 1.41 GB, free: 165.2 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005509/1.456, allocations: 0.9025 MB / 1.411 GB, free: 164.5 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.0004142/1.456, allocations: 59.98 kB / 1.411 GB, free: 164.5 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001462/1.457, allocations: 40.39 kB / 1.411 GB, free: 164.5 MB / 0.9011 GB Notification: Performance of SimCode: time 1.644e-06/1.457, allocations: 0 / 1.411 GB, free: 164.5 MB / 0.9011 GB Notification: Performance of Templates: time 0.01854/1.475, allocations: 6.227 MB / 1.417 GB, free: 164.2 MB / 0.9011 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