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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001438/0.001438, allocations: 107 kB / 18.19 MB, free: 3.879 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001928/0.001928, allocations: 189.9 kB / 21.34 MB, free: 0.7383 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.367/1.367, allocations: 225.6 MB / 249.9 MB, free: 13.41 MB / 206.1 MB [Timeout remaining time 88] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.861/2.861, allocations: 489.7 MB / 0.7761 GB, free: 33.69 MB / 0.6231 GB [Timeout remaining time 87] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="mat",numberOfIntervals=519,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=519,variableFilter="time|limPID.u_s|limPID.u_m|limPID.y|limPIDRev.y",fileNamePrefix="Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID") [Timeout 300] Notification: Performance of FrontEnd - loaded program: time 0.001848/0.001848, allocations: 65.56 kB / 1.127 GB, free: 36.86 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3223/0.3241, allocations: 172.1 MB / 1.295 GB, free: 11.77 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.005864/0.33, allocations: 3.734 MB / 1.298 GB, free: 8.016 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.002977/0.333, allocations: 1.325 MB / 1.3 GB, free: 6.684 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007061/0.3337, allocations: 27.88 kB / 1.3 GB, free: 6.656 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0005081/0.3342, allocations: 130.6 kB / 1.3 GB, free: 6.527 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0008603/0.3351, allocations: 182.5 kB / 1.3 GB, free: 6.348 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001545/0.3366, allocations: 0.599 MB / 1.301 GB, free: 5.758 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.00146/0.3381, allocations: 0.9603 MB / 1.302 GB, free: 4.797 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000552/0.3386, allocations: 257.6 kB / 1.302 GB, free: 4.531 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005878/0.3392, allocations: 370.4 kB / 1.302 GB, free: 4.168 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003859/0.3396, allocations: 358 kB / 1.303 GB, free: 3.816 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001197/0.3397, allocations: 76 kB / 1.303 GB, free: 3.742 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001103/0.3398, allocations: 80 kB / 1.303 GB, free: 3.664 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001694/0.34, allocations: 183.2 kB / 1.303 GB, free: 3.484 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003332/0.3403, allocations: 377.7 kB / 1.303 GB, free: 3.113 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0009915/0.3413, allocations: 0.8944 MB / 1.304 GB, free: 2.215 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.3413, allocations: 0 / 1.304 GB, free: 2.215 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.563e-06/0.3413, allocations: 0 / 1.304 GB, free: 2.215 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 9.367e-06/0.3413, allocations: 0 / 1.304 GB, free: 2.215 MB / 0.9981 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.002024/0.3433, allocations: 1.214 MB / 1.305 GB, free: 0.9414 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.664e-05/0.3434, allocations: 8.031 kB / 1.305 GB, free: 0.9336 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001571/0.3435, allocations: 96.33 kB / 1.305 GB, free: 0.8398 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001003/0.3445, allocations: 0.6266 MB / 1.306 GB, free: 176 kB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001182/0.3447, allocations: 96.97 kB / 1.306 GB, free: 68 kB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.259e-05/0.3447, allocations: 56.38 kB / 1.306 GB, free: 12 kB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001117/0.3459, allocations: 0.6004 MB / 1.307 GB, free: 15.36 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.323e-05/0.3459, allocations: 4 kB / 1.307 GB, free: 15.36 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.381e-05/0.3459, allocations: 20 kB / 1.307 GB, free: 15.34 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.307e-05/0.3459, allocations: 15.94 kB / 1.307 GB, free: 15.32 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009438/0.3469, allocations: 419.7 kB / 1.307 GB, free: 14.92 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00284/0.3497, allocations: 2.11 MB / 1.309 GB, free: 12.72 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001175/0.3509, allocations: 487.9 kB / 1.31 GB, free: 12.23 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004498/0.3514, allocations: 204.8 kB / 1.31 GB, free: 12.03 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 3.683e-05/0.3514, allocations: 7.953 kB / 1.31 GB, free: 12.02 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006542/0.352, allocations: 282.2 kB / 1.31 GB, free: 11.73 MB / 1.014 GB Notification: Performance of pre-optimization done (n=45): time 2.544e-06/0.352, allocations: 4 kB / 1.31 GB, free: 11.73 MB / 1.014 GB Notification: Performance of matching and sorting (n=45): time 0.001446/0.3535, allocations: 0.6077 MB / 1.311 GB, free: 11.12 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.68e-05/0.3536, allocations: 96.86 kB / 1.311 GB, free: 11 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007201/0.3543, allocations: 0.6138 MB / 1.311 GB, free: 10.38 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 5.158e-05/0.3543, allocations: 33.7 kB / 1.311 GB, free: 10.34 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002844/0.3546, allocations: 357.3 kB / 1.312 GB, free: 9.984 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001417/0.3548, allocations: 166.6 kB / 1.312 GB, free: 9.82 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000152/0.3549, allocations: 94.2 kB / 1.312 GB, free: 9.723 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001433/0.3551, allocations: 326 kB / 1.312 GB, free: 9.398 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004344/0.3555, allocations: 187 kB / 1.313 GB, free: 9.211 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005053/0.356, allocations: 276.2 kB / 1.313 GB, free: 8.906 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000907/0.3569, allocations: 481.9 kB / 1.313 GB, free: 8.395 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.442e-06/0.3569, allocations: 3.938 kB / 1.313 GB, free: 8.391 MB / 1.014 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001176/0.3581, allocations: 0.5989 MB / 1.314 GB, free: 7.781 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 4.126e-05/0.3581, allocations: 37.62 kB / 1.314 GB, free: 7.738 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/0.3581, allocations: 7.938 kB / 1.314 GB, free: 7.73 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.023e-05/0.3582, allocations: 4 kB / 1.314 GB, free: 7.727 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004766/0.3586, allocations: 107.9 kB / 1.314 GB, free: 7.621 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.251e-05/0.3586, allocations: 7.938 kB / 1.314 GB, free: 7.613 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003686/0.359, allocations: 63.59 kB / 1.314 GB, free: 7.551 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.71e-05/0.3591, allocations: 20.09 kB / 1.314 GB, free: 7.531 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005346/0.3596, allocations: 309.2 kB / 1.314 GB, free: 7.223 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004665/0.3601, allocations: 272.2 kB / 1.315 GB, free: 6.926 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008108/0.3609, allocations: 454 kB / 1.315 GB, free: 6.445 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.663e-06/0.3609, allocations: 0 / 1.315 GB, free: 6.445 MB / 1.014 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.001055/0.3619, allocations: 0.5791 MB / 1.316 GB, free: 5.852 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.967e-05/0.362, allocations: 33.7 kB / 1.316 GB, free: 5.812 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.946e-06/0.362, allocations: 320 / 1.316 GB, free: 5.812 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.904e-06/0.362, allocations: 12 kB / 1.316 GB, free: 5.801 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004314/0.3624, allocations: 103.8 kB / 1.316 GB, free: 5.699 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.753e-06/0.3624, allocations: 4 kB / 1.316 GB, free: 5.695 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003423/0.3627, allocations: 59.66 kB / 1.316 GB, free: 5.637 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.227e-05/0.3628, allocations: 16 kB / 1.316 GB, free: 5.621 MB / 1.014 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 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1,limPIDOri.I.local_reset,limPIDRev.I.trigger_internal,limPID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002195/0.363, allocations: 226.8 kB / 1.316 GB, free: 5.395 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001016/0.3631, allocations: 75.48 kB / 1.316 GB, free: 5.32 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001702/0.3633, allocations: 83.22 kB / 1.316 GB, free: 5.238 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.847e-06/0.3633, allocations: 7.984 kB / 1.316 GB, free: 5.23 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/0.3633, allocations: 0 / 1.316 GB, free: 5.23 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.294e-06/0.3633, allocations: 3.984 kB / 1.316 GB, free: 5.227 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007137/0.364, allocations: 0.6219 MB / 1.317 GB, free: 4.555 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.364, allocations: 0 / 1.317 GB, free: 4.555 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004617/0.3645, allocations: 83.88 kB / 1.317 GB, free: 4.473 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.556e-06/0.3645, allocations: 0 / 1.317 GB, free: 4.473 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.199e-05/0.3645, allocations: 16 kB / 1.317 GB, free: 4.457 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.817e-06/0.3645, allocations: 4 kB / 1.317 GB, free: 4.453 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.3645, allocations: 0 / 1.317 GB, free: 4.453 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001469/0.366, allocations: 0.7357 MB / 1.318 GB, free: 3.695 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002229/0.3662, allocations: 192.5 kB / 1.318 GB, free: 3.488 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.16e-05/0.3663, allocations: 8 kB / 1.318 GB, free: 3.48 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003625/0.3666, allocations: 35.95 kB / 1.318 GB, free: 3.445 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.769e-05/0.3667, allocations: 31.95 kB / 1.318 GB, free: 3.414 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.565e-05/0.3668, allocations: 19.98 kB / 1.318 GB, free: 3.395 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0005695/0.3673, allocations: 427.1 kB / 1.318 GB, free: 2.98 MB / 1.014 GB Notification: Performance of sort global known variables: time 7e-08/0.3673, allocations: 0 / 1.318 GB, free: 2.98 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0006072/0.3679, allocations: 219.5 kB / 1.319 GB, free: 2.766 MB / 1.014 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) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001565/0.3681, allocations: 119.1 kB / 1.319 GB, free: 2.641 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.001519/0.3696, allocations: 0.7414 MB / 1.319 GB, free: 1.875 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.3696, allocations: 1.188 kB / 1.319 GB, free: 1.875 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0004387/0.37, allocations: 204.1 kB / 1.32 GB, free: 1.676 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00082/0.3709, allocations: 211.1 kB / 1.32 GB, free: 1.484 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002049/0.3729, allocations: 1.239 MB / 1.321 GB, free: 212 kB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000509/0.3734, allocations: 0.9141 MB / 1.322 GB, free: 15.26 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001649/0.3736, allocations: 55.42 kB / 1.322 GB, free: 15.21 MB / 1.029 GB Notification: Performance of SimCode: time 3.2e-07/0.3736, allocations: 0 / 1.322 GB, free: 15.21 MB / 1.029 GB Notification: Performance of Templates: time 0.01249/0.3861, allocations: 8.742 MB / 1.331 GB, free: 6.516 MB / 1.029 GB [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.makefile [Timeout 300] (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=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_Continuous_Examples_LimPID.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] [Timeout remaining time 300] Reference file matches