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.001083/0.001083, allocations: 106.3 kB / 16.41 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.001109/0.001109, allocations: 185.5 kB / 17.34 MB, free: 5.766 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.279/1.279, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.494/2.494, allocations: 461.9 MB / 0.7355 GB, free: 11.08 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001225/0.001225, allocations: 71.91 kB / 1.055 GB, free: 7.641 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6767/0.6779, allocations: 157.4 MB / 1.208 GB, free: 13.62 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale): time 0.003196/0.6812, allocations: 2.077 MB / 1.211 GB, free: 11.54 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.002208/0.6834, allocations: 1.61 MB / 1.212 GB, free: 9.918 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003312/0.6837, allocations: 15.88 kB / 1.212 GB, free: 9.902 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0002853/0.684, allocations: 79.06 kB / 1.212 GB, free: 9.824 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0002494/0.6843, allocations: 79.25 kB / 1.212 GB, free: 9.746 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008073/0.6851, allocations: 324.8 kB / 1.213 GB, free: 9.43 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0007293/0.6859, allocations: 0.6881 MB / 1.213 GB, free: 8.738 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004513/0.6863, allocations: 333.3 kB / 1.214 GB, free: 8.41 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002703/0.6866, allocations: 251 kB / 1.214 GB, free: 8.164 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003115/0.6869, allocations: 286.6 kB / 1.214 GB, free: 7.883 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.0001107/0.687, allocations: 76 kB / 1.214 GB, free: 7.809 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001418/0.6872, allocations: 91.98 kB / 1.214 GB, free: 7.719 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001121/0.6873, allocations: 147.5 kB / 1.214 GB, free: 7.574 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0002407/0.6875, allocations: 298.4 kB / 1.215 GB, free: 7.281 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.000706/0.6883, allocations: 0.8346 MB / 1.215 GB, free: 6.449 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.666e-06/0.6883, allocations: 0 / 1.215 GB, free: 6.449 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.252e-06/0.6883, allocations: 0 / 1.215 GB, free: 6.449 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.856e-05/0.6883, allocations: 0 / 1.215 GB, free: 6.449 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: 124 * Number of variables: 124 Notification: Performance of Generate backend data structure: time 0.001533/0.6898, allocations: 0.8994 MB / 1.216 GB, free: 5.492 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.266e-05/0.6899, allocations: 12.03 kB / 1.216 GB, free: 5.48 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001276/0.69, allocations: 68.09 kB / 1.216 GB, free: 5.414 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00053/0.6905, allocations: 412.6 kB / 1.217 GB, free: 4.965 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.417e-05/0.6906, allocations: 41.38 kB / 1.217 GB, free: 4.926 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.064e-05/0.6907, allocations: 56.38 kB / 1.217 GB, free: 4.871 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008001/0.6915, allocations: 0.4917 MB / 1.217 GB, free: 4.367 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.35e-05/0.6915, allocations: 4.172 kB / 1.217 GB, free: 4.363 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.159e-05/0.6916, allocations: 27.94 kB / 1.217 GB, free: 4.336 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.139e-05/0.6916, allocations: 12 kB / 1.217 GB, free: 4.324 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006469/0.6922, allocations: 347.8 kB / 1.218 GB, free: 3.984 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00219/0.6944, allocations: 1.542 MB / 1.219 GB, free: 2.383 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008821/0.6953, allocations: 0.8723 MB / 1.22 GB, free: 1.395 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003614/0.6957, allocations: 231.4 kB / 1.22 GB, free: 1.168 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 3.178e-05/0.6957, allocations: 7.984 kB / 1.22 GB, free: 1.16 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004053/0.6961, allocations: 244.8 kB / 1.221 GB, free: 0.9102 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=47): time 3.256e-06/0.6962, allocations: 0 / 1.221 GB, free: 0.9102 MB / 0.9356 GB Notification: Performance of matching and sorting (n=47): time 0.0009625/0.6971, allocations: 0.5297 MB / 1.221 GB, free: 380 kB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.392e-05/0.6972, allocations: 115.2 kB / 1.221 GB, free: 240 kB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004105/0.6976, allocations: 385.5 kB / 1.222 GB, free: 15.84 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 4.937e-05/0.6977, allocations: 45.69 kB / 1.222 GB, free: 15.79 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001766/0.6979, allocations: 253 kB / 1.222 GB, free: 15.54 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001043/0.698, allocations: 153.8 kB / 1.222 GB, free: 15.39 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000141/0.6981, allocations: 102.1 kB / 1.222 GB, free: 15.29 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001316/0.6983, allocations: 354.8 kB / 1.222 GB, free: 14.93 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003861/0.6986, allocations: 191 kB / 1.223 GB, free: 14.74 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000441/0.6991, allocations: 276.3 kB / 1.223 GB, free: 14.44 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000706/0.6998, allocations: 435.4 kB / 1.223 GB, free: 13.98 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.6998, allocations: 0 / 1.223 GB, free: 13.98 MB / 0.9512 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001017/0.7008, allocations: 0.5714 MB / 1.224 GB, free: 13.4 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 3.668e-05/0.7009, allocations: 37.64 kB / 1.224 GB, free: 13.36 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.7009, allocations: 0 / 1.224 GB, free: 13.36 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.451e-05/0.7009, allocations: 4 kB / 1.224 GB, free: 13.35 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003878/0.7013, allocations: 99.88 kB / 1.224 GB, free: 13.25 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.101e-05/0.7013, allocations: 7.938 kB / 1.224 GB, free: 13.25 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003891/0.7017, allocations: 87.59 kB / 1.224 GB, free: 13.16 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.812e-05/0.7018, allocations: 19.94 kB / 1.224 GB, free: 13.14 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004153/0.7022, allocations: 290.7 kB / 1.224 GB, free: 12.86 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003431/0.7025, allocations: 252.3 kB / 1.225 GB, free: 12.57 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005216/0.7031, allocations: 395.4 kB / 1.225 GB, free: 12.16 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.844e-06/0.7031, allocations: 0 / 1.225 GB, free: 12.16 MB / 0.9512 GB Notification: Performance of matching and sorting (n=60) (initialization_lambda0): time 0.0008374/0.7039, allocations: 0.5166 MB / 1.226 GB, free: 11.62 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 3.18e-05/0.704, allocations: 41.69 kB / 1.226 GB, free: 11.58 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.704, allocations: 11.94 kB / 1.226 GB, free: 11.57 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.49e-06/0.704, allocations: 4 kB / 1.226 GB, free: 11.56 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003054/0.7043, allocations: 75.91 kB / 1.226 GB, free: 11.49 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.905e-06/0.7043, allocations: 8.219 kB / 1.226 GB, free: 11.48 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003493/0.7047, allocations: 75.56 kB / 1.226 GB, free: 11.41 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.246e-05/0.7047, allocations: 20 kB / 1.226 GB, free: 11.39 MB / 0.9512 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.0001505/0.7049, allocations: 216.1 kB / 1.226 GB, free: 11.17 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.644e-05/0.7049, allocations: 47.38 kB / 1.226 GB, free: 11.12 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007314/0.7057, allocations: 437.3 kB / 1.226 GB, free: 10.68 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.881e-06/0.7057, allocations: 4 kB / 1.226 GB, free: 10.68 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.7057, allocations: 0 / 1.226 GB, free: 10.68 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.7057, allocations: 0 / 1.226 GB, free: 10.68 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001484/0.7072, allocations: 1.136 MB / 1.228 GB, free: 9.465 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.7072, allocations: 0 / 1.228 GB, free: 9.465 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003434/0.7076, allocations: 83.89 kB / 1.228 GB, free: 9.383 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.16e-06/0.7076, allocations: 8.188 kB / 1.228 GB, free: 9.375 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.911e-05/0.7076, allocations: 12 kB / 1.228 GB, free: 9.363 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.771e-06/0.7076, allocations: 11.92 kB / 1.228 GB, free: 9.352 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.7076, allocations: 3.938 kB / 1.228 GB, free: 9.348 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001021/0.7087, allocations: 0.7221 MB / 1.228 GB, free: 8.59 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 9.454e-05/0.7088, allocations: 124.6 kB / 1.228 GB, free: 8.449 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.202e-05/0.7088, allocations: 12 kB / 1.228 GB, free: 8.438 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000218/0.709, allocations: 27.97 kB / 1.228 GB, free: 8.41 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.684e-05/0.7091, allocations: 31.91 kB / 1.229 GB, free: 8.379 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.642e-05/0.7091, allocations: 19.98 kB / 1.229 GB, free: 8.359 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0002602/0.7094, allocations: 271.2 kB / 1.229 GB, free: 8.098 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1e-07/0.7094, allocations: 0 / 1.229 GB, free: 8.098 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.000571/0.71, allocations: 195.3 kB / 1.229 GB, free: 7.906 MB / 0.9512 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.0001941/0.7102, allocations: 135.1 kB / 1.229 GB, free: 7.766 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.001259/0.7115, allocations: 0.7764 MB / 1.23 GB, free: 6.965 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.7115, allocations: 7.938 kB / 1.23 GB, free: 6.957 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0003326/0.7118, allocations: 199.9 kB / 1.23 GB, free: 6.762 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005883/0.7124, allocations: 100.2 kB / 1.23 GB, free: 6.668 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001404/0.7138, allocations: 0.9631 MB / 1.231 GB, free: 5.652 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004335/0.7143, allocations: 0.8512 MB / 1.232 GB, free: 4.77 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001188/0.7144, allocations: 43.38 kB / 1.232 GB, free: 4.727 MB / 0.9512 GB Notification: Performance of SimCode: time 2.41e-07/0.7144, allocations: 4 kB / 1.232 GB, free: 4.723 MB / 0.9512 GB Notification: Performance of Templates: time 0.008703/0.7231, allocations: 5.972 MB / 1.238 GB, free: 14.78 MB / 0.9669 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/jenkins1/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