Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.Continuous.Validation.LimPIDReset.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.Validation.LimPIDReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|setPoi.y|mea.y|trigger.y|limPIDDef.y|limPIDDef.controlError|limPIDPar.y|limPIDPar.y_reset|limPIDInp.y|limPIDInp.y_reset_in",fileNamePrefix="Buildings_latest_Buildings.Controls.Continuous.Validation.LimPIDReset") translateModel(Buildings.Controls.Continuous.Validation.LimPIDReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|setPoi.y|mea.y|trigger.y|limPIDDef.y|limPIDDef.controlError|limPIDPar.y|limPIDPar.y_reset|limPIDInp.y|limPIDInp.y_reset_in",fileNamePrefix="Buildings_latest_Buildings.Controls.Continuous.Validation.LimPIDReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001485/0.001485, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001615/0.001615, allocations: 196 kB / 16.14 MB, free: 6.645 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.39/1.39, allocations: 222.9 MB / 239.8 MB, free: 4.594 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.736/2.736, allocations: 461.9 MB / 0.7342 GB, free: 15.05 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001317/0.001317, allocations: 73.73 kB / 0.8984 GB, free: 37.25 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2867/0.288, allocations: 157.4 MB / 1.052 GB, free: 8.941 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Validation.LimPIDReset): time 0.005089/0.2932, allocations: 4.332 MB / 1.056 GB, free: 4.586 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002599/0.2958, allocations: 1.542 MB / 1.058 GB, free: 3.035 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004263/0.2962, allocations: 39.81 kB / 1.058 GB, free: 2.996 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0003794/0.2966, allocations: 114.9 kB / 1.058 GB, free: 2.883 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0005794/0.2972, allocations: 190.7 kB / 1.058 GB, free: 2.695 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.001239/0.2985, allocations: 0.6174 MB / 1.059 GB, free: 2.09 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.001167/0.2997, allocations: 1.148 MB / 1.06 GB, free: 0.9375 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006818/0.3004, allocations: 484.2 kB / 1.06 GB, free: 452 kB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005333/0.3009, allocations: 405.8 kB / 1.061 GB, free: 44 kB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004409/0.3014, allocations: 421.5 kB / 1.061 GB, free: 15.63 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0001046/0.3015, allocations: 48 kB / 1.061 GB, free: 15.58 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 9.738e-05/0.3016, allocations: 48 kB / 1.061 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001652/0.3017, allocations: 191 kB / 1.061 GB, free: 15.35 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0003759/0.3021, allocations: 437 kB / 1.062 GB, free: 14.92 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0009426/0.3031, allocations: 1.059 MB / 1.063 GB, free: 13.86 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.3031, allocations: 0 / 1.063 GB, free: 13.86 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.102e-06/0.3031, allocations: 0 / 1.063 GB, free: 13.86 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.483e-05/0.3031, allocations: 0 / 1.063 GB, free: 13.86 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: 168 * Number of variables: 168 Notification: Performance of Generate backend data structure: time 0.002624/0.3057, allocations: 1.391 MB / 1.064 GB, free: 12.41 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.892e-05/0.3058, allocations: 12.02 kB / 1.064 GB, free: 12.4 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002108/0.306, allocations: 123.4 kB / 1.064 GB, free: 12.28 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001175/0.3072, allocations: 0.7352 MB / 1.065 GB, free: 11.5 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.974e-05/0.3073, allocations: 80.25 kB / 1.065 GB, free: 11.42 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001078/0.3074, allocations: 72.38 kB / 1.065 GB, free: 11.35 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00129/0.3087, allocations: 0.7368 MB / 1.066 GB, free: 10.57 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.531e-05/0.3087, allocations: 0 / 1.066 GB, free: 10.57 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.572e-05/0.3088, allocations: 32 kB / 1.066 GB, free: 10.54 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.706e-05/0.3088, allocations: 16 kB / 1.066 GB, free: 10.53 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001125/0.31, allocations: 0.5204 MB / 1.066 GB, free: 10.01 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003542/0.3135, allocations: 2.271 MB / 1.069 GB, free: 7.668 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001378/0.3149, allocations: 0.6129 MB / 1.069 GB, free: 7.051 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005164/0.3155, allocations: 280 kB / 1.07 GB, free: 6.773 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 4.918e-05/0.3155, allocations: 8.562 kB / 1.07 GB, free: 6.766 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007045/0.3162, allocations: 322.9 kB / 1.07 GB, free: 6.441 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=60): time 2.405e-06/0.3162, allocations: 0 / 1.07 GB, free: 6.441 MB / 0.8262 GB Notification: Performance of matching and sorting (n=60): time 0.001586/0.3178, allocations: 0.7516 MB / 1.071 GB, free: 5.684 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.963e-05/0.3179, allocations: 85.67 kB / 1.071 GB, free: 5.582 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000846/0.3188, allocations: 0.7672 MB / 1.071 GB, free: 4.805 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.63e-05/0.3188, allocations: 33.7 kB / 1.071 GB, free: 4.766 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003082/0.3191, allocations: 436.5 kB / 1.072 GB, free: 4.336 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.000158/0.3193, allocations: 209 kB / 1.072 GB, free: 4.129 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001708/0.3195, allocations: 110.3 kB / 1.072 GB, free: 4.016 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001113/0.3196, allocations: 326 kB / 1.073 GB, free: 3.691 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004525/0.32, allocations: 211.4 kB / 1.073 GB, free: 3.48 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004981/0.3206, allocations: 300.4 kB / 1.073 GB, free: 3.152 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000944/0.3215, allocations: 0.5075 MB / 1.073 GB, free: 2.617 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.457e-06/0.3215, allocations: 0 / 1.073 GB, free: 2.617 MB / 0.8262 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001215/0.3227, allocations: 0.6579 MB / 1.074 GB, free: 1.949 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.908e-05/0.3228, allocations: 4 kB / 1.074 GB, free: 1.945 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.008e-05/0.3228, allocations: 7.984 kB / 1.074 GB, free: 1.938 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.716e-05/0.3228, allocations: 4 kB / 1.074 GB, free: 1.934 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006325/0.3234, allocations: 152 kB / 1.074 GB, free: 1.785 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.365e-05/0.3235, allocations: 11.88 kB / 1.074 GB, free: 1.773 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004321/0.3239, allocations: 75.34 kB / 1.074 GB, free: 1.699 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.189e-05/0.324, allocations: 23.98 kB / 1.074 GB, free: 1.676 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006161/0.3246, allocations: 349.4 kB / 1.075 GB, free: 1.328 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004761/0.3251, allocations: 296.5 kB / 1.075 GB, free: 1.008 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008422/0.3259, allocations: 495.7 kB / 1.075 GB, free: 0.4961 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.144e-06/0.3259, allocations: 0 / 1.075 GB, free: 0.4961 MB / 0.8262 GB Notification: Performance of matching and sorting (n=76) (initialization_lambda0): time 0.001113/0.327, allocations: 0.6307 MB / 1.076 GB, free: 15.86 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.152e-05/0.3271, allocations: 12 kB / 1.076 GB, free: 15.84 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.376e-06/0.3271, allocations: 3.938 kB / 1.076 GB, free: 15.84 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.871e-06/0.3271, allocations: 8 kB / 1.076 GB, free: 15.83 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005954/0.3277, allocations: 135.8 kB / 1.076 GB, free: 15.7 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.117e-06/0.3277, allocations: 11.98 kB / 1.076 GB, free: 15.69 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003932/0.3281, allocations: 63.44 kB / 1.076 GB, free: 15.62 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.561e-05/0.3282, allocations: 20 kB / 1.076 GB, free: 15.61 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,trigger.pulseStart,$PRE.trigger.pulseStart,trigger.y,$whenCondition2,limPIDOri.I.local_reset,limPIDDef.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (76): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 0 * 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.0001812/0.3283, allocations: 217.1 kB / 1.077 GB, free: 15.39 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001095/0.3285, allocations: 90.88 kB / 1.077 GB, free: 15.3 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002237/0.3287, allocations: 101.2 kB / 1.077 GB, free: 15.19 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.73e-06/0.3287, allocations: 8 kB / 1.077 GB, free: 15.18 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.227e-06/0.3287, allocations: 3.938 kB / 1.077 GB, free: 15.18 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/0.3287, allocations: 3.984 kB / 1.077 GB, free: 15.18 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002069/0.3308, allocations: 1.434 MB / 1.078 GB, free: 13.68 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.3308, allocations: 0 / 1.078 GB, free: 13.68 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000565/0.3314, allocations: 107.8 kB / 1.078 GB, free: 13.58 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.21e-06/0.3314, allocations: 4 kB / 1.078 GB, free: 13.57 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.063e-05/0.3315, allocations: 19.98 kB / 1.078 GB, free: 13.55 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.995e-06/0.3315, allocations: 0 / 1.078 GB, free: 13.55 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.3315, allocations: 0 / 1.078 GB, free: 13.55 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001646/0.3331, allocations: 0.9625 MB / 1.079 GB, free: 12.58 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002326/0.3334, allocations: 219.8 kB / 1.079 GB, free: 12.34 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.931e-05/0.3335, allocations: 12 kB / 1.079 GB, free: 12.33 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004218/0.3339, allocations: 31.97 kB / 1.079 GB, free: 12.3 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.917e-05/0.334, allocations: 36.5 kB / 1.08 GB, free: 12.26 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.851e-05/0.334, allocations: 16 kB / 1.08 GB, free: 12.25 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0006073/0.3346, allocations: 0.5224 MB / 1.08 GB, free: 11.73 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2e-07/0.3347, allocations: 0 / 1.08 GB, free: 11.73 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.000696/0.3354, allocations: 279 kB / 1.08 GB, free: 11.46 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (limPIDPar.I.y,limPIDPar.D.x,limPIDDef.I.y,limPIDDef.D.x,limPIDInp.I.y,limPIDInp.D.x,limPIDOri.I.y,limPIDOri.D.x) * Number of discrete variables: 4 (trigger.y,$whenCondition2,$whenCondition1,trigger.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (60): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001408/0.3355, allocations: 119.1 kB / 1.08 GB, free: 11.33 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001594/0.3371, allocations: 0.7876 MB / 1.081 GB, free: 10.54 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.3371, allocations: 1 kB / 1.081 GB, free: 10.54 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0005235/0.3376, allocations: 279 kB / 1.081 GB, free: 10.27 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0013/0.339, allocations: 252.6 kB / 1.082 GB, free: 10.03 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002981/0.342, allocations: 1.889 MB / 1.084 GB, free: 8.109 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004931/0.3425, allocations: 0.994 MB / 1.084 GB, free: 7.09 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0005952/0.3431, allocations: 114.7 kB / 1.085 GB, free: 6.973 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001957/0.3433, allocations: 63.42 kB / 1.085 GB, free: 6.91 MB / 0.8419 GB Notification: Performance of SimCode: time 1.253e-06/0.3433, allocations: 0 / 1.085 GB, free: 6.91 MB / 0.8419 GB Notification: Performance of Templates: time 0.0173/0.3606, allocations: 8.769 MB / 1.093 GB, free: 14.24 MB / 0.8575 GB make -j1 -f Buildings_latest_Buildings.Controls.Continuous.Validation.LimPIDReset.makefile (rm -f Buildings_latest_Buildings.Controls.Continuous.Validation.LimPIDReset.pipe ; mkfifo Buildings_latest_Buildings.Controls.Continuous.Validation.LimPIDReset.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Continuous.Validation.LimPIDReset.pipe >> ../files/Buildings_latest_Buildings.Controls.Continuous.Validation.LimPIDReset.sim & ./Buildings_latest_Buildings.Controls.Continuous.Validation.LimPIDReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.Continuous.Validation.LimPIDReset.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.Continuous.Validation.LimPIDReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_Continuous_Validation_LimPIDReset.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.Continuous.Validation.LimPIDReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches