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.005847/0.005847, allocations: 102.7 kB / 15.73 MB, free: 6.031 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.001195/0.001195, allocations: 190.1 kB / 16.67 MB, free: 5.953 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.399/1.399, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.693/2.693, allocations: 461.9 MB / 0.7348 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001355/0.001356, allocations: 67.89 kB / 1.054 GB, free: 7.746 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8963/0.8976, allocations: 157.4 MB / 1.208 GB, free: 13.68 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Validation.LimPIDReset): time 0.007112/0.9048, allocations: 4.334 MB / 1.212 GB, free: 9.32 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0039/0.9088, allocations: 1.585 MB / 1.213 GB, free: 7.727 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001033/0.9098, allocations: 31.88 kB / 1.213 GB, free: 7.695 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0007309/0.9106, allocations: 178.1 kB / 1.214 GB, free: 7.52 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.001401/0.9121, allocations: 222.1 kB / 1.214 GB, free: 7.301 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.002133/0.9142, allocations: 0.6691 MB / 1.215 GB, free: 6.641 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.002283/0.9165, allocations: 1.222 MB / 1.216 GB, free: 5.414 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001043/0.9176, allocations: 0.5001 MB / 1.216 GB, free: 4.895 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008958/0.9185, allocations: 469.9 kB / 1.217 GB, free: 4.434 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009103/0.9194, allocations: 465.4 kB / 1.217 GB, free: 3.977 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.0004003/0.9198, allocations: 100 kB / 1.217 GB, free: 3.879 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003423/0.9201, allocations: 104 kB / 1.217 GB, free: 3.777 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0003747/0.9205, allocations: 235.1 kB / 1.218 GB, free: 3.547 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0006873/0.9212, allocations: 489 kB / 1.218 GB, free: 3.066 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.001435/0.9227, allocations: 1.161 MB / 1.219 GB, free: 1.906 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 6.532e-06/0.9227, allocations: 0 / 1.219 GB, free: 1.906 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.935e-06/0.9227, allocations: 3.938 kB / 1.219 GB, free: 1.902 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 2.293e-05/0.9227, allocations: 3.938 kB / 1.219 GB, free: 1.898 MB / 0.9356 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.002437/0.9252, allocations: 1.399 MB / 1.22 GB, free: 456 kB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.116e-05/0.9252, allocations: 8.031 kB / 1.221 GB, free: 448 kB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001749/0.9254, allocations: 119.5 kB / 1.221 GB, free: 328 kB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001271/0.9267, allocations: 0.7587 MB / 1.221 GB, free: 15.52 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.356e-05/0.9268, allocations: 80.2 kB / 1.221 GB, free: 15.43 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000104/0.9269, allocations: 72.38 kB / 1.222 GB, free: 15.36 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001233/0.9281, allocations: 0.7407 MB / 1.222 GB, free: 14.59 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.796e-05/0.9282, allocations: 0 / 1.222 GB, free: 14.59 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.01e-05/0.9282, allocations: 32 kB / 1.222 GB, free: 14.55 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.785e-05/0.9282, allocations: 16 kB / 1.222 GB, free: 14.54 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001111/0.9294, allocations: 0.5165 MB / 1.223 GB, free: 14.02 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003382/0.9328, allocations: 2.251 MB / 1.225 GB, free: 11.7 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001376/0.9341, allocations: 0.6271 MB / 1.226 GB, free: 11.07 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005121/0.9347, allocations: 270.4 kB / 1.226 GB, free: 10.8 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 4.909e-05/0.9347, allocations: 12.56 kB / 1.226 GB, free: 10.79 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006504/0.9354, allocations: 311.1 kB / 1.226 GB, free: 10.47 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=60): time 1.954e-06/0.9354, allocations: 0 / 1.226 GB, free: 10.47 MB / 0.9512 GB Notification: Performance of matching and sorting (n=60): time 0.001666/0.9371, allocations: 0.7556 MB / 1.227 GB, free: 9.711 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.814e-05/0.9371, allocations: 85.67 kB / 1.227 GB, free: 9.609 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008828/0.938, allocations: 0.7672 MB / 1.228 GB, free: 8.832 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 4.634e-05/0.9381, allocations: 33.7 kB / 1.228 GB, free: 8.793 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.00034/0.9384, allocations: 440.5 kB / 1.228 GB, free: 8.359 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001727/0.9386, allocations: 208.9 kB / 1.228 GB, free: 8.152 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001751/0.9388, allocations: 114.2 kB / 1.228 GB, free: 8.035 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001288/0.9389, allocations: 326 kB / 1.229 GB, free: 7.711 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004631/0.9394, allocations: 215.3 kB / 1.229 GB, free: 7.496 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005121/0.9399, allocations: 300.4 kB / 1.229 GB, free: 7.168 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009686/0.9409, allocations: 0.5113 MB / 1.23 GB, free: 6.625 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.297e-06/0.9409, allocations: 0 / 1.23 GB, free: 6.625 MB / 0.9512 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001209/0.9421, allocations: 0.6501 MB / 1.23 GB, free: 5.969 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 2.074e-05/0.9422, allocations: 9.719 kB / 1.23 GB, free: 5.961 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.304e-06/0.9422, allocations: 0 / 1.23 GB, free: 5.961 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.154e-05/0.9422, allocations: 4 kB / 1.23 GB, free: 5.957 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006771/0.9429, allocations: 148 kB / 1.231 GB, free: 5.812 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.653e-05/0.9429, allocations: 11.92 kB / 1.231 GB, free: 5.801 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004202/0.9433, allocations: 71.36 kB / 1.231 GB, free: 5.73 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.584e-05/0.9434, allocations: 23.98 kB / 1.231 GB, free: 5.707 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006042/0.944, allocations: 349.4 kB / 1.231 GB, free: 5.363 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004729/0.9445, allocations: 296.4 kB / 1.231 GB, free: 5.043 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008697/0.9454, allocations: 499.7 kB / 1.232 GB, free: 4.52 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.823e-06/0.9454, allocations: 0 / 1.232 GB, free: 4.52 MB / 0.9512 GB Notification: Performance of matching and sorting (n=76) (initialization_lambda0): time 0.001128/0.9465, allocations: 0.6268 MB / 1.232 GB, free: 3.891 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.037e-05/0.9465, allocations: 12 kB / 1.232 GB, free: 3.879 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.579e-06/0.9465, allocations: 4 kB / 1.232 GB, free: 3.875 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.871e-06/0.9466, allocations: 4 kB / 1.232 GB, free: 3.871 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006062/0.9472, allocations: 143.7 kB / 1.233 GB, free: 3.73 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.468e-06/0.9472, allocations: 7.938 kB / 1.233 GB, free: 3.723 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003849/0.9476, allocations: 55.5 kB / 1.233 GB, free: 3.668 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.09e-05/0.9476, allocations: 24 kB / 1.233 GB, free: 3.645 MB / 0.9512 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.0002482/0.9479, allocations: 216.1 kB / 1.233 GB, free: 3.426 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001473/0.948, allocations: 94.78 kB / 1.233 GB, free: 3.332 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001855/0.9482, allocations: 109.2 kB / 1.233 GB, free: 3.223 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.227e-06/0.9482, allocations: 7.984 kB / 1.233 GB, free: 3.215 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.065e-05/0.9483, allocations: 3.938 kB / 1.233 GB, free: 3.211 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.022e-05/0.9483, allocations: 0 / 1.233 GB, free: 3.211 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00234/0.9506, allocations: 1.439 MB / 1.234 GB, free: 1.715 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-06/0.9506, allocations: 4 kB / 1.234 GB, free: 1.711 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005379/0.9512, allocations: 103.8 kB / 1.235 GB, free: 1.609 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.009e-06/0.9512, allocations: 4 kB / 1.235 GB, free: 1.605 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.981e-05/0.9512, allocations: 12.09 kB / 1.235 GB, free: 1.594 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.9512, allocations: 4 kB / 1.235 GB, free: 1.59 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.9513, allocations: 0 / 1.235 GB, free: 1.59 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001696/0.953, allocations: 0.9673 MB / 1.236 GB, free: 0.6016 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002798/0.9532, allocations: 223.7 kB / 1.236 GB, free: 372 kB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.581e-05/0.9533, allocations: 12 kB / 1.236 GB, free: 360 kB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004084/0.9537, allocations: 31.97 kB / 1.236 GB, free: 328 kB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.395e-05/0.9538, allocations: 36.5 kB / 1.236 GB, free: 292 kB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.861e-05/0.9539, allocations: 16 kB / 1.236 GB, free: 276 kB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0006558/0.9546, allocations: 0.5224 MB / 1.236 GB, free: 15.75 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.81e-07/0.9546, allocations: 0 / 1.236 GB, free: 15.75 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0007215/0.9553, allocations: 279 kB / 1.237 GB, free: 15.48 MB / 0.9669 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.0001763/0.9555, allocations: 111.2 kB / 1.237 GB, free: 15.36 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.001627/0.9571, allocations: 0.7933 MB / 1.237 GB, free: 14.57 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.556e-05/0.9571, allocations: 4 kB / 1.237 GB, free: 14.57 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0005074/0.9576, allocations: 272 kB / 1.238 GB, free: 14.3 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001188/0.9588, allocations: 268.6 kB / 1.238 GB, free: 14.05 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002688/0.9615, allocations: 1.551 MB / 1.24 GB, free: 12.47 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005846/0.9621, allocations: 0.9937 MB / 1.24 GB, free: 11.45 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.0004843/0.9626, allocations: 114.9 kB / 1.241 GB, free: 11.34 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001776/0.9628, allocations: 59.42 kB / 1.241 GB, free: 11.28 MB / 0.9669 GB Notification: Performance of SimCode: time 9.92e-07/0.9628, allocations: 0 / 1.241 GB, free: 11.28 MB / 0.9669 GB Notification: Performance of Templates: time 0.01841/0.9812, allocations: 9.607 MB / 1.25 GB, free: 1.773 MB / 0.9669 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