Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.PIDScale,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pidSca.y|pidNoSca.y|pla1.y|pla2.y|pidSca.u_s",fileNamePrefix="Buildings_10_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_10_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.000944/0.0009439, allocations: 91.77 kB / 15.06 MB, free: 1.098 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.001013/0.001013, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.547/1.547, allocations: 223.3 MB / 240 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.859/2.859, allocations: 437.7 MB / 0.7117 GB, free: 7.113 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004262/0.000427, allocations: 12 kB / 0.8722 GB, free: 3.672 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8796/0.88, allocations: 153.8 MB / 1.022 GB, free: 44 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale): time 0.002276/0.8824, allocations: 1.586 MB / 1.024 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002522/0.8849, allocations: 1.545 MB / 1.025 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004419/0.8854, allocations: 11.94 kB / 1.025 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0002929/0.8857, allocations: 63.38 kB / 1.026 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0002579/0.886, allocations: 51.64 kB / 1.026 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008905/0.8869, allocations: 232.9 kB / 1.026 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0008035/0.8877, allocations: 0.575 MB / 1.026 GB, free: 11.97 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003868/0.8881, allocations: 239.2 kB / 1.027 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002299/0.8883, allocations: 171.1 kB / 1.027 GB, free: 11.56 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000231/0.8885, allocations: 194.9 kB / 1.027 GB, free: 11.37 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.799e-05/0.8886, allocations: 16 kB / 1.027 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 9.687e-05/0.8887, allocations: 39.92 kB / 1.027 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 8.26e-05/0.8888, allocations: 75.61 kB / 1.027 GB, free: 11.24 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001099/0.8889, allocations: 113.4 kB / 1.027 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0005518/0.8895, allocations: 0.6058 MB / 1.028 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.8895, allocations: 0 / 1.028 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.633e-06/0.8895, allocations: 0 / 1.028 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 7.464e-06/0.8895, allocations: 0 / 1.028 GB, free: 10.52 MB / 0.7794 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.001281/0.8908, allocations: 0.8135 MB / 1.029 GB, free: 9.652 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.981e-05/0.8908, allocations: 8.562 kB / 1.029 GB, free: 9.645 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001146/0.891, allocations: 79.22 kB / 1.029 GB, free: 9.566 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000474/0.8914, allocations: 391.5 kB / 1.029 GB, free: 9.148 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.734e-05/0.8915, allocations: 45 kB / 1.029 GB, free: 9.102 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.586e-05/0.8916, allocations: 55.91 kB / 1.029 GB, free: 9.047 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007933/0.8924, allocations: 0.495 MB / 1.03 GB, free: 8.535 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.551e-05/0.8924, allocations: 7.922 kB / 1.03 GB, free: 8.527 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.765e-05/0.8925, allocations: 28 kB / 1.03 GB, free: 8.5 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.342e-05/0.8925, allocations: 12 kB / 1.03 GB, free: 8.488 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006447/0.8931, allocations: 351.8 kB / 1.03 GB, free: 8.145 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0022/0.8953, allocations: 1.582 MB / 1.032 GB, free: 6.5 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009074/0.8963, allocations: 0.8897 MB / 1.032 GB, free: 5.492 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003538/0.8966, allocations: 234.1 kB / 1.033 GB, free: 5.262 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.418e-05/0.8967, allocations: 7.953 kB / 1.033 GB, free: 5.254 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004389/0.8971, allocations: 256.8 kB / 1.033 GB, free: 4.992 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=47): time 2.044e-06/0.8971, allocations: 0 / 1.033 GB, free: 4.992 MB / 0.7794 GB Notification: Performance of matching and sorting (n=47): time 0.0009972/0.8981, allocations: 0.5415 MB / 1.033 GB, free: 4.445 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.484e-05/0.8982, allocations: 115.2 kB / 1.034 GB, free: 4.309 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003952/0.8986, allocations: 389.5 kB / 1.034 GB, free: 3.918 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.785e-05/0.8987, allocations: 37.7 kB / 1.034 GB, free: 3.875 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001836/0.8989, allocations: 253 kB / 1.034 GB, free: 3.625 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001108/0.899, allocations: 161.6 kB / 1.034 GB, free: 3.465 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.819e-05/0.899, allocations: 12 kB / 1.034 GB, free: 3.453 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001393/0.8992, allocations: 354.8 kB / 1.035 GB, free: 3.098 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000369/0.8995, allocations: 181 kB / 1.035 GB, free: 2.922 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004326/0.9, allocations: 288.2 kB / 1.035 GB, free: 2.605 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004226/0.9004, allocations: 234.4 kB / 1.035 GB, free: 2.367 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.065e-06/0.9004, allocations: 0 / 1.035 GB, free: 2.367 MB / 0.7794 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001032/0.9015, allocations: 0.583 MB / 1.036 GB, free: 1.773 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001178/0.9016, allocations: 174.6 kB / 1.036 GB, free: 1.57 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.012e-05/0.9016, allocations: 7.984 kB / 1.036 GB, free: 1.562 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.854e-05/0.9016, allocations: 4 kB / 1.036 GB, free: 1.559 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003873/0.902, allocations: 103.8 kB / 1.036 GB, free: 1.457 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.644e-05/0.9021, allocations: 7.984 kB / 1.036 GB, free: 1.449 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003994/0.9025, allocations: 107.4 kB / 1.036 GB, free: 1.344 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.593e-05/0.9025, allocations: 20 kB / 1.036 GB, free: 1.324 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 8.666e-06/0.9025, allocations: 4 kB / 1.036 GB, free: 1.32 MB / 0.7794 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007805/0.9033, allocations: 472.1 kB / 1.037 GB, free: 0.8516 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.838e-06/0.9033, allocations: 4.031 kB / 1.037 GB, free: 0.8477 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.494e-06/0.9033, allocations: 4 kB / 1.037 GB, free: 0.8438 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002958/0.9036, allocations: 87.89 kB / 1.037 GB, free: 0.7578 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.787e-06/0.9037, allocations: 7.938 kB / 1.037 GB, free: 0.75 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003364/0.904, allocations: 91.5 kB / 1.037 GB, free: 0.6602 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.663e-05/0.9041, allocations: 23.98 kB / 1.037 GB, free: 0.6367 MB / 0.7794 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,$PRE.pulse.booPul.y,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002451/0.9043, allocations: 249.1 kB / 1.037 GB, free: 392 kB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.48e-05/0.9044, allocations: 43.53 kB / 1.037 GB, free: 348 kB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008044/0.9052, allocations: 449.2 kB / 1.038 GB, free: 15.89 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.783e-06/0.9052, allocations: 4 kB / 1.038 GB, free: 15.89 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.9052, allocations: 3.938 kB / 1.038 GB, free: 15.88 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.438e-06/0.9052, allocations: 7.938 kB / 1.038 GB, free: 15.88 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001667/0.9069, allocations: 1.155 MB / 1.039 GB, free: 14.64 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.9069, allocations: 4 kB / 1.039 GB, free: 14.64 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003441/0.9073, allocations: 92.02 kB / 1.039 GB, free: 14.55 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.817e-06/0.9073, allocations: 8 kB / 1.039 GB, free: 14.54 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.687e-05/0.9073, allocations: 8 kB / 1.039 GB, free: 14.53 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.268e-06/0.9073, allocations: 4 kB / 1.039 GB, free: 14.53 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.9073, allocations: 4 kB / 1.039 GB, free: 14.52 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001051/0.9084, allocations: 0.7404 MB / 1.04 GB, free: 13.75 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001117/0.9085, allocations: 136.4 kB / 1.04 GB, free: 13.59 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.177e-05/0.9086, allocations: 12 kB / 1.04 GB, free: 13.58 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002098/0.9088, allocations: 31.98 kB / 1.04 GB, free: 13.55 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.697e-05/0.9088, allocations: 35.73 kB / 1.04 GB, free: 13.52 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.607e-05/0.9089, allocations: 12 kB / 1.04 GB, free: 13.5 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0003065/0.9092, allocations: 271.2 kB / 1.04 GB, free: 13.24 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9092, allocations: 0 / 1.04 GB, free: 13.24 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0006342/0.9098, allocations: 191.3 kB / 1.04 GB, free: 13.05 MB / 0.795 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000216/0.9101, allocations: 139 kB / 1.04 GB, free: 12.91 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.001665/0.9117, allocations: 0.7918 MB / 1.041 GB, free: 12.09 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 6.051e-06/0.9118, allocations: 3.938 kB / 1.041 GB, free: 12.09 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0003493/0.9121, allocations: 200.7 kB / 1.041 GB, free: 11.89 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006376/0.9128, allocations: 92.58 kB / 1.042 GB, free: 11.8 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001781/0.9146, allocations: 1.11 MB / 1.043 GB, free: 10.65 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004897/0.9151, allocations: 0.8515 MB / 1.043 GB, free: 9.77 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0002281/0.9153, allocations: 55.36 kB / 1.043 GB, free: 9.715 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000106/0.9154, allocations: 43.44 kB / 1.044 GB, free: 9.672 MB / 0.795 GB Notification: Performance of SimCode: time 5.41e-07/0.9154, allocations: 0 / 1.044 GB, free: 9.672 MB / 0.795 GB Notification: Performance of Templates: time 0.01286/0.9283, allocations: 5.446 MB / 1.049 GB, free: 4.285 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Validation_PIDScale.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches