Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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.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_10_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_10_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.00111/0.00111, allocations: 91.92 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.001664/0.001664, allocations: 185.1 kB / 16.92 MB, free: 6.922 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.431/1.431, allocations: 223.3 MB / 241 MB, free: 5.266 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.69/2.69, allocations: 437.8 MB / 0.7128 GB, free: 7.035 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004395/0.0004397, allocations: 15.98 kB / 0.8735 GB, free: 3.309 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6649/0.6654, allocations: 153.8 MB / 1.024 GB, free: 52 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.PID): time 0.006619/0.672, allocations: 3.12 MB / 1.027 GB, free: 12.92 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.006055/0.6781, allocations: 2.082 MB / 1.029 GB, free: 10.82 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001037/0.6792, allocations: 19.94 kB / 1.029 GB, free: 10.8 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0006465/0.6799, allocations: 126.8 kB / 1.029 GB, free: 10.67 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0008505/0.6808, allocations: 95.28 kB / 1.029 GB, free: 10.58 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.001733/0.6825, allocations: 447.1 kB / 1.029 GB, free: 10.14 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.001937/0.6845, allocations: 1.135 MB / 1.031 GB, free: 9.008 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001494/0.686, allocations: 0.5564 MB / 1.031 GB, free: 8.43 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006141/0.6866, allocations: 302.1 kB / 1.031 GB, free: 8.133 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006945/0.6873, allocations: 349.7 kB / 1.032 GB, free: 7.789 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.0001599/0.6875, allocations: 32 kB / 1.032 GB, free: 7.758 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000218/0.6877, allocations: 51.92 kB / 1.032 GB, free: 7.707 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.000211/0.688, allocations: 143.1 kB / 1.032 GB, free: 7.566 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0005641/0.6886, allocations: 402.9 kB / 1.032 GB, free: 7.164 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.001579/0.6901, allocations: 1.058 MB / 1.033 GB, free: 6.105 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.6902, allocations: 0 / 1.033 GB, free: 6.105 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.575e-06/0.6902, allocations: 0 / 1.033 GB, free: 6.105 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.029e-05/0.6902, allocations: 0 / 1.033 GB, free: 6.105 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: 218 * Number of variables: 218 Notification: Performance of Generate backend data structure: time 0.004037/0.6943, allocations: 1.22 MB / 1.035 GB, free: 4.82 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.859e-05/0.6943, allocations: 8.031 kB / 1.035 GB, free: 4.812 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003737/0.6947, allocations: 119.5 kB / 1.035 GB, free: 4.695 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001438/0.6962, allocations: 0.5908 MB / 1.035 GB, free: 4.066 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001159/0.6963, allocations: 78.31 kB / 1.035 GB, free: 3.988 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002417/0.6966, allocations: 92.31 kB / 1.035 GB, free: 3.898 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00277/0.6994, allocations: 0.8797 MB / 1.036 GB, free: 2.996 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.084e-05/0.6994, allocations: 4.188 kB / 1.036 GB, free: 2.992 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001162/0.6995, allocations: 43.88 kB / 1.036 GB, free: 2.949 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.321e-05/0.6996, allocations: 24 kB / 1.036 GB, free: 2.926 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002765/0.7024, allocations: 0.6793 MB / 1.037 GB, free: 2.246 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00825/0.7106, allocations: 3.034 MB / 1.04 GB, free: 15.12 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003086/0.7137, allocations: 0.7378 MB / 1.041 GB, free: 14.37 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001393/0.7152, allocations: 394.6 kB / 1.041 GB, free: 13.98 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 6.116e-05/0.7153, allocations: 12.5 kB / 1.041 GB, free: 13.96 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001316/0.7166, allocations: 371 kB / 1.041 GB, free: 13.59 MB / 0.795 GB Notification: Performance of pre-optimization done (n=68): time 5.08e-06/0.7166, allocations: 0 / 1.041 GB, free: 13.59 MB / 0.795 GB Notification: Performance of matching and sorting (n=68): time 0.003672/0.7203, allocations: 0.8846 MB / 1.042 GB, free: 12.7 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001656/0.7205, allocations: 188.5 kB / 1.042 GB, free: 12.48 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001715/0.7222, allocations: 0.684 MB / 1.043 GB, free: 11.78 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 0.0001292/0.7224, allocations: 45.7 kB / 1.043 GB, free: 11.73 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006117/0.723, allocations: 432.8 kB / 1.044 GB, free: 11.3 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003217/0.7233, allocations: 228.7 kB / 1.044 GB, free: 11.07 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001757/0.7235, allocations: 69.67 kB / 1.044 GB, free: 11 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001819/0.7237, allocations: 337.9 kB / 1.044 GB, free: 10.66 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001404/0.7252, allocations: 309.8 kB / 1.045 GB, free: 10.36 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001599/0.7268, allocations: 0.4903 MB / 1.045 GB, free: 9.797 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00134/0.7281, allocations: 0.72 MB / 1.046 GB, free: 9.027 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.642e-06/0.7282, allocations: 0 / 1.046 GB, free: 9.027 MB / 0.795 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001836/0.73, allocations: 0.9236 MB / 1.047 GB, free: 8.09 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001409/0.7301, allocations: 207.6 kB / 1.047 GB, free: 7.84 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.083e-05/0.7302, allocations: 7.984 kB / 1.047 GB, free: 7.832 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.753e-05/0.7302, allocations: 4 kB / 1.047 GB, free: 7.828 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006616/0.7309, allocations: 175.7 kB / 1.047 GB, free: 7.656 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.912e-05/0.7309, allocations: 11.94 kB / 1.047 GB, free: 7.645 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007421/0.7316, allocations: 171 kB / 1.047 GB, free: 7.477 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.262e-05/0.7317, allocations: 35.98 kB / 1.047 GB, free: 7.441 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 8.926e-06/0.7317, allocations: 6.031 kB / 1.047 GB, free: 7.438 MB / 0.795 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001168/0.7329, allocations: 0.6806 MB / 1.048 GB, free: 6.75 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/0.7329, allocations: 4.359 kB / 1.048 GB, free: 6.746 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.045e-06/0.7329, allocations: 12 kB / 1.048 GB, free: 6.734 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004974/0.7334, allocations: 131.8 kB / 1.048 GB, free: 6.605 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.056e-05/0.7335, allocations: 7.984 kB / 1.048 GB, free: 6.598 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006428/0.7341, allocations: 139.1 kB / 1.048 GB, free: 6.461 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.632e-05/0.7342, allocations: 32 kB / 1.048 GB, free: 6.43 MB / 0.795 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.0004045/0.7346, allocations: 301.5 kB / 1.048 GB, free: 6.125 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001275/0.7347, allocations: 79.16 kB / 1.049 GB, free: 6.047 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001421/0.7361, allocations: 0.7022 MB / 1.049 GB, free: 5.336 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.004e-05/0.7362, allocations: 12 kB / 1.049 GB, free: 5.324 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/0.7362, allocations: 0 / 1.049 GB, free: 5.324 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.828e-06/0.7362, allocations: 3.984 kB / 1.049 GB, free: 5.32 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002654/0.7389, allocations: 1.706 MB / 1.051 GB, free: 3.527 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-06/0.7389, allocations: 0 / 1.051 GB, free: 3.527 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005638/0.7394, allocations: 143.8 kB / 1.051 GB, free: 3.387 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.093e-05/0.7395, allocations: 8.219 kB / 1.051 GB, free: 3.379 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.983e-05/0.7395, allocations: 24 kB / 1.051 GB, free: 3.355 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.693e-06/0.7395, allocations: 4 kB / 1.051 GB, free: 3.352 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.743e-06/0.7395, allocations: 8 kB / 1.051 GB, free: 3.344 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001958/0.7415, allocations: 1.159 MB / 1.052 GB, free: 2.137 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001715/0.7417, allocations: 160.1 kB / 1.052 GB, free: 1.961 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.225e-05/0.7418, allocations: 27.92 kB / 1.052 GB, free: 1.934 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004125/0.7422, allocations: 63.95 kB / 1.052 GB, free: 1.871 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.624e-05/0.7423, allocations: 40.45 kB / 1.052 GB, free: 1.832 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.724e-05/0.7423, allocations: 23.98 kB / 1.052 GB, free: 1.809 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0006084/0.743, allocations: 479 kB / 1.053 GB, free: 1.348 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.8e-07/0.743, allocations: 7.938 kB / 1.053 GB, free: 1.34 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0008915/0.7439, allocations: 330.6 kB / 1.053 GB, free: 1.016 MB / 0.795 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.0002314/0.7441, allocations: 127.1 kB / 1.053 GB, free: 0.8789 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.002198/0.7463, allocations: 1.195 MB / 1.055 GB, free: 15.66 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 6.672e-06/0.7463, allocations: 7.984 kB / 1.055 GB, free: 15.65 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0006305/0.747, allocations: 331.9 kB / 1.055 GB, free: 15.33 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001121/0.7481, allocations: 176.9 kB / 1.055 GB, free: 15.16 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002621/0.7507, allocations: 1.922 MB / 1.057 GB, free: 13.18 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005451/0.7513, allocations: 0.9785 MB / 1.058 GB, free: 12.17 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002077/0.7515, allocations: 71.41 kB / 1.058 GB, free: 12.1 MB / 0.8106 GB Notification: Performance of SimCode: time 3.1e-07/0.7515, allocations: 4 kB / 1.058 GB, free: 12.1 MB / 0.8106 GB Notification: Performance of Templates: time 0.01461/0.7661, allocations: 9.966 MB / 1.068 GB, free: 2.168 MB / 0.8106 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PID.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PID.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PID.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PID.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PID.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PID -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PID.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PID_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Validation_PID.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches