Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.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.LimPID,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|limPID.u_s|limPID.u_m|limPID.y|limPIDRev.y",fileNamePrefix="Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID") translateModel(Buildings.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|limPID.u_s|limPID.u_m|limPID.y|limPIDRev.y",fileNamePrefix="Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.295/2.295, allocations: 390.5 MB / 398 MB, free: 10.92 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: 179 kB / 491.2 MB, free: 1.555 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.538/1.538, allocations: 221.5 MB / 0.7868 GB, free: 13.3 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.0008973/0.0008973, allocations: 95.83 kB / 0.9269 GB, free: 13.8 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.468e-05/2.47e-05, allocations: 5.438 kB / 1.073 GB, free: 182.1 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3646/0.3647, allocations: 143 MB / 1.212 GB, free: 39.58 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9794/1.344, allocations: 157.3 MB / 1.366 GB, free: 17.52 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000269/1.344, allocations: 76.06 kB / 1.366 GB, free: 17.52 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.0423/1.387, allocations: 16.8 MB / 1.382 GB, free: 30.75 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.453e-06/1.387, allocations: 0 / 1.382 GB, free: 30.75 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 7.099e-05/1.387, allocations: 23.5 kB / 1.382 GB, free: 30.75 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: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.001445/1.388, allocations: 0.9399 MB / 1.383 GB, free: 30.05 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.286e-05/1.388, allocations: 7.688 kB / 1.383 GB, free: 30.05 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001693/1.389, allocations: 93.31 kB / 1.383 GB, free: 30 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008068/1.389, allocations: 0.5813 MB / 1.384 GB, free: 29.62 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.093e-05/1.39, allocations: 87.61 kB / 1.384 GB, free: 29.55 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.846e-05/1.39, allocations: 30.91 kB / 1.384 GB, free: 29.55 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005436/1.39, allocations: 334.4 kB / 1.384 GB, free: 29.54 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006933/1.391, allocations: 0.5188 MB / 1.385 GB, free: 29.32 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.451e-05/1.391, allocations: 3.938 kB / 1.385 GB, free: 29.31 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.525e-05/1.391, allocations: 0 / 1.385 GB, free: 29.31 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.086e-05/1.391, allocations: 11.53 kB / 1.385 GB, free: 29.31 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002459/1.393, allocations: 2.11 MB / 1.387 GB, free: 27.95 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006889/1.394, allocations: 433 kB / 1.387 GB, free: 27.89 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002099/1.394, allocations: 157.7 kB / 1.388 GB, free: 27.88 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 4.545e-05/1.394, allocations: 8.469 kB / 1.388 GB, free: 27.88 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003772/1.395, allocations: 234.4 kB / 1.388 GB, free: 27.79 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=45): time 2.205e-06/1.395, allocations: 1.094 kB / 1.388 GB, free: 27.79 MB / 0.8386 GB Notification: Performance of matching and sorting (n=45): time 0.0006276/1.395, allocations: 384.8 kB / 1.388 GB, free: 27.7 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001082/1.396, allocations: 191.5 kB / 1.388 GB, free: 27.48 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004876/1.396, allocations: 479.3 kB / 1.389 GB, free: 27.31 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 4.451e-05/1.396, allocations: 25.7 kB / 1.389 GB, free: 27.28 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002305/1.396, allocations: 361.6 kB / 1.389 GB, free: 27.1 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001065/1.396, allocations: 153.1 kB / 1.389 GB, free: 26.99 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.647e-05/1.396, allocations: 0 / 1.389 GB, free: 26.99 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001928/1.397, allocations: 393.3 kB / 1.39 GB, free: 26.64 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002054/1.397, allocations: 138.2 kB / 1.39 GB, free: 26.64 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002721/1.397, allocations: 266.2 kB / 1.39 GB, free: 26.49 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000238/1.397, allocations: 164.7 kB / 1.39 GB, free: 26.46 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/1.397, allocations: 0 / 1.39 GB, free: 26.46 MB / 0.8386 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0006443/1.398, allocations: 485.4 kB / 1.391 GB, free: 26.34 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003772/1.398, allocations: 0.987 MB / 1.392 GB, free: 25.3 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.363e-05/1.398, allocations: 3.875 kB / 1.392 GB, free: 25.3 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.213e-05/1.398, allocations: 3.812 kB / 1.392 GB, free: 25.3 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005064/1.399, allocations: 126.3 kB / 1.392 GB, free: 25.28 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.688e-06/1.399, allocations: 11.8 kB / 1.392 GB, free: 25.27 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004614/1.4, allocations: 62.09 kB / 1.392 GB, free: 25.24 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.668e-05/1.4, allocations: 27.33 kB / 1.392 GB, free: 25.23 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 7.574e-06/1.4, allocations: 7.875 kB / 1.392 GB, free: 25.23 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005166/1.4, allocations: 377.9 kB / 1.392 GB, free: 25.19 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.687e-06/1.4, allocations: 3.844 kB / 1.392 GB, free: 25.19 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.776e-06/1.4, allocations: 11.61 kB / 1.392 GB, free: 25.18 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004207/1.401, allocations: 119.3 kB / 1.392 GB, free: 25.16 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.568e-06/1.401, allocations: 3.781 kB / 1.392 GB, free: 25.16 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003813/1.401, allocations: 50.41 kB / 1.392 GB, free: 25.14 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.081e-05/1.401, allocations: 18.59 kB / 1.392 GB, free: 25.14 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,limPIDOri.I.local_reset,limPIDRev.I.trigger_internal,limPID.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 62 * 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.0001579/1.401, allocations: 124 kB / 1.393 GB, free: 25.02 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.992e-05/1.401, allocations: 73.39 kB / 1.393 GB, free: 24.98 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000165/1.401, allocations: 69.58 kB / 1.393 GB, free: 24.96 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/1.401, allocations: 7.672 kB / 1.393 GB, free: 24.95 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.274e-06/1.401, allocations: 0 / 1.393 GB, free: 24.95 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/1.401, allocations: 0 / 1.393 GB, free: 24.95 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000558/1.402, allocations: 0.5721 MB / 1.393 GB, free: 24.64 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/1.402, allocations: 0 / 1.393 GB, free: 24.64 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004486/1.402, allocations: 97.91 kB / 1.393 GB, free: 24.62 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.15e-06/1.402, allocations: 3.688 kB / 1.393 GB, free: 24.62 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.953e-05/1.403, allocations: 7.812 kB / 1.393 GB, free: 24.62 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.804e-06/1.403, allocations: 3.688 kB / 1.393 GB, free: 24.62 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.028e-06/1.403, allocations: 8.047 kB / 1.393 GB, free: 24.61 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007777/1.403, allocations: 0.6198 MB / 1.394 GB, free: 24.47 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002241/1.404, allocations: 207.3 kB / 1.394 GB, free: 24.3 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.03e-05/1.404, allocations: 3.984 kB / 1.394 GB, free: 24.3 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004725/1.404, allocations: 58.38 kB / 1.394 GB, free: 24.28 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.798e-05/1.404, allocations: 34.27 kB / 1.394 GB, free: 24.27 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.378e-05/1.404, allocations: 19.14 kB / 1.394 GB, free: 24.26 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0003674/1.405, allocations: 362.7 kB / 1.395 GB, free: 24.14 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.4e-07/1.405, allocations: 0 / 1.395 GB, free: 24.14 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0006746/1.405, allocations: 221.1 kB / 1.395 GB, free: 24.09 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (limPID.I.y,limPID.D.x,limPIDRev.I.y,limPIDRev.D.x,limPIDOri.I.y,limPIDOri.D.x) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 43 * 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.000237/1.406, allocations: 110.5 kB / 1.395 GB, free: 23.99 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0009727/1.407, allocations: 0.7013 MB / 1.396 GB, free: 23.82 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 5.34e-06/1.407, allocations: 2.969 kB / 1.396 GB, free: 23.82 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002549/1.407, allocations: 182.7 kB / 1.396 GB, free: 23.81 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008978/1.408, allocations: 163 kB / 1.396 GB, free: 23.77 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001721/1.409, allocations: 0.857 MB / 1.397 GB, free: 23.37 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005376/1.41, allocations: 0.9334 MB / 1.398 GB, free: 22.56 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0005727/1.411, allocations: 132.9 kB / 1.398 GB, free: 22.49 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001174/1.411, allocations: 34.47 kB / 1.398 GB, free: 22.48 MB / 0.8386 GB Notification: Performance of SimCode: time 1.563e-06/1.411, allocations: 3.938 kB / 1.398 GB, free: 22.48 MB / 0.8386 GB Notification: Performance of Templates: time 0.01241/1.423, allocations: 8.148 MB / 1.406 GB, free: 17.57 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.makefile (rm -f Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.pipe ; mkfifo Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.pipe >> ../files/Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.sim & ./Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_Continuous_Examples_LimPID.csv","../files/Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches