Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_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_10_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.001199/0.001199, allocations: 106.7 kB / 16.41 MB, free: 6.465 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.001159/0.001159, allocations: 187 kB / 17.34 MB, free: 5.723 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.435/1.435, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.471/2.471, allocations: 437 MB / 0.7112 GB, free: 4.391 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001406/0.001406, allocations: 67.89 kB / 1.019 GB, free: 9.387 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7757/0.7771, allocations: 151.6 MB / 1.167 GB, free: 3.859 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale): time 0.00354/0.7807, allocations: 2.188 MB / 1.169 GB, free: 1.672 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.002652/0.7834, allocations: 1.689 MB / 1.171 GB, free: 15.96 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000372/0.7837, allocations: 15.94 kB / 1.171 GB, free: 15.95 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.0003197/0.7841, allocations: 87 kB / 1.171 GB, free: 15.86 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.0003496/0.7845, allocations: 95.17 kB / 1.171 GB, free: 15.77 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.001101/0.7856, allocations: 417.9 kB / 1.172 GB, free: 15.37 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0009146/0.7865, allocations: 0.7895 MB / 1.173 GB, free: 14.57 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005827/0.7871, allocations: 373.8 kB / 1.173 GB, free: 14.2 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003618/0.7875, allocations: 302.9 kB / 1.173 GB, free: 13.9 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003995/0.7879, allocations: 322.5 kB / 1.173 GB, free: 13.58 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0001466/0.788, allocations: 88 kB / 1.174 GB, free: 13.5 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001717/0.7882, allocations: 104 kB / 1.174 GB, free: 13.39 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0001261/0.7883, allocations: 155.5 kB / 1.174 GB, free: 13.24 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.000302/0.7886, allocations: 330.3 kB / 1.174 GB, free: 12.92 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0008668/0.7895, allocations: 0.9203 MB / 1.175 GB, free: 12 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.7895, allocations: 0 / 1.175 GB, free: 12 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.573e-06/0.7895, allocations: 0 / 1.175 GB, free: 12 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 2.515e-05/0.7896, allocations: 0 / 1.175 GB, free: 12 MB / 0.9044 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.001928/0.7915, allocations: 0.9754 MB / 1.176 GB, free: 10.96 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.826e-05/0.7916, allocations: 8.625 kB / 1.176 GB, free: 10.95 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001645/0.7917, allocations: 76.09 kB / 1.176 GB, free: 10.88 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000645/0.7924, allocations: 421.9 kB / 1.176 GB, free: 10.43 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.873e-05/0.7924, allocations: 49.69 kB / 1.176 GB, free: 10.38 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001091/0.7926, allocations: 60.38 kB / 1.177 GB, free: 10.32 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008983/0.7935, allocations: 0.5197 MB / 1.177 GB, free: 9.785 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.71e-05/0.7935, allocations: 4.172 kB / 1.177 GB, free: 9.781 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.556e-05/0.7935, allocations: 23.94 kB / 1.177 GB, free: 9.758 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.246e-05/0.7936, allocations: 19.94 kB / 1.177 GB, free: 9.738 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007385/0.7943, allocations: 373 kB / 1.177 GB, free: 9.375 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002575/0.7969, allocations: 1.646 MB / 1.179 GB, free: 7.664 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001011/0.7979, allocations: 0.901 MB / 1.18 GB, free: 6.645 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003992/0.7983, allocations: 246.7 kB / 1.18 GB, free: 6.398 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.921e-05/0.7984, allocations: 8.375 kB / 1.18 GB, free: 6.391 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004677/0.7988, allocations: 269.3 kB / 1.18 GB, free: 6.117 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=53): time 2.565e-06/0.7988, allocations: 0 / 1.18 GB, free: 6.117 MB / 0.9044 GB Notification: Performance of matching and sorting (n=53): time 0.00117/0.8, allocations: 0.5805 MB / 1.181 GB, free: 5.531 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.387e-05/0.8001, allocations: 111.2 kB / 1.181 GB, free: 5.398 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004523/0.8006, allocations: 405.5 kB / 1.181 GB, free: 4.996 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 6.438e-05/0.8006, allocations: 45.7 kB / 1.182 GB, free: 4.945 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002019/0.8008, allocations: 257 kB / 1.182 GB, free: 4.688 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001367/0.801, allocations: 173.5 kB / 1.182 GB, free: 4.516 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001901/0.8012, allocations: 118.2 kB / 1.182 GB, free: 4.395 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001538/0.8013, allocations: 362.7 kB / 1.182 GB, free: 4.031 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004771/0.8018, allocations: 211 kB / 1.183 GB, free: 3.82 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005392/0.8024, allocations: 311.4 kB / 1.183 GB, free: 3.48 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008237/0.8032, allocations: 495.5 kB / 1.183 GB, free: 2.965 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.8032, allocations: 0 / 1.183 GB, free: 2.965 MB / 0.9044 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001275/0.8045, allocations: 0.6729 MB / 1.184 GB, free: 2.277 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 5.675e-05/0.8046, allocations: 71.39 kB / 1.184 GB, free: 2.195 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.926e-06/0.8046, allocations: 4 kB / 1.184 GB, free: 2.191 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.759e-05/0.8046, allocations: 4 kB / 1.184 GB, free: 2.188 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004121/0.805, allocations: 91.83 kB / 1.184 GB, free: 2.098 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.85e-05/0.8051, allocations: 4 kB / 1.184 GB, free: 2.094 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005273/0.8056, allocations: 115.4 kB / 1.184 GB, free: 1.98 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.555e-05/0.8057, allocations: 27.98 kB / 1.184 GB, free: 1.953 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005227/0.8062, allocations: 317.1 kB / 1.185 GB, free: 1.641 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004385/0.8066, allocations: 291.3 kB / 1.185 GB, free: 1.32 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00063/0.8073, allocations: 443.6 kB / 1.185 GB, free: 0.8555 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.404e-06/0.8073, allocations: 4 kB / 1.185 GB, free: 0.8516 MB / 0.9044 GB Notification: Performance of matching and sorting (n=65) (initialization_lambda0): time 0.001057/0.8083, allocations: 0.6259 MB / 1.186 GB, free: 208 kB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 4.63e-05/0.8084, allocations: 65.75 kB / 1.186 GB, free: 132 kB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.262e-06/0.8084, allocations: 4 kB / 1.186 GB, free: 128 kB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.067e-05/0.8084, allocations: 11.92 kB / 1.186 GB, free: 116 kB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003324/0.8088, allocations: 83.84 kB / 1.186 GB, free: 32 kB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.993e-06/0.8088, allocations: 4 kB / 1.186 GB, free: 28 kB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005187/0.8093, allocations: 99.86 kB / 1.186 GB, free: 15.93 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.933e-05/0.8094, allocations: 27.98 kB / 1.186 GB, free: 15.9 MB / 0.92 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.0001854/0.8096, allocations: 222.3 kB / 1.186 GB, free: 15.68 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.835e-05/0.8096, allocations: 47.34 kB / 1.186 GB, free: 15.63 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008918/0.8105, allocations: 481.5 kB / 1.187 GB, free: 15.16 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.633e-06/0.8106, allocations: 4 kB / 1.187 GB, free: 15.16 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.8106, allocations: 0 / 1.187 GB, free: 15.16 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.195e-06/0.8106, allocations: 3.984 kB / 1.187 GB, free: 15.15 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00178/0.8124, allocations: 1.217 MB / 1.188 GB, free: 13.86 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.537e-06/0.8124, allocations: 0 / 1.188 GB, free: 13.86 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003743/0.8128, allocations: 83.83 kB / 1.188 GB, free: 13.78 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.087e-06/0.8128, allocations: 8.188 kB / 1.188 GB, free: 13.77 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.387e-05/0.8128, allocations: 16 kB / 1.188 GB, free: 13.75 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.008e-06/0.8128, allocations: 0 / 1.188 GB, free: 13.75 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.8128, allocations: 4 kB / 1.188 GB, free: 13.75 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001195/0.814, allocations: 0.7883 MB / 1.189 GB, free: 12.92 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001124/0.8142, allocations: 136.5 kB / 1.189 GB, free: 12.77 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.618e-05/0.8142, allocations: 12.2 kB / 1.189 GB, free: 12.76 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002453/0.8145, allocations: 31.98 kB / 1.189 GB, free: 12.73 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.512e-05/0.8146, allocations: 36.38 kB / 1.189 GB, free: 12.69 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.863e-05/0.8146, allocations: 16 kB / 1.189 GB, free: 12.68 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.000304/0.8149, allocations: 291.1 kB / 1.19 GB, free: 12.4 MB / 0.92 GB Notification: Performance of sort global known variables: time 2.4e-07/0.8149, allocations: 0 / 1.19 GB, free: 12.4 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0006869/0.8156, allocations: 227.2 kB / 1.19 GB, free: 12.18 MB / 0.92 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: 8 ($whenCondition6,$whenCondition5,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,pulse.booPul.y,booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0002095/0.8158, allocations: 131.1 kB / 1.19 GB, free: 12.04 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.001658/0.8175, allocations: 1.005 MB / 1.191 GB, free: 10.99 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.8175, allocations: 0.625 kB / 1.191 GB, free: 10.99 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0004012/0.8179, allocations: 230.3 kB / 1.191 GB, free: 10.76 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006452/0.8186, allocations: 113.7 kB / 1.191 GB, free: 10.65 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001651/0.8202, allocations: 1.016 MB / 1.192 GB, free: 9.586 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004199/0.8207, allocations: 0.8708 MB / 1.193 GB, free: 8.688 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001365/0.8208, allocations: 43.44 kB / 1.193 GB, free: 8.645 MB / 0.92 GB Notification: Performance of SimCode: time 5.11e-07/0.8208, allocations: 0 / 1.193 GB, free: 8.645 MB / 0.92 GB Notification: Performance of Templates: time 0.01032/0.8311, allocations: 6.566 MB / 1.199 GB, free: 2.098 MB / 0.92 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Validation_PIDWithResetScale.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches