Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale.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.OBC.CDL.Reals.Validation.PIDScale,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pidSca.y|pidNoSca.y|pla1.y|pla2.y|pidSca.u_s",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pidSca.y|pidNoSca.y|pla1.y|pla2.y|pidSca.u_s",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001629/0.001628, allocations: 111.3 kB / 15.23 MB, free: 0.6367 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.001543/0.001544, allocations: 198.4 kB / 16.14 MB, free: 6.801 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.376/1.376, allocations: 222.9 MB / 239.8 MB, free: 4.586 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.81/2.81, allocations: 461.8 MB / 0.7342 GB, free: 15.06 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001378/0.001378, allocations: 69.98 kB / 0.8984 GB, free: 37.23 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3496/0.351, allocations: 157.4 MB / 1.052 GB, free: 8.828 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale): time 0.004313/0.3554, allocations: 2.111 MB / 1.054 GB, free: 6.711 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.003165/0.3586, allocations: 1.606 MB / 1.056 GB, free: 5.09 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000538/0.3591, allocations: 8 kB / 1.056 GB, free: 5.082 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0003887/0.3595, allocations: 59.39 kB / 1.056 GB, free: 5.023 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0003936/0.36, allocations: 51.62 kB / 1.056 GB, free: 4.973 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009565/0.3609, allocations: 290.8 kB / 1.056 GB, free: 4.691 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0007862/0.3617, allocations: 0.6217 MB / 1.057 GB, free: 4.07 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00053/0.3623, allocations: 305.3 kB / 1.057 GB, free: 3.766 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002585/0.3625, allocations: 223 kB / 1.057 GB, free: 3.547 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002673/0.3628, allocations: 254.6 kB / 1.057 GB, free: 3.297 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 7.449e-05/0.3629, allocations: 40 kB / 1.058 GB, free: 3.258 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001482/0.3631, allocations: 59.92 kB / 1.058 GB, free: 3.199 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 9.249e-05/0.3632, allocations: 103.5 kB / 1.058 GB, free: 3.098 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.00023/0.3634, allocations: 262.4 kB / 1.058 GB, free: 2.84 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0006767/0.3641, allocations: 0.7594 MB / 1.059 GB, free: 2.078 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.3641, allocations: 0 / 1.059 GB, free: 2.078 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.242e-06/0.3641, allocations: 0 / 1.059 GB, free: 2.078 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.985e-06/0.3641, allocations: 4 kB / 1.059 GB, free: 2.074 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 124 * Number of variables: 124 Notification: Performance of Generate backend data structure: time 0.001592/0.3657, allocations: 0.9084 MB / 1.06 GB, free: 1.109 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.264e-05/0.3658, allocations: 12.03 kB / 1.06 GB, free: 1.098 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001247/0.3659, allocations: 64.19 kB / 1.06 GB, free: 1.035 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005245/0.3664, allocations: 416.5 kB / 1.06 GB, free: 0.5859 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.428e-05/0.3665, allocations: 37.38 kB / 1.06 GB, free: 0.5508 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.389e-05/0.3666, allocations: 60.38 kB / 1.06 GB, free: 0.4922 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008697/0.3674, allocations: 499.5 kB / 1.061 GB, free: 15.99 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.492e-05/0.3675, allocations: 192 / 1.061 GB, free: 15.99 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.579e-05/0.3675, allocations: 27.92 kB / 1.061 GB, free: 15.96 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.934e-05/0.3675, allocations: 15.98 kB / 1.061 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006696/0.3682, allocations: 351.8 kB / 1.061 GB, free: 15.61 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002366/0.3706, allocations: 1.558 MB / 1.062 GB, free: 13.98 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009374/0.3716, allocations: 0.8702 MB / 1.063 GB, free: 13 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003925/0.372, allocations: 230.3 kB / 1.064 GB, free: 12.77 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.965e-05/0.372, allocations: 8 kB / 1.064 GB, free: 12.76 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006019/0.3726, allocations: 245.6 kB / 1.064 GB, free: 12.52 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=47): time 4.188e-06/0.3726, allocations: 0 / 1.064 GB, free: 12.52 MB / 0.8262 GB Notification: Performance of matching and sorting (n=47): time 0.001062/0.3737, allocations: 0.5258 MB / 1.064 GB, free: 11.98 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.652e-05/0.3738, allocations: 107.2 kB / 1.064 GB, free: 11.85 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004337/0.3742, allocations: 389.7 kB / 1.065 GB, free: 11.46 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.832e-05/0.3743, allocations: 37.7 kB / 1.065 GB, free: 11.42 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001905/0.3745, allocations: 252.9 kB / 1.065 GB, free: 11.17 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001205/0.3746, allocations: 157.7 kB / 1.065 GB, free: 11.02 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001653/0.3748, allocations: 98.23 kB / 1.065 GB, free: 10.91 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001466/0.3749, allocations: 350.8 kB / 1.066 GB, free: 10.56 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004215/0.3754, allocations: 191 kB / 1.066 GB, free: 10.37 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004811/0.3758, allocations: 284.2 kB / 1.066 GB, free: 10.06 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007329/0.3766, allocations: 431.4 kB / 1.067 GB, free: 9.605 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.163e-06/0.3766, allocations: 4 kB / 1.067 GB, free: 9.602 MB / 0.8262 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001134/0.3777, allocations: 0.5675 MB / 1.067 GB, free: 9.023 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 5.22e-05/0.3778, allocations: 49.66 kB / 1.067 GB, free: 8.969 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.095e-06/0.3778, allocations: 0 / 1.067 GB, free: 8.969 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.759e-05/0.3778, allocations: 4 kB / 1.067 GB, free: 8.965 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004162/0.3783, allocations: 95.83 kB / 1.067 GB, free: 8.871 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.055e-05/0.3783, allocations: 4 kB / 1.067 GB, free: 8.867 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004069/0.3787, allocations: 83.47 kB / 1.067 GB, free: 8.785 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.87e-05/0.3788, allocations: 27.98 kB / 1.067 GB, free: 8.758 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004555/0.3792, allocations: 286.7 kB / 1.068 GB, free: 8.477 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003882/0.3796, allocations: 256.2 kB / 1.068 GB, free: 8.191 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006004/0.3802, allocations: 387.5 kB / 1.068 GB, free: 7.781 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.924e-06/0.3802, allocations: 0 / 1.068 GB, free: 7.781 MB / 0.8262 GB Notification: Performance of matching and sorting (n=60) (initialization_lambda0): time 0.0008962/0.3811, allocations: 0.5205 MB / 1.069 GB, free: 7.246 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.253e-05/0.3812, allocations: 37.7 kB / 1.069 GB, free: 7.203 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.3812, allocations: 3.938 kB / 1.069 GB, free: 7.199 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.77e-06/0.3812, allocations: 4 kB / 1.069 GB, free: 7.195 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003139/0.3815, allocations: 91.83 kB / 1.069 GB, free: 7.105 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.644e-06/0.3815, allocations: 7.984 kB / 1.069 GB, free: 7.098 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000352/0.3819, allocations: 75.77 kB / 1.069 GB, free: 7.023 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.867e-05/0.382, allocations: 23.98 kB / 1.069 GB, free: 7 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition3,$whenCondition1,$whenCondition2,pulse.booPul.y,$PRE.pulse.booPul.y,pidNoSca.con1.y,pidSca.con1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 1 * 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.000161/0.3821, allocations: 204.2 kB / 1.069 GB, free: 6.793 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.885e-05/0.3822, allocations: 51.47 kB / 1.069 GB, free: 6.742 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007779/0.383, allocations: 445.2 kB / 1.07 GB, free: 6.293 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.761e-06/0.383, allocations: 4 kB / 1.07 GB, free: 6.289 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.511e-06/0.383, allocations: 0 / 1.07 GB, free: 6.289 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.243e-06/0.383, allocations: 3.984 kB / 1.07 GB, free: 6.285 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001679/0.3847, allocations: 1.139 MB / 1.071 GB, free: 5.07 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/0.3847, allocations: 0 / 1.071 GB, free: 5.07 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003511/0.3851, allocations: 88.08 kB / 1.071 GB, free: 4.984 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.408e-06/0.3851, allocations: 0 / 1.071 GB, free: 4.984 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.03e-05/0.3851, allocations: 12 kB / 1.071 GB, free: 4.973 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.919e-06/0.3851, allocations: 4 kB / 1.071 GB, free: 4.969 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.088e-06/0.3852, allocations: 3.938 kB / 1.071 GB, free: 4.965 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001104/0.3863, allocations: 0.7247 MB / 1.072 GB, free: 4.207 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 9.14e-05/0.3864, allocations: 128.5 kB / 1.072 GB, free: 4.062 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.59e-05/0.3864, allocations: 8 kB / 1.072 GB, free: 4.055 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002282/0.3867, allocations: 32.09 kB / 1.072 GB, free: 4.023 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.77e-05/0.3867, allocations: 39.84 kB / 1.072 GB, free: 3.984 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.795e-05/0.3868, allocations: 19.98 kB / 1.072 GB, free: 3.965 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0002802/0.3871, allocations: 267.2 kB / 1.072 GB, free: 3.707 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.332e-06/0.3871, allocations: 0 / 1.072 GB, free: 3.707 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000629/0.3877, allocations: 199.2 kB / 1.072 GB, free: 3.512 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (pidSca.I.y,pidSca.D.x,pla1.y,pidNoSca.I.y,pidNoSca.D.x,pla2.y) * Number of discrete variables: 4 ($whenCondition3,$whenCondition1,$whenCondition2,pulse.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (47): * Single equations (assignments): 46 * 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.0002507/0.388, allocations: 127.2 kB / 1.072 GB, free: 3.379 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001362/0.3893, allocations: 0.7802 MB / 1.073 GB, free: 2.57 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.3893, allocations: 4.25 kB / 1.073 GB, free: 2.566 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0003366/0.3897, allocations: 191.7 kB / 1.073 GB, free: 2.379 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006282/0.3903, allocations: 89.81 kB / 1.073 GB, free: 2.285 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001662/0.392, allocations: 1.145 MB / 1.074 GB, free: 1.094 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004138/0.3924, allocations: 0.8437 MB / 1.075 GB, free: 228 kB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.000212/0.3926, allocations: 51.38 kB / 1.075 GB, free: 176 kB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000108/0.3928, allocations: 47.42 kB / 1.075 GB, free: 132 kB / 0.8262 GB Notification: Performance of SimCode: time 7.62e-07/0.3928, allocations: 0 / 1.075 GB, free: 132 kB / 0.8262 GB Notification: Performance of Templates: time 0.01113/0.4039, allocations: 5.714 MB / 1.081 GB, free: 10.48 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_PIDScale.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches