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.001007/0.001007, allocations: 92.16 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001266/0.001266, allocations: 172.9 kB / 16.92 MB, free: 6.652 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.355/1.355, allocations: 223.3 MB / 241 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.72/2.72, allocations: 462.6 MB / 0.737 GB, free: 15.59 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003688/0.0003687, allocations: 10.75 kB / 0.9034 GB, free: 36.31 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3912/0.3916, allocations: 159.6 MB / 1.059 GB, free: 4.961 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale): time 0.002347/0.394, allocations: 1.71 MB / 1.061 GB, free: 3.25 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002237/0.3963, allocations: 1.583 MB / 1.063 GB, free: 1.652 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002577/0.3966, allocations: 8 kB / 1.063 GB, free: 1.645 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0002277/0.3968, allocations: 63.38 kB / 1.063 GB, free: 1.582 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001858/0.397, allocations: 59.56 kB / 1.063 GB, free: 1.523 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.00073/0.3977, allocations: 282.7 kB / 1.063 GB, free: 1.25 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0005578/0.3983, allocations: 0.6178 MB / 1.064 GB, free: 0.6328 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004545/0.3988, allocations: 309.3 kB / 1.064 GB, free: 332 kB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000191/0.399, allocations: 175 kB / 1.064 GB, free: 156 kB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002435/0.3992, allocations: 202.7 kB / 1.064 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.973e-05/0.3993, allocations: 20 kB / 1.064 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 9.218e-05/0.3994, allocations: 31.98 kB / 1.064 GB, free: 15.9 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 8.301e-05/0.3995, allocations: 87.48 kB / 1.064 GB, free: 15.82 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001968/0.3997, allocations: 248.1 kB / 1.065 GB, free: 15.57 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004979/0.4002, allocations: 0.608 MB / 1.065 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 7.444e-06/0.4002, allocations: 4 kB / 1.065 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.884e-06/0.4002, allocations: 0 / 1.065 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 9.167e-06/0.4002, allocations: 0 / 1.065 GB, free: 14.95 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.001431/0.4017, allocations: 0.8137 MB / 1.066 GB, free: 14.08 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.273e-05/0.4017, allocations: 8.031 kB / 1.066 GB, free: 14.07 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001171/0.4018, allocations: 68.19 kB / 1.066 GB, free: 14.01 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005115/0.4023, allocations: 400.5 kB / 1.066 GB, free: 13.57 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.087e-05/0.4024, allocations: 45.38 kB / 1.066 GB, free: 13.53 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.415e-05/0.4025, allocations: 64.34 kB / 1.067 GB, free: 13.47 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008469/0.4034, allocations: 0.5034 MB / 1.067 GB, free: 12.95 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.609e-05/0.4034, allocations: 192 / 1.067 GB, free: 12.95 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.504e-05/0.4034, allocations: 23.94 kB / 1.067 GB, free: 12.92 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.374e-05/0.4035, allocations: 12 kB / 1.067 GB, free: 12.91 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007056/0.4042, allocations: 355.8 kB / 1.067 GB, free: 12.57 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002341/0.4065, allocations: 1.589 MB / 1.069 GB, free: 10.91 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009587/0.4075, allocations: 0.8818 MB / 1.07 GB, free: 9.914 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003895/0.4079, allocations: 244 kB / 1.07 GB, free: 9.676 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.77e-05/0.4079, allocations: 11.98 kB / 1.07 GB, free: 9.664 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005113/0.4085, allocations: 257.5 kB / 1.07 GB, free: 9.406 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=47): time 2.545e-06/0.4085, allocations: 0 / 1.07 GB, free: 9.406 MB / 0.8262 GB Notification: Performance of matching and sorting (n=47): time 0.001122/0.4096, allocations: 0.5415 MB / 1.071 GB, free: 8.855 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.568e-05/0.4097, allocations: 111.2 kB / 1.071 GB, free: 8.723 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004413/0.4101, allocations: 385.7 kB / 1.071 GB, free: 8.34 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 5.548e-05/0.4102, allocations: 41.64 kB / 1.071 GB, free: 8.293 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002155/0.4104, allocations: 256.8 kB / 1.072 GB, free: 8.039 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001296/0.4106, allocations: 161.7 kB / 1.072 GB, free: 7.879 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.929e-05/0.4106, allocations: 53.69 kB / 1.072 GB, free: 7.82 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000154/0.4108, allocations: 350.8 kB / 1.072 GB, free: 7.469 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000421/0.4112, allocations: 185 kB / 1.072 GB, free: 7.285 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004716/0.4117, allocations: 292.2 kB / 1.073 GB, free: 6.969 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007603/0.4125, allocations: 447.3 kB / 1.073 GB, free: 6.5 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.97e-06/0.4125, allocations: 4 kB / 1.073 GB, free: 6.496 MB / 0.8262 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001103/0.4136, allocations: 0.5793 MB / 1.074 GB, free: 5.906 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001299/0.4137, allocations: 186.4 kB / 1.074 GB, free: 5.691 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.356e-06/0.4138, allocations: 0 / 1.074 GB, free: 5.691 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.705e-05/0.4138, allocations: 4 kB / 1.074 GB, free: 5.688 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004158/0.4142, allocations: 99.88 kB / 1.074 GB, free: 5.59 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.253e-05/0.4142, allocations: 7.938 kB / 1.074 GB, free: 5.582 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004551/0.4147, allocations: 105.9 kB / 1.074 GB, free: 5.48 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.837e-05/0.4147, allocations: 20.05 kB / 1.074 GB, free: 5.461 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 7.784e-06/0.4148, allocations: 7.938 kB / 1.074 GB, free: 5.453 MB / 0.8262 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008164/0.4156, allocations: 483.9 kB / 1.074 GB, free: 4.973 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.4156, allocations: 7.938 kB / 1.074 GB, free: 4.965 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.244e-06/0.4156, allocations: 7.984 kB / 1.074 GB, free: 4.957 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003119/0.4159, allocations: 83.84 kB / 1.075 GB, free: 4.875 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.242e-06/0.4159, allocations: 4 kB / 1.075 GB, free: 4.871 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003862/0.4163, allocations: 91.7 kB / 1.075 GB, free: 4.781 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.519e-05/0.4164, allocations: 23.98 kB / 1.075 GB, free: 4.758 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,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.0002802/0.4167, allocations: 253 kB / 1.075 GB, free: 4.5 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.287e-05/0.4167, allocations: 43.44 kB / 1.075 GB, free: 4.457 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008934/0.4176, allocations: 453.3 kB / 1.075 GB, free: 4 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.806e-06/0.4177, allocations: 4 kB / 1.075 GB, free: 3.996 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.71e-06/0.4177, allocations: 4 kB / 1.075 GB, free: 3.992 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.534e-06/0.4177, allocations: 3.984 kB / 1.075 GB, free: 3.988 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001673/0.4194, allocations: 1.155 MB / 1.077 GB, free: 2.754 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.4194, allocations: 4.031 kB / 1.077 GB, free: 2.75 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003504/0.4197, allocations: 87.89 kB / 1.077 GB, free: 2.664 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.071e-06/0.4197, allocations: 4 kB / 1.077 GB, free: 2.66 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.617e-05/0.4198, allocations: 8 kB / 1.077 GB, free: 2.652 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.572e-06/0.4198, allocations: 7.938 kB / 1.077 GB, free: 2.645 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.4198, allocations: 0 / 1.077 GB, free: 2.645 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001142/0.4209, allocations: 0.752 MB / 1.077 GB, free: 1.855 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 8.803e-05/0.421, allocations: 132.6 kB / 1.077 GB, free: 1.707 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.143e-05/0.4211, allocations: 12.12 kB / 1.077 GB, free: 1.695 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002301/0.4213, allocations: 31.98 kB / 1.078 GB, free: 1.664 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.498e-05/0.4214, allocations: 39.83 kB / 1.078 GB, free: 1.625 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.59e-05/0.4214, allocations: 16 kB / 1.078 GB, free: 1.609 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.000294/0.4217, allocations: 271.2 kB / 1.078 GB, free: 1.348 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.8e-07/0.4218, allocations: 4 kB / 1.078 GB, free: 1.344 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0006186/0.4224, allocations: 195.3 kB / 1.078 GB, free: 1.152 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 (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.0002318/0.4226, allocations: 119.2 kB / 1.078 GB, free: 1.027 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001338/0.424, allocations: 0.803 MB / 1.079 GB, free: 204 kB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.06e-05/0.424, allocations: 0.875 kB / 1.079 GB, free: 204 kB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0003751/0.4244, allocations: 216.1 kB / 1.079 GB, free: 15.98 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007331/0.4251, allocations: 85.5 kB / 1.079 GB, free: 15.9 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001706/0.4268, allocations: 1.194 MB / 1.08 GB, free: 14.65 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000426/0.4273, allocations: 0.8476 MB / 1.081 GB, free: 13.77 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001292/0.4274, allocations: 39.44 kB / 1.081 GB, free: 13.73 MB / 0.8419 GB Notification: Performance of SimCode: time 5.21e-07/0.4274, allocations: 0 / 1.081 GB, free: 13.73 MB / 0.8419 GB Notification: Performance of Templates: time 0.009539/0.437, allocations: 5.853 MB / 1.087 GB, free: 7.906 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/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