Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PID.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.PID,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|limPID.u_s|limPID.u_m|limPID.y|noLimPID.y|limP.y|limPI.y|limPD.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PID") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.PID,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|limPID.u_s|limPID.u_m|limPID.y|noLimPID.y|limP.y|limPI.y|limPD.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PID") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001098/0.001098, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.002059/0.002059, allocations: 194.9 kB / 16.25 MB, free: 6.621 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.493/1.493, allocations: 222.9 MB / 239.9 MB, free: 4.547 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 3.101/3.101, allocations: 461.9 MB / 0.7343 GB, free: 14.99 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001599/0.001599, allocations: 72.38 kB / 0.8986 GB, free: 37.23 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3698/0.3715, allocations: 157.4 MB / 1.052 GB, free: 8.758 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.PID): time 0.006195/0.3777, allocations: 3.601 MB / 1.056 GB, free: 5.145 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.004294/0.382, allocations: 2.081 MB / 1.058 GB, free: 3.047 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001475/0.3835, allocations: 23.94 kB / 1.058 GB, free: 3.023 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0008067/0.3844, allocations: 122.8 kB / 1.058 GB, free: 2.902 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0008818/0.3853, allocations: 103.3 kB / 1.058 GB, free: 2.801 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.001632/0.387, allocations: 442.2 kB / 1.059 GB, free: 2.371 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.002204/0.3892, allocations: 1.256 MB / 1.06 GB, free: 1.113 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001193/0.3904, allocations: 0.5916 MB / 1.06 GB, free: 0.5039 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007171/0.3911, allocations: 454.2 kB / 1.061 GB, free: 60 kB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009192/0.392, allocations: 473.7 kB / 1.061 GB, free: 15.59 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0004183/0.3925, allocations: 132 kB / 1.061 GB, free: 15.46 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003873/0.3929, allocations: 140 kB / 1.061 GB, free: 15.32 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0002654/0.3931, allocations: 263 kB / 1.062 GB, free: 15.07 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0005908/0.3937, allocations: 0.5012 MB / 1.062 GB, free: 14.56 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.001564/0.3953, allocations: 1.371 MB / 1.064 GB, free: 13.19 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 7.013e-06/0.3953, allocations: 0 / 1.064 GB, free: 13.19 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.034e-06/0.3953, allocations: 0 / 1.064 GB, free: 13.19 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.501e-05/0.3954, allocations: 0 / 1.064 GB, free: 13.19 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: 218 * Number of variables: 218 Notification: Performance of Generate backend data structure: time 0.002452/0.3978, allocations: 1.372 MB / 1.065 GB, free: 11.75 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.407e-05/0.3979, allocations: 8.031 kB / 1.065 GB, free: 11.75 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000217/0.3981, allocations: 119.5 kB / 1.065 GB, free: 11.63 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008084/0.3989, allocations: 0.5948 MB / 1.066 GB, free: 11 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.571e-05/0.399, allocations: 70.38 kB / 1.066 GB, free: 10.93 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000125/0.3991, allocations: 92.28 kB / 1.066 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001581/0.4007, allocations: 0.868 MB / 1.067 GB, free: 9.945 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.146e-05/0.4008, allocations: 192 / 1.067 GB, free: 9.945 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.238e-05/0.4008, allocations: 43.94 kB / 1.067 GB, free: 9.902 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.291e-05/0.4009, allocations: 23.98 kB / 1.067 GB, free: 9.879 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00132/0.4022, allocations: 0.6363 MB / 1.067 GB, free: 9.242 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004355/0.4066, allocations: 2.984 MB / 1.07 GB, free: 6.16 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00143/0.408, allocations: 0.6831 MB / 1.071 GB, free: 5.465 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006835/0.4087, allocations: 382.6 kB / 1.071 GB, free: 5.086 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 5.426e-05/0.4088, allocations: 5.656 kB / 1.071 GB, free: 5.082 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008313/0.4096, allocations: 343 kB / 1.072 GB, free: 4.734 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=68): time 4.338e-06/0.4096, allocations: 4 kB / 1.072 GB, free: 4.73 MB / 0.8262 GB Notification: Performance of matching and sorting (n=68): time 0.00183/0.4115, allocations: 0.8337 MB / 1.072 GB, free: 3.891 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001189/0.4116, allocations: 192.5 kB / 1.073 GB, free: 3.66 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009427/0.4125, allocations: 0.6801 MB / 1.073 GB, free: 2.969 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 7.181e-05/0.4126, allocations: 45.69 kB / 1.073 GB, free: 2.918 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003634/0.413, allocations: 431.8 kB / 1.074 GB, free: 2.488 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001727/0.4132, allocations: 224.7 kB / 1.074 GB, free: 2.266 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002351/0.4134, allocations: 146.6 kB / 1.074 GB, free: 2.113 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001485/0.4136, allocations: 345.8 kB / 1.074 GB, free: 1.77 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006548/0.4142, allocations: 296.7 kB / 1.075 GB, free: 1.477 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007761/0.415, allocations: 482.2 kB / 1.075 GB, free: 0.9375 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00119/0.4162, allocations: 0.6809 MB / 1.076 GB, free: 212 kB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.4162, allocations: 0 / 1.076 GB, free: 212 kB / 0.8262 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.0017/0.4179, allocations: 0.8765 MB / 1.077 GB, free: 15.32 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 6.42e-05/0.418, allocations: 42.06 kB / 1.077 GB, free: 15.27 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.051e-05/0.418, allocations: 8 kB / 1.077 GB, free: 15.26 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.375e-05/0.418, allocations: 4 kB / 1.077 GB, free: 15.26 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006241/0.4187, allocations: 163.7 kB / 1.077 GB, free: 15.1 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.845e-05/0.4187, allocations: 4 kB / 1.077 GB, free: 15.09 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006587/0.4194, allocations: 143 kB / 1.077 GB, free: 14.95 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.966e-05/0.4195, allocations: 35.98 kB / 1.077 GB, free: 14.92 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006648/0.4201, allocations: 395.5 kB / 1.077 GB, free: 14.53 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005928/0.4207, allocations: 418.2 kB / 1.078 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008212/0.4216, allocations: 0.5678 MB / 1.078 GB, free: 13.45 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.329e-06/0.4216, allocations: 0 / 1.078 GB, free: 13.45 MB / 0.8419 GB Notification: Performance of matching and sorting (n=92) (initialization_lambda0): time 0.001287/0.4229, allocations: 0.756 MB / 1.079 GB, free: 12.68 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 3.448e-05/0.4229, allocations: 41.73 kB / 1.079 GB, free: 12.63 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.713e-06/0.4229, allocations: 3.984 kB / 1.079 GB, free: 12.62 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.005e-05/0.4229, allocations: 8 kB / 1.079 GB, free: 12.62 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005041/0.4234, allocations: 143.8 kB / 1.079 GB, free: 12.48 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.323e-05/0.4235, allocations: 4 kB / 1.079 GB, free: 12.47 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005904/0.4241, allocations: 119.3 kB / 1.079 GB, free: 12.36 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.109e-05/0.4241, allocations: 28 kB / 1.079 GB, free: 12.33 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,noLimPID.con1.y,limPI.con1.y,limPID.con1.y,pulse.booPul.y,$PRE.pulse.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 89 * 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.0002413/0.4244, allocations: 228 kB / 1.08 GB, free: 12.1 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001178/0.4245, allocations: 82.95 kB / 1.08 GB, free: 12.02 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001327/0.4258, allocations: 0.6555 MB / 1.08 GB, free: 11.34 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.382e-06/0.4259, allocations: 4 kB / 1.08 GB, free: 11.34 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.802e-06/0.4259, allocations: 0 / 1.08 GB, free: 11.34 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.16e-05/0.4259, allocations: 3.984 kB / 1.08 GB, free: 11.33 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002599/0.4285, allocations: 1.671 MB / 1.082 GB, free: 9.578 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.213e-06/0.4285, allocations: 7.938 kB / 1.082 GB, free: 9.57 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005476/0.4291, allocations: 135.8 kB / 1.082 GB, free: 9.438 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.056e-05/0.4291, allocations: 4 kB / 1.082 GB, free: 9.434 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.75e-05/0.4291, allocations: 19.98 kB / 1.082 GB, free: 9.414 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.544e-06/0.4292, allocations: 16.41 kB / 1.082 GB, free: 9.398 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.4292, allocations: 0 / 1.082 GB, free: 9.398 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001798/0.431, allocations: 1.089 MB / 1.083 GB, free: 8.266 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002337/0.4312, allocations: 179.8 kB / 1.083 GB, free: 8.07 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.014e-05/0.4313, allocations: 16 kB / 1.083 GB, free: 8.055 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003753/0.4317, allocations: 43.95 kB / 1.083 GB, free: 8.012 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.31e-05/0.4318, allocations: 48.5 kB / 1.083 GB, free: 7.961 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.947e-05/0.4318, allocations: 23.98 kB / 1.084 GB, free: 7.938 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0005776/0.4324, allocations: 479 kB / 1.084 GB, free: 7.477 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4324, allocations: 0 / 1.084 GB, free: 7.477 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0009391/0.4334, allocations: 322.8 kB / 1.084 GB, free: 7.16 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (limPID.I.y,limPID.D.x,limPI.I.y,limPD.D.x,noLimPID.I.y,noLimPID.D.x) * Number of discrete variables: 3 ($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 (68): * Single equations (assignments): 67 * 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.0002773/0.4337, allocations: 131.1 kB / 1.084 GB, free: 7.023 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.002464/0.4361, allocations: 1.178 MB / 1.086 GB, free: 5.824 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 5.871e-06/0.4362, allocations: 0 / 1.086 GB, free: 5.824 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0005804/0.4367, allocations: 304.4 kB / 1.086 GB, free: 5.527 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000988/0.4377, allocations: 186.8 kB / 1.086 GB, free: 5.344 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002751/0.4405, allocations: 1.849 MB / 1.088 GB, free: 3.438 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006786/0.4412, allocations: 0.9782 MB / 1.089 GB, free: 2.434 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0004044/0.4416, allocations: 101.9 kB / 1.089 GB, free: 2.332 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002006/0.4418, allocations: 67.41 kB / 1.089 GB, free: 2.266 MB / 0.8419 GB Notification: Performance of SimCode: time 5.31e-07/0.4418, allocations: 0 / 1.089 GB, free: 2.266 MB / 0.8419 GB Notification: Performance of Templates: time 0.01954/0.4614, allocations: 9.643 MB / 1.098 GB, free: 8.727 MB / 0.8575 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PID.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PID.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PID.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PID.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PID.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PID -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PID.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PID_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_PID.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches