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 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.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.001354/0.001354, allocations: 105.4 kB / 15.98 MB, free: 6.352 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.00139/0.001391, allocations: 195.6 kB / 16.91 MB, free: 6.184 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.507/1.507, allocations: 222.9 MB / 240.6 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.862/2.862, allocations: 482.4 MB / 0.755 GB, free: 7.168 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001931/0.001931, allocations: 63.45 kB / 0.924 GB, free: 344 kB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7649/0.7668, allocations: 162.2 MB / 1.082 GB, free: 1.648 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale): time 0.003355/0.7702, allocations: 2.113 MB / 1.084 GB, free: 140 kB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002921/0.7732, allocations: 1.569 MB / 1.086 GB, free: 14.98 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003527/0.7735, allocations: 11.09 kB / 1.086 GB, free: 14.97 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0003091/0.7739, allocations: 57.27 kB / 1.086 GB, free: 14.94 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0002174/0.7741, allocations: 56.14 kB / 1.086 GB, free: 14.89 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009548/0.7751, allocations: 287 kB / 1.086 GB, free: 14.71 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0007948/0.7759, allocations: 0.6872 MB / 1.087 GB, free: 14.36 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005225/0.7764, allocations: 335.3 kB / 1.087 GB, free: 14.19 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003038/0.7768, allocations: 256.7 kB / 1.088 GB, free: 14.04 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003327/0.7771, allocations: 279.3 kB / 1.088 GB, free: 13.88 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0001062/0.7772, allocations: 76.31 kB / 1.088 GB, free: 13.88 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001624/0.7774, allocations: 93.83 kB / 1.088 GB, free: 13.87 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0001398/0.7775, allocations: 149 kB / 1.088 GB, free: 13.77 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0002842/0.7778, allocations: 297.7 kB / 1.089 GB, free: 13.55 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0007964/0.7786, allocations: 0.6309 MB / 1.089 GB, free: 13.37 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.7786, allocations: 0 / 1.089 GB, free: 13.37 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.675e-06/0.7786, allocations: 0.7969 kB / 1.089 GB, free: 13.37 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.126e-05/0.7787, allocations: 4 kB / 1.089 GB, free: 13.36 MB / 0.8419 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.001789/0.7805, allocations: 0.904 MB / 1.09 GB, free: 12.69 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.096e-05/0.7805, allocations: 10.05 kB / 1.09 GB, free: 12.69 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001457/0.7807, allocations: 71.09 kB / 1.09 GB, free: 12.65 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005559/0.7812, allocations: 400 kB / 1.09 GB, free: 12.33 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.459e-05/0.7813, allocations: 41.09 kB / 1.091 GB, free: 12.32 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001035/0.7814, allocations: 58.95 kB / 1.091 GB, free: 12.3 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009553/0.7824, allocations: 0.4913 MB / 1.091 GB, free: 12.08 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.788e-05/0.7824, allocations: 1.5 kB / 1.091 GB, free: 12.08 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.215e-05/0.7824, allocations: 26.05 kB / 1.091 GB, free: 12.06 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.98e-05/0.7825, allocations: 12.62 kB / 1.091 GB, free: 12.06 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007684/0.7832, allocations: 342.9 kB / 1.091 GB, free: 11.94 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002786/0.786, allocations: 1.571 MB / 1.093 GB, free: 11 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001132/0.7872, allocations: 0.8646 MB / 1.094 GB, free: 10.28 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004058/0.7876, allocations: 236.7 kB / 1.094 GB, free: 10.18 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 4.569e-05/0.7877, allocations: 9.766 kB / 1.094 GB, free: 10.18 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005416/0.7882, allocations: 240 kB / 1.094 GB, free: 10.07 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=47): time 2.395e-06/0.7882, allocations: 0 / 1.094 GB, free: 10.07 MB / 0.8419 GB Notification: Performance of matching and sorting (n=47): time 0.001205/0.7894, allocations: 0.5268 MB / 1.095 GB, free: 9.852 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.842e-05/0.7895, allocations: 118.8 kB / 1.095 GB, free: 9.719 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005377/0.7901, allocations: 390.7 kB / 1.095 GB, free: 9.516 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 5.958e-05/0.7901, allocations: 37.88 kB / 1.095 GB, free: 9.477 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002346/0.7904, allocations: 247.1 kB / 1.096 GB, free: 9.281 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001528/0.7905, allocations: 157.9 kB / 1.096 GB, free: 9.156 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001927/0.7907, allocations: 104.7 kB / 1.096 GB, free: 9.102 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0002046/0.791, allocations: 355.9 kB / 1.096 GB, free: 8.77 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004605/0.7914, allocations: 184.8 kB / 1.096 GB, free: 8.695 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005123/0.7919, allocations: 279.4 kB / 1.097 GB, free: 8.527 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008154/0.7928, allocations: 433.2 kB / 1.097 GB, free: 8.273 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.267e-06/0.7928, allocations: 0 / 1.097 GB, free: 8.273 MB / 0.8419 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001167/0.794, allocations: 0.5691 MB / 1.098 GB, free: 8.008 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 5.197e-05/0.794, allocations: 44.81 kB / 1.098 GB, free: 7.969 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.508e-06/0.794, allocations: 6.062 kB / 1.098 GB, free: 7.965 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.898e-05/0.7941, allocations: 3.25 kB / 1.098 GB, free: 7.965 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004113/0.7945, allocations: 99.34 kB / 1.098 GB, free: 7.953 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.293e-05/0.7945, allocations: 12.7 kB / 1.098 GB, free: 7.945 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004298/0.7949, allocations: 82.45 kB / 1.098 GB, free: 7.914 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.672e-05/0.795, allocations: 21.27 kB / 1.098 GB, free: 7.91 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004687/0.7955, allocations: 279.5 kB / 1.098 GB, free: 7.746 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004106/0.7959, allocations: 259.6 kB / 1.098 GB, free: 7.57 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006121/0.7965, allocations: 387.6 kB / 1.099 GB, free: 7.324 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.774e-06/0.7965, allocations: 0 / 1.099 GB, free: 7.324 MB / 0.8419 GB Notification: Performance of matching and sorting (n=60) (initialization_lambda0): time 0.000968/0.7975, allocations: 0.5151 MB / 1.099 GB, free: 7.078 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 4.25e-05/0.7976, allocations: 40.34 kB / 1.099 GB, free: 7.043 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.692e-06/0.7976, allocations: 14.56 kB / 1.099 GB, free: 7.031 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.74e-06/0.7976, allocations: 3.688 kB / 1.099 GB, free: 7.031 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003405/0.7979, allocations: 83.83 kB / 1.099 GB, free: 7.023 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.456e-06/0.7979, allocations: 4.422 kB / 1.099 GB, free: 7.023 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000396/0.7983, allocations: 70.69 kB / 1.099 GB, free: 7 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.18e-05/0.7984, allocations: 21.12 kB / 1.099 GB, free: 6.996 MB / 0.8419 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.0002168/0.7986, allocations: 215.9 kB / 1.1 GB, free: 6.789 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.663e-05/0.7987, allocations: 49.66 kB / 1.1 GB, free: 6.762 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008593/0.7996, allocations: 427.5 kB / 1.1 GB, free: 6.57 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.352e-06/0.7996, allocations: 4.531 kB / 1.1 GB, free: 6.57 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.662e-06/0.7996, allocations: 1.125 kB / 1.1 GB, free: 6.57 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.766e-06/0.7996, allocations: 7 kB / 1.1 GB, free: 6.566 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001858/0.8015, allocations: 1.142 MB / 1.101 GB, free: 5.879 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.239e-06/0.8015, allocations: 2.062 kB / 1.101 GB, free: 5.879 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003617/0.8019, allocations: 80.75 kB / 1.101 GB, free: 5.871 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.142e-06/0.8019, allocations: 3.406 kB / 1.101 GB, free: 5.871 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.172e-05/0.8019, allocations: 11.03 kB / 1.101 GB, free: 5.867 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.243e-06/0.8019, allocations: 8.125 kB / 1.101 GB, free: 5.863 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-06/0.8019, allocations: 6.25 kB / 1.101 GB, free: 5.859 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0012/0.8031, allocations: 0.7295 MB / 1.102 GB, free: 5.438 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001174/0.8033, allocations: 130.6 kB / 1.102 GB, free: 5.309 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.474e-05/0.8033, allocations: 13.05 kB / 1.102 GB, free: 5.301 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002355/0.8036, allocations: 25.22 kB / 1.102 GB, free: 5.293 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.618e-05/0.8037, allocations: 36.12 kB / 1.102 GB, free: 5.281 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.109e-05/0.8037, allocations: 18.31 kB / 1.102 GB, free: 5.277 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0003468/0.8041, allocations: 274 kB / 1.102 GB, free: 5.137 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8041, allocations: 0 / 1.102 GB, free: 5.137 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0007476/0.8048, allocations: 193.8 kB / 1.103 GB, free: 5.082 MB / 0.8419 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.000231/0.8051, allocations: 118.7 kB / 1.103 GB, free: 4.984 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001616/0.8067, allocations: 0.8069 MB / 1.104 GB, free: 4.605 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 4.409e-06/0.8067, allocations: 1.375 kB / 1.104 GB, free: 4.605 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003761/0.8071, allocations: 200.1 kB / 1.104 GB, free: 4.543 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006657/0.8078, allocations: 100.1 kB / 1.104 GB, free: 4.504 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00177/0.8095, allocations: 1.184 MB / 1.105 GB, free: 3.676 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005213/0.8101, allocations: 0.8521 MB / 1.106 GB, free: 2.965 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001393/0.8102, allocations: 40.69 kB / 1.106 GB, free: 2.957 MB / 0.8419 GB Notification: Performance of SimCode: time 3.61e-07/0.8102, allocations: 0 / 1.106 GB, free: 2.957 MB / 0.8419 GB Notification: Performance of Templates: time 0.01196/0.8222, allocations: 5.924 MB / 1.112 GB, free: 2.316 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=400 -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