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) 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/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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=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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000935/0.0009349, allocations: 97.56 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.007519/0.007519, allocations: 169 kB / 16.26 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.559/1.559, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.809/2.809, allocations: 462.7 MB / 0.7364 GB, free: 292 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0004007/0.0004008, allocations: 9.906 kB / 0.9028 GB, free: 36.68 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3543/0.3547, allocations: 159.6 MB / 1.059 GB, free: 5.52 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.004417/0.3592, allocations: 3.309 MB / 1.062 GB, free: 2.191 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.003153/0.3624, allocations: 1.293 MB / 1.063 GB, free: 0.8906 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009338/0.3633, allocations: 23.88 kB / 1.063 GB, free: 0.8672 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0005303/0.3639, allocations: 95.09 kB / 1.063 GB, free: 0.7734 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.001049/0.365, allocations: 147 kB / 1.063 GB, free: 0.6289 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.001507/0.3665, allocations: 0.5275 MB / 1.064 GB, free: 116 kB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.001463/0.368, allocations: 0.8978 MB / 1.065 GB, free: 15.21 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006927/0.3687, allocations: 329.6 kB / 1.065 GB, free: 14.88 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005567/0.3692, allocations: 278.3 kB / 1.065 GB, free: 14.6 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004908/0.3697, allocations: 274.1 kB / 1.066 GB, free: 14.33 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0001611/0.3699, allocations: 20 kB / 1.066 GB, free: 14.31 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001223/0.37, allocations: 27.94 kB / 1.066 GB, free: 14.29 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001393/0.3702, allocations: 115.3 kB / 1.066 GB, free: 14.17 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0003637/0.3705, allocations: 323.5 kB / 1.066 GB, free: 13.85 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0007882/0.3713, allocations: 0.7861 MB / 1.067 GB, free: 13.06 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.531e-06/0.3714, allocations: 0 / 1.067 GB, free: 13.06 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.826e-06/0.3714, allocations: 0 / 1.067 GB, free: 13.06 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.242e-05/0.3714, allocations: 0 / 1.067 GB, free: 13.06 MB / 0.8262 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.002343/0.3738, allocations: 1.06 MB / 1.068 GB, free: 11.95 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.512e-05/0.3738, allocations: 8.031 kB / 1.068 GB, free: 11.94 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000296/0.3741, allocations: 99.75 kB / 1.068 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00114/0.3753, allocations: 0.5909 MB / 1.069 GB, free: 11.2 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001469/0.3754, allocations: 112.9 kB / 1.069 GB, free: 11.08 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001124/0.3756, allocations: 56.31 kB / 1.069 GB, free: 11.03 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001226/0.3768, allocations: 0.612 MB / 1.069 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.571e-05/0.3768, allocations: 0 / 1.069 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.173e-05/0.3769, allocations: 27.98 kB / 1.069 GB, free: 10.35 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.513e-05/0.3769, allocations: 16 kB / 1.069 GB, free: 10.33 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001032/0.3779, allocations: 439.7 kB / 1.07 GB, free: 9.902 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003024/0.381, allocations: 2.141 MB / 1.072 GB, free: 7.676 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001186/0.3822, allocations: 0.5152 MB / 1.072 GB, free: 7.148 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004471/0.3826, allocations: 221.7 kB / 1.073 GB, free: 6.93 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 4.236e-05/0.3827, allocations: 8 kB / 1.073 GB, free: 6.922 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006636/0.3834, allocations: 290.2 kB / 1.073 GB, free: 6.625 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=45): time 2.235e-06/0.3834, allocations: 7.938 kB / 1.073 GB, free: 6.617 MB / 0.8262 GB Notification: Performance of matching and sorting (n=45): time 0.001458/0.3848, allocations: 0.6412 MB / 1.074 GB, free: 5.969 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.982e-05/0.3849, allocations: 88.84 kB / 1.074 GB, free: 5.863 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000694/0.3856, allocations: 0.61 MB / 1.074 GB, free: 5.246 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.931e-05/0.3857, allocations: 37.7 kB / 1.074 GB, free: 5.203 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002534/0.3859, allocations: 364.7 kB / 1.075 GB, free: 4.844 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001275/0.3861, allocations: 149.8 kB / 1.075 GB, free: 4.695 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.995e-05/0.3862, allocations: 53.69 kB / 1.075 GB, free: 4.637 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000117/0.3863, allocations: 331 kB / 1.075 GB, free: 4.309 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00043/0.3867, allocations: 181 kB / 1.075 GB, free: 4.133 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004844/0.3872, allocations: 296.2 kB / 1.076 GB, free: 3.809 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009129/0.3881, allocations: 489.9 kB / 1.076 GB, free: 3.289 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.601e-06/0.3881, allocations: 3.938 kB / 1.076 GB, free: 3.285 MB / 0.8262 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001175/0.3893, allocations: 0.6178 MB / 1.077 GB, free: 2.656 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001286/0.3895, allocations: 193.3 kB / 1.077 GB, free: 2.426 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/0.3895, allocations: 3.938 kB / 1.077 GB, free: 2.422 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.683e-05/0.3895, allocations: 8 kB / 1.077 GB, free: 2.414 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000453/0.39, allocations: 115.8 kB / 1.077 GB, free: 2.301 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.081e-05/0.39, allocations: 4 kB / 1.077 GB, free: 2.297 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003884/0.3904, allocations: 67.5 kB / 1.077 GB, free: 2.23 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.326e-05/0.3904, allocations: 16 kB / 1.077 GB, free: 2.215 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 8.977e-06/0.3904, allocations: 9.344 kB / 1.077 GB, free: 2.207 MB / 0.8262 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009295/0.3914, allocations: 0.5077 MB / 1.078 GB, free: 1.691 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.136e-06/0.3914, allocations: 4 kB / 1.078 GB, free: 1.688 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.492e-06/0.3914, allocations: 7.984 kB / 1.078 GB, free: 1.68 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004141/0.3918, allocations: 107.8 kB / 1.078 GB, free: 1.574 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.755e-06/0.3918, allocations: 11.98 kB / 1.078 GB, free: 1.562 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003401/0.3922, allocations: 59.61 kB / 1.078 GB, free: 1.504 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.202e-05/0.3922, allocations: 24 kB / 1.078 GB, free: 1.48 MB / 0.8262 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.000324/0.3925, allocations: 270.5 kB / 1.078 GB, free: 1.207 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.202e-05/0.3926, allocations: 79.08 kB / 1.078 GB, free: 1.129 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001604/0.3928, allocations: 75.22 kB / 1.078 GB, free: 1.051 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.295e-06/0.3928, allocations: 8 kB / 1.078 GB, free: 1.043 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.812e-06/0.3928, allocations: 0 / 1.078 GB, free: 1.043 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.504e-06/0.3928, allocations: 3.984 kB / 1.078 GB, free: 1.039 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000634/0.3935, allocations: 0.6141 MB / 1.079 GB, free: 384 kB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.3935, allocations: 7.938 kB / 1.079 GB, free: 376 kB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004399/0.3939, allocations: 87.88 kB / 1.079 GB, free: 288 kB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.604e-06/0.394, allocations: 4 kB / 1.079 GB, free: 284 kB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.149e-05/0.394, allocations: 12 kB / 1.079 GB, free: 272 kB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.959e-06/0.394, allocations: 4 kB / 1.079 GB, free: 268 kB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.394, allocations: 3.938 kB / 1.079 GB, free: 264 kB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001451/0.3955, allocations: 0.745 MB / 1.08 GB, free: 15.49 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001932/0.3957, allocations: 196 kB / 1.08 GB, free: 15.28 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.695e-05/0.3957, allocations: 8 kB / 1.08 GB, free: 15.27 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003959/0.3961, allocations: 51.95 kB / 1.08 GB, free: 15.22 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.964e-05/0.3962, allocations: 31.95 kB / 1.08 GB, free: 15.19 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.102e-05/0.3963, allocations: 11.98 kB / 1.08 GB, free: 15.18 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.000454/0.3967, allocations: 431.1 kB / 1.08 GB, free: 14.77 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3967, allocations: 0 / 1.08 GB, free: 14.77 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0005835/0.3973, allocations: 219.3 kB / 1.08 GB, free: 14.55 MB / 0.8419 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.0001426/0.3975, allocations: 119.1 kB / 1.081 GB, free: 14.43 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001538/0.399, allocations: 0.8204 MB / 1.081 GB, free: 13.58 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.399, allocations: 0 / 1.081 GB, free: 13.58 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0004573/0.3995, allocations: 219.8 kB / 1.082 GB, free: 13.36 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000869/0.4004, allocations: 192.2 kB / 1.082 GB, free: 13.18 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002246/0.4026, allocations: 1.458 MB / 1.083 GB, free: 11.68 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005073/0.4032, allocations: 0.9144 MB / 1.084 GB, free: 10.74 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0004138/0.4036, allocations: 97.23 kB / 1.084 GB, free: 10.65 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001342/0.4037, allocations: 43.44 kB / 1.084 GB, free: 10.61 MB / 0.8419 GB Notification: Performance of SimCode: time 2.4e-07/0.4037, allocations: 0 / 1.084 GB, free: 10.61 MB / 0.8419 GB Notification: Performance of Templates: time 0.01475/0.4185, allocations: 7.132 MB / 1.091 GB, free: 3.555 MB / 0.8419 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches