Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale.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 12.0.0-master/package.mo", uses=false) 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.OBC.CDL.Reals.Validation.PIDWithResetScale,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pidSca.y|pidNoSca.y|pla1.y|pla2.y|pidSca.u_s|pidSca.trigger",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pidSca.y|pidNoSca.y|pla1.y|pla2.y|pidSca.u_s|pidSca.trigger",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001718/0.001718, allocations: 114.9 kB / 16.42 MB, free: 6.5 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.001502/0.001502, allocations: 183.9 kB / 17.34 MB, free: 5.758 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.463/1.463, allocations: 222.9 MB / 241.1 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.895/2.895, allocations: 472.7 MB / 0.746 GB, free: 488 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001563/0.001563, allocations: 63.91 kB / 1.07 GB, free: 9.508 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9396/0.9412, allocations: 159.9 MB / 1.226 GB, free: 13.49 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale): time 0.004005/0.9452, allocations: 2.161 MB / 1.229 GB, free: 11.32 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.002957/0.9482, allocations: 1.692 MB / 1.23 GB, free: 9.617 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004712/0.9487, allocations: 11.94 kB / 1.23 GB, free: 9.605 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.000344/0.9491, allocations: 91 kB / 1.23 GB, free: 9.516 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0003899/0.9495, allocations: 91.17 kB / 1.23 GB, free: 9.426 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.001079/0.9506, allocations: 421.6 kB / 1.231 GB, free: 9.02 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0007744/0.9514, allocations: 0.8012 MB / 1.232 GB, free: 8.215 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004855/0.9519, allocations: 373.8 kB / 1.232 GB, free: 7.84 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002628/0.9521, allocations: 303 kB / 1.232 GB, free: 7.543 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003072/0.9524, allocations: 318.5 kB / 1.232 GB, free: 7.23 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 0.0001137/0.9526, allocations: 88 kB / 1.233 GB, free: 7.145 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001407/0.9527, allocations: 100 kB / 1.233 GB, free: 7.047 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0001139/0.9528, allocations: 159.4 kB / 1.233 GB, free: 6.891 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0002541/0.9531, allocations: 334.3 kB / 1.233 GB, free: 6.562 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0008278/0.9539, allocations: 0.9188 MB / 1.234 GB, free: 5.645 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.9539, allocations: 0 / 1.234 GB, free: 5.645 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.743e-06/0.9539, allocations: 0 / 1.234 GB, free: 5.645 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 9.157e-06/0.954, allocations: 0 / 1.234 GB, free: 5.645 MB / 0.9512 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 131 * Number of variables: 131 Notification: Performance of Generate backend data structure: time 0.001526/0.9555, allocations: 0.998 MB / 1.235 GB, free: 4.578 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.963e-05/0.9555, allocations: 8.031 kB / 1.235 GB, free: 4.57 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00013/0.9557, allocations: 76.52 kB / 1.235 GB, free: 4.496 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005538/0.9562, allocations: 422.2 kB / 1.235 GB, free: 4.047 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.355e-05/0.9563, allocations: 45.69 kB / 1.236 GB, free: 4.004 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001063/0.9564, allocations: 68.33 kB / 1.236 GB, free: 3.938 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008088/0.9572, allocations: 0.5236 MB / 1.236 GB, free: 3.398 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.699e-05/0.9572, allocations: 4.125 kB / 1.236 GB, free: 3.395 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.474e-05/0.9573, allocations: 23.94 kB / 1.236 GB, free: 3.371 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.141e-05/0.9573, allocations: 12 kB / 1.236 GB, free: 3.359 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006918/0.958, allocations: 369.1 kB / 1.237 GB, free: 3 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002313/0.9603, allocations: 1.662 MB / 1.238 GB, free: 1.273 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000952/0.9613, allocations: 0.8932 MB / 1.239 GB, free: 268 kB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003934/0.9617, allocations: 244.2 kB / 1.239 GB, free: 16 kB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 4.375e-05/0.9618, allocations: 16.42 kB / 1.239 GB, free: 0 / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004706/0.9622, allocations: 273.3 kB / 1.24 GB, free: 15.72 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=53): time 4.208e-06/0.9622, allocations: 3.984 kB / 1.24 GB, free: 15.72 MB / 0.9669 GB Notification: Performance of matching and sorting (n=53): time 0.001084/0.9633, allocations: 0.5846 MB / 1.24 GB, free: 15.12 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.983e-05/0.9634, allocations: 111.2 kB / 1.24 GB, free: 14.99 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004097/0.9638, allocations: 401.7 kB / 1.241 GB, free: 14.59 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 5.272e-05/0.9639, allocations: 37.7 kB / 1.241 GB, free: 14.55 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001825/0.9641, allocations: 265.4 kB / 1.241 GB, free: 14.29 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001245/0.9642, allocations: 178.5 kB / 1.241 GB, free: 14.11 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001992/0.9644, allocations: 114.2 kB / 1.241 GB, free: 13.99 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001326/0.9646, allocations: 362.7 kB / 1.241 GB, free: 13.62 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004587/0.965, allocations: 223 kB / 1.242 GB, free: 13.41 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005073/0.9655, allocations: 311.3 kB / 1.242 GB, free: 13.07 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007901/0.9663, allocations: 491.5 kB / 1.242 GB, free: 12.55 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.9664, allocations: 0 / 1.242 GB, free: 12.55 MB / 0.9669 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001223/0.9676, allocations: 0.673 MB / 1.243 GB, free: 11.86 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 6.429e-05/0.9677, allocations: 75.55 kB / 1.243 GB, free: 11.78 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.905e-06/0.9677, allocations: 4 kB / 1.243 GB, free: 11.77 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.606e-05/0.9677, allocations: 7.938 kB / 1.243 GB, free: 11.77 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004072/0.9681, allocations: 91.89 kB / 1.243 GB, free: 11.68 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.261e-05/0.9681, allocations: 4 kB / 1.243 GB, free: 11.67 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004983/0.9686, allocations: 111.6 kB / 1.243 GB, free: 11.56 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.552e-05/0.9687, allocations: 27.98 kB / 1.243 GB, free: 11.54 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005093/0.9692, allocations: 321.1 kB / 1.244 GB, free: 11.22 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004175/0.9696, allocations: 287.3 kB / 1.244 GB, free: 10.9 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000603/0.9702, allocations: 451.5 kB / 1.244 GB, free: 10.43 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.783e-06/0.9703, allocations: 0 / 1.244 GB, free: 10.43 MB / 0.9669 GB Notification: Performance of matching and sorting (n=65) (initialization_lambda0): time 0.001023/0.9713, allocations: 0.6262 MB / 1.245 GB, free: 9.785 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 4.65e-05/0.9713, allocations: 75.39 kB / 1.245 GB, free: 9.699 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.855e-06/0.9714, allocations: 0 / 1.245 GB, free: 9.699 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.681e-06/0.9714, allocations: 4 kB / 1.245 GB, free: 9.695 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003308/0.9717, allocations: 91.83 kB / 1.245 GB, free: 9.605 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.903e-06/0.9717, allocations: 7.938 kB / 1.245 GB, free: 9.598 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004478/0.9722, allocations: 103.8 kB / 1.245 GB, free: 9.496 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.685e-05/0.9722, allocations: 23.98 kB / 1.245 GB, free: 9.473 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition6,booPul.y,$PRE.booPul.y,$whenCondition5,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,pulse.booPul.y,$PRE.pulse.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 2 * 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.000173/0.9724, allocations: 220.6 kB / 1.246 GB, free: 9.25 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.119e-05/0.9725, allocations: 51.67 kB / 1.246 GB, free: 9.199 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008233/0.9733, allocations: 477.5 kB / 1.246 GB, free: 8.727 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.662e-06/0.9733, allocations: 0 / 1.246 GB, free: 8.727 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.9733, allocations: 3.984 kB / 1.246 GB, free: 8.723 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 9.244e-05/0.9734, allocations: 128.7 kB / 1.246 GB, free: 8.578 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.94e-05/0.9735, allocations: 19.92 kB / 1.246 GB, free: 8.559 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001799/0.9737, allocations: 23.98 kB / 1.246 GB, free: 8.535 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.702e-05/0.9737, allocations: 28.39 kB / 1.246 GB, free: 8.508 MB / 0.9669 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001016/0.9748, allocations: 0.5465 MB / 1.247 GB, free: 7.953 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001163/0.9759, allocations: 0.8456 MB / 1.248 GB, free: 7.094 MB / 0.9669 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003121/0.9763, allocations: 203.5 kB / 1.248 GB, free: 6.895 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0003551/0.9766, allocations: 287.1 kB / 1.248 GB, free: 6.617 MB / 0.9669 GB Notification: Performance of Backend: time 6.21e-07/0.9766, allocations: 0 / 1.248 GB, free: 6.617 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.001919/0.9786, allocations: 0.9579 MB / 1.249 GB, free: 5.605 MB / 0.9669 GB Notification: Performance of SimCode: time 0.00186/0.9804, allocations: 1.358 MB / 1.25 GB, free: 4.199 MB / 0.9669 GB Notification: Performance of Templates: time 0.01692/0.9974, allocations: 9.116 MB / 1.259 GB, free: 11.15 MB / 0.9825 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_PIDWithResetScale.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches