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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.001154/0.001154, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001482/0.001482, allocations: 195.2 kB / 16.14 MB, free: 6.691 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.39/1.39, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.736/2.736, allocations: 437 MB / 0.7099 GB, free: 5.422 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001246/0.001246, allocations: 75.89 kB / 0.8686 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7047/0.7059, allocations: 151.6 MB / 1.017 GB, free: 2.809 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.PID): time 0.004968/0.7109, allocations: 3.61 MB / 1.02 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.003594/0.7146, allocations: 2.078 MB / 1.022 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006408/0.7152, allocations: 31.88 kB / 1.022 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0004321/0.7157, allocations: 130.8 kB / 1.022 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0003365/0.716, allocations: 87.3 kB / 1.022 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.001068/0.7171, allocations: 452.7 kB / 1.023 GB, free: 12.4 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.001/0.7181, allocations: 1.139 MB / 1.024 GB, free: 11.26 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009797/0.7191, allocations: 0.5759 MB / 1.025 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004672/0.7196, allocations: 374.1 kB / 1.025 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005578/0.7201, allocations: 433.6 kB / 1.025 GB, free: 9.867 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.0001344/0.7203, allocations: 64 kB / 1.025 GB, free: 9.805 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001899/0.7205, allocations: 75.98 kB / 1.025 GB, free: 9.73 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0002143/0.7207, allocations: 199 kB / 1.026 GB, free: 9.535 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0004696/0.7212, allocations: 445.2 kB / 1.026 GB, free: 9.098 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.001374/0.7226, allocations: 1.314 MB / 1.027 GB, free: 7.781 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 7.053e-06/0.7226, allocations: 3.938 kB / 1.027 GB, free: 7.777 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.542e-06/0.7226, allocations: 0 / 1.027 GB, free: 7.777 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.544e-05/0.7226, allocations: 0 / 1.027 GB, free: 7.777 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.002728/0.7253, allocations: 1.368 MB / 1.029 GB, free: 6.344 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 7.138e-05/0.7254, allocations: 8.031 kB / 1.029 GB, free: 6.336 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002418/0.7257, allocations: 119.5 kB / 1.029 GB, free: 6.219 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009681/0.7267, allocations: 0.5908 MB / 1.029 GB, free: 5.59 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.57e-05/0.7267, allocations: 74.36 kB / 1.029 GB, free: 5.516 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001428/0.7269, allocations: 96.28 kB / 1.03 GB, free: 5.422 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001715/0.7286, allocations: 0.8641 MB / 1.03 GB, free: 4.535 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.272e-05/0.7286, allocations: 192 / 1.03 GB, free: 4.535 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.026e-05/0.7287, allocations: 39.94 kB / 1.03 GB, free: 4.496 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.099e-05/0.7288, allocations: 20 kB / 1.03 GB, free: 4.477 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00138/0.7302, allocations: 0.6324 MB / 1.031 GB, free: 3.844 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005245/0.7354, allocations: 2.999 MB / 1.034 GB, free: 0.75 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001593/0.737, allocations: 0.6896 MB / 1.035 GB, free: 56 kB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000669/0.7377, allocations: 370.6 kB / 1.035 GB, free: 15.69 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 4.873e-05/0.7378, allocations: 12.55 kB / 1.035 GB, free: 15.68 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00087/0.7386, allocations: 343 kB / 1.035 GB, free: 15.33 MB / 0.795 GB Notification: Performance of pre-optimization done (n=68): time 3.036e-06/0.7387, allocations: 3.938 kB / 1.035 GB, free: 15.33 MB / 0.795 GB Notification: Performance of matching and sorting (n=68): time 0.00191/0.7406, allocations: 0.8299 MB / 1.036 GB, free: 14.49 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001864/0.7408, allocations: 188.5 kB / 1.036 GB, free: 14.27 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00101/0.7418, allocations: 0.6724 MB / 1.037 GB, free: 13.58 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 8.07e-05/0.7419, allocations: 41.7 kB / 1.037 GB, free: 13.54 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004791/0.7424, allocations: 439.8 kB / 1.037 GB, free: 13.1 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002286/0.7426, allocations: 228.6 kB / 1.038 GB, free: 12.87 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002636/0.7429, allocations: 146.6 kB / 1.038 GB, free: 12.72 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0002313/0.7431, allocations: 337.9 kB / 1.038 GB, free: 12.38 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006922/0.7438, allocations: 296.7 kB / 1.038 GB, free: 12.09 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007899/0.7446, allocations: 490 kB / 1.039 GB, free: 11.54 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001244/0.7459, allocations: 0.6731 MB / 1.04 GB, free: 10.82 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.516e-06/0.7459, allocations: 4 kB / 1.04 GB, free: 10.81 MB / 0.795 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001727/0.7476, allocations: 0.8769 MB / 1.04 GB, free: 9.922 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 5.401e-05/0.7477, allocations: 37.7 kB / 1.04 GB, free: 9.879 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.08e-05/0.7477, allocations: 4 kB / 1.04 GB, free: 9.875 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.071e-05/0.7477, allocations: 4 kB / 1.04 GB, free: 9.871 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006162/0.7483, allocations: 171.7 kB / 1.041 GB, free: 9.703 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.335e-05/0.7484, allocations: 4 kB / 1.041 GB, free: 9.699 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006237/0.749, allocations: 143 kB / 1.041 GB, free: 9.559 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.394e-05/0.7491, allocations: 35.98 kB / 1.041 GB, free: 9.523 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006812/0.7498, allocations: 397.9 kB / 1.041 GB, free: 9.133 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006038/0.7504, allocations: 426.2 kB / 1.042 GB, free: 8.648 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008519/0.7513, allocations: 0.56 MB / 1.042 GB, free: 8.047 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.264e-06/0.7513, allocations: 0 / 1.042 GB, free: 8.047 MB / 0.795 GB Notification: Performance of matching and sorting (n=92) (initialization_lambda0): time 0.00126/0.7525, allocations: 0.7596 MB / 1.043 GB, free: 7.273 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 3.813e-05/0.7526, allocations: 43.58 kB / 1.043 GB, free: 7.227 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.007e-06/0.7526, allocations: 0 / 1.043 GB, free: 7.227 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.017e-05/0.7526, allocations: 8 kB / 1.043 GB, free: 7.219 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005336/0.7531, allocations: 139.8 kB / 1.043 GB, free: 7.082 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.047e-05/0.7532, allocations: 8.375 kB / 1.043 GB, free: 7.074 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005464/0.7537, allocations: 119.3 kB / 1.043 GB, free: 6.957 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.626e-05/0.7538, allocations: 28 kB / 1.043 GB, free: 6.93 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.00024/0.754, allocations: 240.8 kB / 1.043 GB, free: 6.691 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001013/0.7541, allocations: 82.97 kB / 1.043 GB, free: 6.609 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001288/0.7554, allocations: 0.6516 MB / 1.044 GB, free: 5.945 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.793e-06/0.7554, allocations: 8 kB / 1.044 GB, free: 5.938 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/0.7555, allocations: 0 / 1.044 GB, free: 5.938 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.286e-06/0.7555, allocations: 3.984 kB / 1.044 GB, free: 5.934 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00248/0.7579, allocations: 1.663 MB / 1.046 GB, free: 4.184 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.36e-06/0.758, allocations: 8.219 kB / 1.046 GB, free: 4.176 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005256/0.7585, allocations: 135.8 kB / 1.046 GB, free: 4.043 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.033e-06/0.7585, allocations: 4 kB / 1.046 GB, free: 4.039 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.309e-05/0.7586, allocations: 23.98 kB / 1.046 GB, free: 4.016 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.254e-06/0.7586, allocations: 7.938 kB / 1.046 GB, free: 4.008 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.7586, allocations: 0 / 1.046 GB, free: 4.008 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001738/0.7603, allocations: 1.085 MB / 1.047 GB, free: 2.879 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001525/0.7605, allocations: 171.9 kB / 1.047 GB, free: 2.691 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.935e-05/0.7606, allocations: 23.94 kB / 1.047 GB, free: 2.668 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003522/0.7609, allocations: 47.95 kB / 1.047 GB, free: 2.621 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.115e-05/0.761, allocations: 40.5 kB / 1.047 GB, free: 2.582 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.725e-05/0.7611, allocations: 20 kB / 1.047 GB, free: 2.562 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0005639/0.7616, allocations: 487 kB / 1.048 GB, free: 2.094 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.51e-07/0.7617, allocations: 4 kB / 1.048 GB, free: 2.09 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0008998/0.7626, allocations: 318.8 kB / 1.048 GB, free: 1.777 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.0002504/0.7628, allocations: 131.1 kB / 1.048 GB, free: 1.637 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.002077/0.7649, allocations: 1.156 MB / 1.049 GB, free: 468 kB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.7649, allocations: 0 / 1.049 GB, free: 468 kB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0005327/0.7655, allocations: 303.3 kB / 1.05 GB, free: 164 kB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009708/0.7664, allocations: 175.5 kB / 1.05 GB, free: 15.98 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002496/0.769, allocations: 1.843 MB / 1.052 GB, free: 14.09 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005252/0.7695, allocations: 0.9785 MB / 1.053 GB, free: 13.08 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0003875/0.7699, allocations: 101.9 kB / 1.053 GB, free: 12.98 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001777/0.7701, allocations: 67.41 kB / 1.053 GB, free: 12.91 MB / 0.8106 GB Notification: Performance of SimCode: time 5.91e-07/0.7701, allocations: 4 kB / 1.053 GB, free: 12.91 MB / 0.8106 GB Notification: Performance of Templates: time 0.01667/0.7868, allocations: 9.214 MB / 1.062 GB, free: 3.785 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/jenkins/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