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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.0012/0.0012, allocations: 92.55 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001532/0.001532, allocations: 175.1 kB / 16.92 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.581/1.581, allocations: 223.3 MB / 241 MB, free: 5.281 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.893/2.893, allocations: 462.6 MB / 0.737 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003401/0.0003401, allocations: 11.34 kB / 0.9034 GB, free: 36.48 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3601/0.3604, allocations: 159.6 MB / 1.059 GB, free: 5 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset): time 0.004001/0.3645, allocations: 2.857 MB / 1.062 GB, free: 2.137 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.003257/0.3678, allocations: 1.664 MB / 1.064 GB, free: 468 kB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009457/0.3688, allocations: 19.94 kB / 1.064 GB, free: 448 kB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0005443/0.3693, allocations: 114.9 kB / 1.064 GB, free: 332 kB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0006567/0.37, allocations: 83.38 kB / 1.064 GB, free: 248 kB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009355/0.3709, allocations: 311.7 kB / 1.064 GB, free: 15.94 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.001342/0.3723, allocations: 0.979 MB / 1.065 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001163/0.3735, allocations: 0.592 MB / 1.066 GB, free: 14.35 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004203/0.3739, allocations: 258.3 kB / 1.066 GB, free: 14.09 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004335/0.3744, allocations: 309.7 kB / 1.066 GB, free: 13.79 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 8.533e-05/0.3745, allocations: 27.94 kB / 1.066 GB, free: 13.76 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 5.537e-05/0.3745, allocations: 32 kB / 1.066 GB, free: 13.73 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001229/0.3746, allocations: 139.2 kB / 1.067 GB, free: 13.59 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0003057/0.375, allocations: 371 kB / 1.067 GB, free: 13.22 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0007926/0.3758, allocations: 0.9663 MB / 1.068 GB, free: 12.25 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.3758, allocations: 0 / 1.068 GB, free: 12.25 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.934e-06/0.3758, allocations: 0 / 1.068 GB, free: 12.25 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.189e-05/0.3758, allocations: 0 / 1.068 GB, free: 12.25 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: 229 * Number of variables: 229 Notification: Performance of Generate backend data structure: time 0.001975/0.3778, allocations: 1.146 MB / 1.069 GB, free: 11.05 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.125e-05/0.3778, allocations: 11.97 kB / 1.069 GB, free: 11.04 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001626/0.378, allocations: 119.6 kB / 1.069 GB, free: 10.92 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006843/0.3787, allocations: 0.548 MB / 1.07 GB, free: 10.34 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.708e-05/0.3788, allocations: 74.38 kB / 1.07 GB, free: 10.26 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001202/0.3789, allocations: 100.3 kB / 1.07 GB, free: 10.16 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001538/0.3804, allocations: 0.8906 MB / 1.071 GB, free: 9.254 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.88e-05/0.3805, allocations: 192 / 1.071 GB, free: 9.254 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.275e-05/0.3806, allocations: 43.94 kB / 1.071 GB, free: 9.211 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.356e-05/0.3806, allocations: 24 kB / 1.071 GB, free: 9.188 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001313/0.3819, allocations: 0.6559 MB / 1.071 GB, free: 8.527 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004107/0.386, allocations: 2.853 MB / 1.074 GB, free: 5.594 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001544/0.3876, allocations: 1.346 MB / 1.075 GB, free: 4.094 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006451/0.3882, allocations: 414 kB / 1.076 GB, free: 3.688 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 4.255e-05/0.3883, allocations: 12.64 kB / 1.076 GB, free: 3.676 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007148/0.389, allocations: 372.4 kB / 1.076 GB, free: 3.301 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=74): time 2.354e-06/0.389, allocations: 0 / 1.076 GB, free: 3.301 MB / 0.8262 GB Notification: Performance of matching and sorting (n=74): time 0.001645/0.3907, allocations: 0.8641 MB / 1.077 GB, free: 2.434 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.492e-05/0.3908, allocations: 166.9 kB / 1.077 GB, free: 2.234 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006351/0.3914, allocations: 0.5615 MB / 1.078 GB, free: 1.664 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 5.174e-05/0.3915, allocations: 41.69 kB / 1.078 GB, free: 1.617 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.000267/0.3917, allocations: 392.2 kB / 1.078 GB, free: 1.227 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001751/0.3919, allocations: 256.2 kB / 1.078 GB, free: 0.9727 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.527e-05/0.392, allocations: 69.67 kB / 1.078 GB, free: 0.8984 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001508/0.3922, allocations: 382.8 kB / 1.079 GB, free: 0.5156 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005425/0.3927, allocations: 253.9 kB / 1.079 GB, free: 272 kB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006421/0.3934, allocations: 377.2 kB / 1.079 GB, free: 15.86 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001056/0.3944, allocations: 0.576 MB / 1.08 GB, free: 15.27 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.836e-06/0.3945, allocations: 0 / 1.08 GB, free: 15.27 MB / 0.8419 GB Notification: Performance of matching and sorting (n=87) (initialization): time 0.001328/0.3958, allocations: 0.7388 MB / 1.081 GB, free: 14.53 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 7.207e-05/0.3959, allocations: 120.5 kB / 1.081 GB, free: 14.39 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.695e-06/0.3959, allocations: 3.938 kB / 1.081 GB, free: 14.39 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.093e-05/0.3959, allocations: 4 kB / 1.081 GB, free: 14.39 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006016/0.3965, allocations: 167.8 kB / 1.081 GB, free: 14.22 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.176e-05/0.3965, allocations: 7.938 kB / 1.081 GB, free: 14.21 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004124/0.397, allocations: 115.2 kB / 1.081 GB, free: 14.1 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.94e-05/0.397, allocations: 23.98 kB / 1.081 GB, free: 14.08 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 7.183e-06/0.397, allocations: 4 kB / 1.081 GB, free: 14.07 MB / 0.8419 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008327/0.3979, allocations: 0.5193 MB / 1.082 GB, free: 13.55 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.076e-06/0.3979, allocations: 0 / 1.082 GB, free: 13.55 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.717e-06/0.3979, allocations: 4 kB / 1.082 GB, free: 13.55 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004739/0.3984, allocations: 144 kB / 1.082 GB, free: 13.41 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.061e-06/0.3984, allocations: 7.938 kB / 1.082 GB, free: 13.4 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003106/0.3987, allocations: 83.34 kB / 1.082 GB, free: 13.32 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.227e-05/0.3988, allocations: 20 kB / 1.082 GB, free: 13.3 MB / 0.8419 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.0003302/0.3991, allocations: 300.9 kB / 1.082 GB, free: 13 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.721e-05/0.3992, allocations: 75.14 kB / 1.082 GB, free: 12.92 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001253/0.4004, allocations: 0.6768 MB / 1.083 GB, free: 12.23 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.795e-06/0.4005, allocations: 8 kB / 1.083 GB, free: 12.23 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.4005, allocations: 4 kB / 1.083 GB, free: 12.22 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.825e-06/0.4005, allocations: 3.984 kB / 1.083 GB, free: 12.22 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002501/0.403, allocations: 1.739 MB / 1.085 GB, free: 10.4 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.612e-06/0.403, allocations: 4 kB / 1.085 GB, free: 10.4 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005667/0.4036, allocations: 143.8 kB / 1.085 GB, free: 10.26 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.264e-06/0.4036, allocations: 4 kB / 1.085 GB, free: 10.25 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.851e-05/0.4036, allocations: 16 kB / 1.085 GB, free: 10.24 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.142e-06/0.4037, allocations: 4 kB / 1.085 GB, free: 10.23 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.749e-06/0.4037, allocations: 7.984 kB / 1.085 GB, free: 10.23 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00177/0.4054, allocations: 1.112 MB / 1.086 GB, free: 9.082 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001249/0.4056, allocations: 160 kB / 1.086 GB, free: 8.906 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.234e-05/0.4057, allocations: 19.98 kB / 1.086 GB, free: 8.887 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000357/0.406, allocations: 59.97 kB / 1.086 GB, free: 8.828 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.965e-05/0.4061, allocations: 44.44 kB / 1.086 GB, free: 8.781 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.924e-05/0.4062, allocations: 23.98 kB / 1.086 GB, free: 8.758 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0004295/0.4066, allocations: 398.8 kB / 1.087 GB, free: 8.371 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4066, allocations: 0 / 1.087 GB, free: 8.371 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0006979/0.4073, allocations: 310.4 kB / 1.087 GB, free: 8.066 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 10 (limPIDPar.I.y,limPIDPar.D.x,intWitRes1.y,limPIDInp.I.y,limPIDInp.D.x,intWitRes2.y,limPIPar.I.y,intWitRes3.y,limPIInp.I.y,intWitRes4.y) * Number of discrete variables: 2 (limPIDInp.trigger,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (74): * Single equations (assignments): 74 * 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 Backend phase and start with SimCode phase: time 0.0002226/0.4075, allocations: 132.6 kB / 1.087 GB, free: 7.926 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001634/0.4092, allocations: 0.9109 MB / 1.088 GB, free: 7.02 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.4092, allocations: 4 kB / 1.088 GB, free: 7.016 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0005381/0.4097, allocations: 335.4 kB / 1.088 GB, free: 6.688 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009226/0.4107, allocations: 136.1 kB / 1.088 GB, free: 6.559 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002532/0.4132, allocations: 1.984 MB / 1.09 GB, free: 4.516 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005105/0.4137, allocations: 0.9781 MB / 1.091 GB, free: 3.508 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001905/0.4139, allocations: 63.36 kB / 1.091 GB, free: 3.445 MB / 0.8419 GB Notification: Performance of SimCode: time 5.71e-07/0.4139, allocations: 0 / 1.091 GB, free: 3.445 MB / 0.8419 GB Notification: Performance of Templates: time 0.01242/0.4264, allocations: 8.968 MB / 1.1 GB, free: 10.47 MB / 0.8575 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