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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.000935/0.0009351, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001211/0.001211, allocations: 168.7 kB / 15.95 MB, free: 204 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.48/1.48, allocations: 223.3 MB / 240 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.825/2.825, allocations: 462.6 MB / 0.736 GB, free: 15.77 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004162/0.0004163, allocations: 12.75 kB / 0.9022 GB, free: 36.62 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3636/0.364, allocations: 159.6 MB / 1.058 GB, free: 5.344 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale): time 0.00245/0.3665, allocations: 1.587 MB / 1.06 GB, free: 3.758 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002224/0.3687, allocations: 1.552 MB / 1.061 GB, free: 2.191 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002226/0.369, allocations: 8 kB / 1.061 GB, free: 2.184 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0002071/0.3692, allocations: 59.38 kB / 1.061 GB, free: 2.125 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001527/0.3694, allocations: 55.62 kB / 1.061 GB, free: 2.07 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.00066/0.37, allocations: 232.7 kB / 1.061 GB, free: 1.848 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0005176/0.3705, allocations: 0.5789 MB / 1.062 GB, free: 1.27 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003608/0.3709, allocations: 235.2 kB / 1.062 GB, free: 1.035 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001839/0.3711, allocations: 171.1 kB / 1.062 GB, free: 0.8672 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002152/0.3713, allocations: 198.8 kB / 1.063 GB, free: 0.6719 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 4.251e-05/0.3714, allocations: 16 kB / 1.063 GB, free: 0.6562 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 9.071e-05/0.3715, allocations: 39.97 kB / 1.063 GB, free: 0.6172 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 6.479e-05/0.3716, allocations: 71.62 kB / 1.063 GB, free: 0.5469 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001037/0.3717, allocations: 109.4 kB / 1.063 GB, free: 444 kB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0005548/0.3722, allocations: 0.6157 MB / 1.063 GB, free: 15.82 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 8.265e-06/0.3722, allocations: 0 / 1.063 GB, free: 15.82 MB / 0.8262 GB Notification: Performance of FrontEnd: time 4.027e-06/0.3722, allocations: 0 / 1.063 GB, free: 15.82 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.027e-05/0.3723, allocations: 0 / 1.063 GB, free: 15.82 MB / 0.8262 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.001399/0.3737, allocations: 0.8174 MB / 1.064 GB, free: 14.94 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.774e-05/0.3737, allocations: 11.97 kB / 1.064 GB, free: 14.93 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001336/0.3739, allocations: 67.25 kB / 1.064 GB, free: 14.86 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005457/0.3744, allocations: 395.6 kB / 1.065 GB, free: 14.43 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.728e-05/0.3745, allocations: 41 kB / 1.065 GB, free: 14.39 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001019/0.3746, allocations: 63.84 kB / 1.065 GB, free: 14.33 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008664/0.3755, allocations: 0.4912 MB / 1.065 GB, free: 13.82 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.835e-05/0.3755, allocations: 7.984 kB / 1.065 GB, free: 13.81 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.604e-05/0.3756, allocations: 24 kB / 1.065 GB, free: 13.79 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.651e-05/0.3756, allocations: 12 kB / 1.065 GB, free: 13.78 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000677/0.3763, allocations: 355.8 kB / 1.066 GB, free: 13.43 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002282/0.3785, allocations: 1.578 MB / 1.067 GB, free: 11.79 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009536/0.3795, allocations: 0.8856 MB / 1.068 GB, free: 10.79 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003658/0.3799, allocations: 233.7 kB / 1.068 GB, free: 10.56 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.535e-05/0.3799, allocations: 4.719 kB / 1.068 GB, free: 10.55 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005025/0.3804, allocations: 252.9 kB / 1.069 GB, free: 10.3 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=47): time 3.767e-06/0.3805, allocations: 0 / 1.069 GB, free: 10.3 MB / 0.8262 GB Notification: Performance of matching and sorting (n=47): time 0.00106/0.3815, allocations: 0.5454 MB / 1.069 GB, free: 9.746 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.934e-05/0.3816, allocations: 111.2 kB / 1.069 GB, free: 9.613 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004543/0.3821, allocations: 381.7 kB / 1.07 GB, free: 9.23 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 5.387e-05/0.3821, allocations: 37.7 kB / 1.07 GB, free: 9.188 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002443/0.3824, allocations: 260.9 kB / 1.07 GB, free: 8.93 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001451/0.3825, allocations: 157.7 kB / 1.07 GB, free: 8.773 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.124e-05/0.3826, allocations: 12 kB / 1.07 GB, free: 8.762 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001809/0.3828, allocations: 354.8 kB / 1.07 GB, free: 8.406 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003822/0.3832, allocations: 185 kB / 1.07 GB, free: 8.227 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00043/0.3836, allocations: 292.2 kB / 1.071 GB, free: 7.906 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000421/0.384, allocations: 234.5 kB / 1.071 GB, free: 7.672 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.384, allocations: 0 / 1.071 GB, free: 7.672 MB / 0.8262 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001017/0.3851, allocations: 0.5791 MB / 1.072 GB, free: 7.078 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001161/0.3852, allocations: 176.5 kB / 1.072 GB, free: 6.875 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.638e-06/0.3852, allocations: 4 kB / 1.072 GB, free: 6.871 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.563e-05/0.3852, allocations: 8 kB / 1.072 GB, free: 6.863 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000381/0.3856, allocations: 103.8 kB / 1.072 GB, free: 6.762 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.28e-05/0.3856, allocations: 7.984 kB / 1.072 GB, free: 6.754 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003679/0.386, allocations: 103.5 kB / 1.072 GB, free: 6.652 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.029e-05/0.3861, allocations: 20 kB / 1.072 GB, free: 6.633 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 7.514e-06/0.3861, allocations: 4 kB / 1.072 GB, free: 6.629 MB / 0.8262 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007627/0.3868, allocations: 484 kB / 1.072 GB, free: 6.148 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.795e-06/0.3869, allocations: 0 / 1.072 GB, free: 6.148 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.35e-06/0.3869, allocations: 4 kB / 1.072 GB, free: 6.145 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003048/0.3872, allocations: 91.84 kB / 1.073 GB, free: 6.055 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.264e-06/0.3872, allocations: 7.953 kB / 1.073 GB, free: 6.047 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003194/0.3875, allocations: 87.61 kB / 1.073 GB, free: 5.961 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.56e-05/0.3876, allocations: 24.03 kB / 1.073 GB, free: 5.938 MB / 0.8262 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.0002402/0.3878, allocations: 253 kB / 1.073 GB, free: 5.68 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.416e-05/0.3879, allocations: 51.38 kB / 1.073 GB, free: 5.629 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007763/0.3887, allocations: 445.4 kB / 1.073 GB, free: 5.191 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.201e-06/0.3887, allocations: 4 kB / 1.073 GB, free: 5.188 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.191e-06/0.3887, allocations: 3.953 kB / 1.073 GB, free: 5.184 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.474e-06/0.3887, allocations: 3.984 kB / 1.073 GB, free: 5.18 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00179/0.3905, allocations: 1.155 MB / 1.074 GB, free: 3.945 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.3905, allocations: 4 kB / 1.074 GB, free: 3.941 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003498/0.3909, allocations: 88.08 kB / 1.075 GB, free: 3.855 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.354e-06/0.3909, allocations: 4 kB / 1.075 GB, free: 3.852 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.336e-05/0.3909, allocations: 12 kB / 1.075 GB, free: 3.84 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.316e-06/0.3909, allocations: 4 kB / 1.075 GB, free: 3.836 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.035e-06/0.3909, allocations: 4 kB / 1.075 GB, free: 3.832 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001251/0.3922, allocations: 0.7558 MB / 1.075 GB, free: 3.035 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001158/0.3923, allocations: 124.6 kB / 1.075 GB, free: 2.895 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.615e-05/0.3924, allocations: 12 kB / 1.075 GB, free: 2.883 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002187/0.3926, allocations: 27.98 kB / 1.075 GB, free: 2.855 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.856e-05/0.3927, allocations: 35.89 kB / 1.076 GB, free: 2.82 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.966e-05/0.3928, allocations: 16 kB / 1.076 GB, free: 2.805 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0003145/0.3931, allocations: 271.2 kB / 1.076 GB, free: 2.539 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.9e-07/0.3931, allocations: 0 / 1.076 GB, free: 2.539 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000633/0.3937, allocations: 195.2 kB / 1.076 GB, free: 2.348 MB / 0.8262 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.0003206/0.394, allocations: 133.8 kB / 1.076 GB, free: 2.211 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001388/0.3954, allocations: 0.7877 MB / 1.077 GB, free: 1.398 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.3955, allocations: 4 kB / 1.077 GB, free: 1.395 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0003362/0.3958, allocations: 204.7 kB / 1.077 GB, free: 1.195 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006428/0.3965, allocations: 93.39 kB / 1.077 GB, free: 1.105 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001817/0.3983, allocations: 1.106 MB / 1.078 GB, free: 15.95 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004831/0.3988, allocations: 0.8515 MB / 1.079 GB, free: 15.07 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0002272/0.399, allocations: 51.38 kB / 1.079 GB, free: 15.02 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000109/0.3991, allocations: 39.44 kB / 1.079 GB, free: 14.98 MB / 0.8419 GB Notification: Performance of SimCode: time 3.31e-07/0.3991, allocations: 0 / 1.079 GB, free: 14.98 MB / 0.8419 GB Notification: Performance of Templates: time 0.01076/0.4099, allocations: 5.453 MB / 1.084 GB, free: 9.586 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=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/jenkins/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