Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset.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.PIDWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|limPIDPar.u_s|limPIDPar.u_m|limPIDPar.y|limPIDInp.u_s|limPIDInp.u_m|limPIDInp.y|limPIPar.u_s|limPIPar.u_m|limPIPar.y|limPIInp.u_s|limPIInp.u_m|limPIInp.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|limPIDPar.u_s|limPIDPar.u_m|limPIDPar.y|limPIDInp.u_s|limPIDInp.u_m|limPIDInp.y|limPIPar.u_s|limPIPar.u_m|limPIPar.y|limPIInp.u_s|limPIInp.u_m|limPIInp.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001347/0.001347, allocations: 109.1 kB / 16.42 MB, free: 6.496 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.001389/0.001389, allocations: 183.9 kB / 17.34 MB, free: 5.754 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.436/1.436, allocations: 222.9 MB / 241.1 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.736/2.736, allocations: 472.7 MB / 0.746 GB, free: 472 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00154/0.00154, allocations: 63.91 kB / 1.07 GB, free: 9.516 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9534/0.9549, allocations: 159.9 MB / 1.226 GB, free: 13.5 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset): time 0.005779/0.9608, allocations: 3.315 MB / 1.23 GB, free: 10.18 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.003414/0.9642, allocations: 1.723 MB / 1.231 GB, free: 8.438 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000571/0.9648, allocations: 19.94 kB / 1.231 GB, free: 8.418 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0004925/0.9653, allocations: 162.2 kB / 1.231 GB, free: 8.258 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0003315/0.9657, allocations: 130.8 kB / 1.232 GB, free: 8.129 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007488/0.9665, allocations: 355.4 kB / 1.232 GB, free: 7.781 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0009826/0.9675, allocations: 1.088 MB / 1.233 GB, free: 6.688 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009586/0.9684, allocations: 0.6233 MB / 1.234 GB, free: 6.043 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004079/0.9689, allocations: 402.3 kB / 1.234 GB, free: 5.648 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000404/0.9693, allocations: 453.6 kB / 1.234 GB, free: 5.203 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 0.0001399/0.9694, allocations: 120 kB / 1.235 GB, free: 5.086 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001138/0.9695, allocations: 116 kB / 1.235 GB, free: 4.973 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0001835/0.9697, allocations: 255.1 kB / 1.235 GB, free: 4.723 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0003336/0.9701, allocations: 477.3 kB / 1.235 GB, free: 4.254 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.001205/0.9713, allocations: 1.327 MB / 1.237 GB, free: 2.926 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 5.501e-06/0.9713, allocations: 0 / 1.237 GB, free: 2.926 MB / 0.9512 GB Notification: Performance of FrontEnd: time 2.265e-06/0.9713, allocations: 0 / 1.237 GB, free: 2.926 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 1.228e-05/0.9713, allocations: 4 kB / 1.237 GB, free: 2.922 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: 229 * Number of variables: 229 Notification: Performance of Generate backend data structure: time 0.00225/0.9736, allocations: 1.316 MB / 1.238 GB, free: 1.551 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 5.827e-05/0.9737, allocations: 8.031 kB / 1.238 GB, free: 1.543 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001906/0.9739, allocations: 116.2 kB / 1.238 GB, free: 1.43 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009337/0.9748, allocations: 0.568 MB / 1.239 GB, free: 0.8164 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.818e-05/0.9749, allocations: 70.38 kB / 1.239 GB, free: 0.75 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001191/0.975, allocations: 100.3 kB / 1.239 GB, free: 0.6523 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001415/0.9764, allocations: 0.8789 MB / 1.24 GB, free: 15.75 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.278e-05/0.9764, allocations: 8.125 kB / 1.24 GB, free: 15.74 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.808e-05/0.9765, allocations: 43.94 kB / 1.24 GB, free: 15.7 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.823e-05/0.9765, allocations: 23.98 kB / 1.24 GB, free: 15.67 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001178/0.9777, allocations: 0.6207 MB / 1.24 GB, free: 15.05 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003947/0.9817, allocations: 2.795 MB / 1.243 GB, free: 12.18 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001489/0.9832, allocations: 1.298 MB / 1.244 GB, free: 10.73 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006327/0.9838, allocations: 395.6 kB / 1.245 GB, free: 10.35 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 6.181e-05/0.9839, allocations: 16.64 kB / 1.245 GB, free: 10.33 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006694/0.9846, allocations: 348.3 kB / 1.245 GB, free: 9.977 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=74): time 2.535e-06/0.9846, allocations: 0 / 1.245 GB, free: 9.977 MB / 0.9669 GB Notification: Performance of matching and sorting (n=74): time 0.001582/0.9862, allocations: 0.8293 MB / 1.246 GB, free: 9.141 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.018e-05/0.9863, allocations: 162.9 kB / 1.246 GB, free: 8.945 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006503/0.9869, allocations: 0.5654 MB / 1.247 GB, free: 8.371 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 5.86e-05/0.987, allocations: 41.7 kB / 1.247 GB, free: 8.324 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002761/0.9873, allocations: 405 kB / 1.247 GB, free: 7.922 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001648/0.9875, allocations: 269.6 kB / 1.247 GB, free: 7.656 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001709/0.9876, allocations: 126.7 kB / 1.247 GB, free: 7.523 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001559/0.9878, allocations: 382.8 kB / 1.248 GB, free: 7.141 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005223/0.9883, allocations: 256.7 kB / 1.248 GB, free: 6.887 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005706/0.9889, allocations: 353.2 kB / 1.248 GB, free: 6.508 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009695/0.9899, allocations: 0.5448 MB / 1.249 GB, free: 5.957 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.9899, allocations: 0 / 1.249 GB, free: 5.957 MB / 0.9669 GB Notification: Performance of matching and sorting (n=87) (initialization): time 0.001303/0.9912, allocations: 0.704 MB / 1.25 GB, free: 5.242 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.143e-05/0.9913, allocations: 12.03 kB / 1.25 GB, free: 5.23 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.614e-06/0.9913, allocations: 4 kB / 1.25 GB, free: 5.227 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.075e-05/0.9913, allocations: 4 kB / 1.25 GB, free: 5.223 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006164/0.9919, allocations: 151.8 kB / 1.25 GB, free: 5.074 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.281e-05/0.9919, allocations: 7.938 kB / 1.25 GB, free: 5.066 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003772/0.9923, allocations: 99.41 kB / 1.25 GB, free: 4.969 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.111e-05/0.9924, allocations: 23.98 kB / 1.25 GB, free: 4.945 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005336/0.9929, allocations: 350.1 kB / 1.25 GB, free: 4.602 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004251/0.9934, allocations: 313.2 kB / 1.25 GB, free: 4.258 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006624/0.994, allocations: 466 kB / 1.251 GB, free: 3.793 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.643e-06/0.994, allocations: 0 / 1.251 GB, free: 3.793 MB / 0.9669 GB Notification: Performance of matching and sorting (n=87) (initialization_lambda0): time 0.0009773/0.995, allocations: 0.6143 MB / 1.252 GB, free: 3.172 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.271e-05/0.995, allocations: 8 kB / 1.252 GB, free: 3.164 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.895e-06/0.9951, allocations: 0 / 1.252 GB, free: 3.164 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.135e-06/0.9951, allocations: 8.094 kB / 1.252 GB, free: 3.156 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005065/0.9956, allocations: 135.8 kB / 1.252 GB, free: 3.023 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.677e-06/0.9956, allocations: 4 kB / 1.252 GB, free: 3.02 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003239/0.9959, allocations: 79.59 kB / 1.252 GB, free: 2.941 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.523e-05/0.996, allocations: 27.94 kB / 1.252 GB, free: 2.914 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 3 (limPIDInp.trigger,$whenCondition1,con.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (87): * Single equations (assignments): 87 * 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.0001971/0.9962, allocations: 220.7 kB / 1.252 GB, free: 2.691 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.203e-05/0.9963, allocations: 75.53 kB / 1.252 GB, free: 2.617 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001209/0.9975, allocations: 0.6417 MB / 1.253 GB, free: 1.969 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.083e-05/0.9975, allocations: 7.922 kB / 1.253 GB, free: 1.961 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.9975, allocations: 0 / 1.253 GB, free: 1.961 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001266/0.9976, allocations: 168.4 kB / 1.253 GB, free: 1.777 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.472e-05/0.9977, allocations: 23.94 kB / 1.253 GB, free: 1.754 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002858/0.998, allocations: 39.95 kB / 1.253 GB, free: 1.715 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.338e-05/0.9981, allocations: 44.59 kB / 1.253 GB, free: 1.672 MB / 0.9669 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001521/0.9996, allocations: 0.743 MB / 1.254 GB, free: 0.918 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001775/1.001, allocations: 1.143 MB / 1.255 GB, free: 15.76 MB / 0.9825 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004863/1.002, allocations: 297.1 kB / 1.255 GB, free: 15.46 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0005145/1.002, allocations: 394.8 kB / 1.255 GB, free: 15.08 MB / 0.9825 GB Notification: Performance of Backend: time 7.41e-07/1.002, allocations: 0 / 1.255 GB, free: 15.08 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.001791/1.004, allocations: 0.7637 MB / 1.256 GB, free: 14.31 MB / 0.9825 GB Notification: Performance of SimCode: time 0.00279/1.007, allocations: 1.855 MB / 1.258 GB, free: 12.41 MB / 0.9825 GB Notification: Performance of Templates: time 0.01886/1.026, allocations: 10.09 MB / 1.268 GB, free: 2.375 MB / 0.9825 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_PIDWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches