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.001639/0.001639, allocations: 110.7 kB / 16.41 MB, free: 6.488 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.001823/0.001823, allocations: 187 kB / 17.34 MB, free: 5.762 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.432/1.432, 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.752/2.752, allocations: 461.9 MB / 0.7354 GB, free: 11.13 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00135/0.00135, allocations: 71.89 kB / 1.055 GB, free: 7.684 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7163/0.7177, allocations: 157.4 MB / 1.208 GB, free: 13.67 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale): time 0.003382/0.7211, allocations: 2.077 MB / 1.21 GB, free: 11.59 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.002573/0.7237, allocations: 1.606 MB / 1.212 GB, free: 9.973 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000399/0.7241, allocations: 11.94 kB / 1.212 GB, free: 9.961 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0003107/0.7245, allocations: 91.05 kB / 1.212 GB, free: 9.871 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0003301/0.7248, allocations: 79.19 kB / 1.212 GB, free: 9.793 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009021/0.7257, allocations: 322.8 kB / 1.213 GB, free: 9.48 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0008284/0.7266, allocations: 0.6959 MB / 1.213 GB, free: 8.781 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000518/0.7271, allocations: 325.3 kB / 1.214 GB, free: 8.461 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003395/0.7275, allocations: 259 kB / 1.214 GB, free: 8.207 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003579/0.7278, allocations: 282.6 kB / 1.214 GB, free: 7.93 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.0001493/0.728, allocations: 76 kB / 1.214 GB, free: 7.855 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001645/0.7282, allocations: 95.92 kB / 1.214 GB, free: 7.762 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001259/0.7283, allocations: 143.5 kB / 1.214 GB, free: 7.621 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0002806/0.7286, allocations: 302.4 kB / 1.215 GB, free: 7.324 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0007887/0.7294, allocations: 0.8269 MB / 1.215 GB, free: 6.5 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.7294, allocations: 0 / 1.215 GB, free: 6.5 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.382e-06/0.7294, allocations: 4 kB / 1.215 GB, free: 6.496 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.976e-05/0.7294, allocations: 4 kB / 1.215 GB, free: 6.492 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.001702/0.7311, allocations: 0.8955 MB / 1.216 GB, free: 5.539 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.03e-05/0.7312, allocations: 8.031 kB / 1.216 GB, free: 5.531 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000146/0.7313, allocations: 68.09 kB / 1.216 GB, free: 5.465 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006174/0.732, allocations: 416.5 kB / 1.217 GB, free: 5.012 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.307e-05/0.732, allocations: 41.38 kB / 1.217 GB, free: 4.973 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.011e-05/0.7321, allocations: 56.31 kB / 1.217 GB, free: 4.918 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008723/0.733, allocations: 0.4917 MB / 1.217 GB, free: 4.414 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.257e-05/0.733, allocations: 4.188 kB / 1.217 GB, free: 4.41 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.512e-05/0.7331, allocations: 31.86 kB / 1.217 GB, free: 4.379 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.248e-05/0.7331, allocations: 12 kB / 1.217 GB, free: 4.367 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006892/0.7338, allocations: 339.8 kB / 1.218 GB, free: 4.035 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002472/0.7363, allocations: 1.554 MB / 1.219 GB, free: 2.422 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009364/0.7372, allocations: 0.8687 MB / 1.22 GB, free: 1.438 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003794/0.7376, allocations: 232.9 kB / 1.22 GB, free: 1.211 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 3.854e-05/0.7377, allocations: 4 kB / 1.22 GB, free: 1.207 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004393/0.7381, allocations: 248.8 kB / 1.221 GB, free: 0.9492 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=47): time 2.214e-06/0.7381, allocations: 0 / 1.221 GB, free: 0.9492 MB / 0.9356 GB Notification: Performance of matching and sorting (n=47): time 0.001061/0.7392, allocations: 0.5219 MB / 1.221 GB, free: 428 kB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.456e-05/0.7393, allocations: 111.2 kB / 1.221 GB, free: 292 kB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004329/0.7397, allocations: 393.5 kB / 1.222 GB, free: 15.89 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 5.728e-05/0.7398, allocations: 37.7 kB / 1.222 GB, free: 15.84 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002062/0.74, allocations: 253 kB / 1.222 GB, free: 15.59 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001146/0.7401, allocations: 157.7 kB / 1.222 GB, free: 15.44 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001621/0.7403, allocations: 102.1 kB / 1.222 GB, free: 15.33 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001318/0.7404, allocations: 350.8 kB / 1.222 GB, free: 14.98 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004194/0.7408, allocations: 187 kB / 1.223 GB, free: 14.79 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004664/0.7413, allocations: 292.1 kB / 1.223 GB, free: 14.48 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007472/0.7421, allocations: 427.4 kB / 1.223 GB, free: 14.03 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.7421, allocations: 4 kB / 1.223 GB, free: 14.02 MB / 0.9512 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001099/0.7432, allocations: 0.5712 MB / 1.224 GB, free: 13.44 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 4.342e-05/0.7432, allocations: 41.62 kB / 1.224 GB, free: 13.39 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/0.7433, allocations: 4.219 kB / 1.224 GB, free: 13.39 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.852e-05/0.7433, allocations: 8 kB / 1.224 GB, free: 13.38 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004197/0.7437, allocations: 95.83 kB / 1.224 GB, free: 13.29 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.163e-05/0.7437, allocations: 4 kB / 1.224 GB, free: 13.29 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000441/0.7442, allocations: 83.47 kB / 1.224 GB, free: 13.2 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.516e-05/0.7442, allocations: 19.98 kB / 1.224 GB, free: 13.18 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004425/0.7447, allocations: 285.2 kB / 1.224 GB, free: 12.9 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000375/0.7451, allocations: 260.3 kB / 1.225 GB, free: 12.61 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005457/0.7456, allocations: 387.4 kB / 1.225 GB, free: 12.2 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.514e-06/0.7456, allocations: 0 / 1.225 GB, free: 12.2 MB / 0.9512 GB Notification: Performance of matching and sorting (n=60) (initialization_lambda0): time 0.0009154/0.7466, allocations: 0.5244 MB / 1.226 GB, free: 11.66 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 3.513e-05/0.7466, allocations: 37.7 kB / 1.226 GB, free: 11.62 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.445e-06/0.7466, allocations: 7.938 kB / 1.226 GB, free: 11.61 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.123e-06/0.7466, allocations: 4.094 kB / 1.226 GB, free: 11.61 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003217/0.747, allocations: 87.89 kB / 1.226 GB, free: 11.52 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.927e-06/0.747, allocations: 7.938 kB / 1.226 GB, free: 11.52 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003924/0.7474, allocations: 79.84 kB / 1.226 GB, free: 11.44 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.613e-05/0.7474, allocations: 19.98 kB / 1.226 GB, free: 11.42 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.0001663/0.7476, allocations: 204.2 kB / 1.226 GB, free: 11.21 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.536e-05/0.7477, allocations: 51.31 kB / 1.226 GB, free: 11.16 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008561/0.7485, allocations: 437.3 kB / 1.226 GB, free: 10.72 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.932e-06/0.7485, allocations: 4 kB / 1.226 GB, free: 10.72 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.518e-06/0.7486, allocations: 0 / 1.226 GB, free: 10.72 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.484e-06/0.7486, allocations: 3.984 kB / 1.226 GB, free: 10.71 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001716/0.7503, allocations: 1.132 MB / 1.228 GB, free: 9.508 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.318e-06/0.7503, allocations: 0 / 1.228 GB, free: 9.508 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00036/0.7507, allocations: 83.84 kB / 1.228 GB, free: 9.426 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.482e-05/0.7507, allocations: 7.984 kB / 1.228 GB, free: 9.418 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.206e-05/0.7507, allocations: 15.94 kB / 1.228 GB, free: 9.402 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.641e-05/0.7508, allocations: 4 kB / 1.228 GB, free: 9.398 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.048e-06/0.7508, allocations: 8.125 kB / 1.228 GB, free: 9.391 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001207/0.752, allocations: 0.726 MB / 1.228 GB, free: 8.625 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001182/0.7521, allocations: 124.6 kB / 1.228 GB, free: 8.484 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.22e-05/0.7522, allocations: 16 kB / 1.228 GB, free: 8.469 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002318/0.7525, allocations: 15.98 kB / 1.228 GB, free: 8.453 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7e-05/0.7525, allocations: 39.89 kB / 1.229 GB, free: 8.414 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.716e-05/0.7526, allocations: 16 kB / 1.229 GB, free: 8.398 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.000306/0.7529, allocations: 275.2 kB / 1.229 GB, free: 8.133 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.31e-07/0.7529, allocations: 0 / 1.229 GB, free: 8.133 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0007073/0.7536, allocations: 195.3 kB / 1.229 GB, free: 7.941 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.0002322/0.7538, allocations: 127.1 kB / 1.229 GB, free: 7.809 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.00149/0.7553, allocations: 0.7835 MB / 1.23 GB, free: 7 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 4.008e-06/0.7554, allocations: 0 / 1.23 GB, free: 7 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0003732/0.7557, allocations: 201 kB / 1.23 GB, free: 6.805 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006455/0.7564, allocations: 103.4 kB / 1.23 GB, free: 6.707 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001587/0.758, allocations: 0.9592 MB / 1.231 GB, free: 5.695 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004295/0.7584, allocations: 0.8551 MB / 1.232 GB, free: 4.809 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001443/0.7586, allocations: 43.42 kB / 1.232 GB, free: 4.766 MB / 0.9512 GB Notification: Performance of SimCode: time 4.6e-07/0.7586, allocations: 0 / 1.232 GB, free: 4.766 MB / 0.9512 GB Notification: Performance of Templates: time 0.00991/0.7685, allocations: 5.973 MB / 1.238 GB, free: 14.82 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