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.007705/0.007705, allocations: 100.8 kB / 15.87 MB, free: 5.867 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.001748/0.001748, allocations: 193.8 kB / 16.79 MB, free: 5.809 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.461/1.461, allocations: 222.9 MB / 240.5 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.877/2.877, allocations: 461.9 MB / 0.7348 GB, free: 14.18 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001318/0.001318, allocations: 68.48 kB / 0.8991 GB, free: 37.01 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3128/0.3142, allocations: 157.4 MB / 1.053 GB, free: 8.258 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale): time 0.003455/0.3177, allocations: 2.115 MB / 1.055 GB, free: 6.133 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002416/0.3201, allocations: 1.595 MB / 1.056 GB, free: 4.523 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003965/0.3205, allocations: 11.94 kB / 1.056 GB, free: 4.512 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0003129/0.3208, allocations: 59.38 kB / 1.056 GB, free: 4.453 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0002892/0.3212, allocations: 51.64 kB / 1.057 GB, free: 4.402 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008157/0.322, allocations: 286.5 kB / 1.057 GB, free: 4.125 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0006794/0.3227, allocations: 0.6218 MB / 1.057 GB, free: 3.504 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004866/0.3232, allocations: 317.2 kB / 1.058 GB, free: 3.191 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002803/0.3235, allocations: 215 kB / 1.058 GB, free: 2.98 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000302/0.3238, allocations: 254.6 kB / 1.058 GB, free: 2.73 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.0001/0.3239, allocations: 36 kB / 1.058 GB, free: 2.695 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001396/0.324, allocations: 59.92 kB / 1.058 GB, free: 2.637 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 9.873e-05/0.3241, allocations: 111.5 kB / 1.058 GB, free: 2.527 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0002464/0.3244, allocations: 250.5 kB / 1.059 GB, free: 2.281 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0005142/0.3249, allocations: 0.6316 MB / 1.059 GB, free: 1.648 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.3249, allocations: 0 / 1.059 GB, free: 1.648 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.293e-06/0.3249, allocations: 0 / 1.059 GB, free: 1.648 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.727e-05/0.325, allocations: 0 / 1.059 GB, free: 1.648 MB / 0.8106 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.001772/0.3267, allocations: 0.9187 MB / 1.06 GB, free: 0.6719 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/0.3268, allocations: 8.031 kB / 1.06 GB, free: 0.6641 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001516/0.3269, allocations: 68.19 kB / 1.06 GB, free: 0.5977 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005359/0.3275, allocations: 400.5 kB / 1.061 GB, free: 168 kB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.52e-05/0.3275, allocations: 53.28 kB / 1.061 GB, free: 116 kB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.618e-05/0.3276, allocations: 52.38 kB / 1.061 GB, free: 64 kB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008864/0.3285, allocations: 0.4956 MB / 1.061 GB, free: 15.55 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.368e-05/0.3285, allocations: 192 / 1.061 GB, free: 15.55 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.199e-05/0.3286, allocations: 23.94 kB / 1.061 GB, free: 15.52 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.314e-05/0.3286, allocations: 12 kB / 1.061 GB, free: 15.51 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006764/0.3293, allocations: 343.8 kB / 1.061 GB, free: 15.18 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002513/0.3318, allocations: 1.57 MB / 1.063 GB, free: 13.55 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000954/0.3328, allocations: 0.8597 MB / 1.064 GB, free: 12.57 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003746/0.3332, allocations: 230.3 kB / 1.064 GB, free: 12.34 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.768e-05/0.3332, allocations: 7.984 kB / 1.064 GB, free: 12.34 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005119/0.3337, allocations: 241.6 kB / 1.064 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=47): time 2.245e-06/0.3338, allocations: 4 kB / 1.064 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of matching and sorting (n=47): time 0.001041/0.3348, allocations: 0.5219 MB / 1.065 GB, free: 11.56 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.874e-05/0.3349, allocations: 115.2 kB / 1.065 GB, free: 11.42 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004278/0.3353, allocations: 385.7 kB / 1.065 GB, free: 11.04 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 6.221e-05/0.3354, allocations: 37.7 kB / 1.065 GB, free: 11 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001776/0.3356, allocations: 256.9 kB / 1.066 GB, free: 10.74 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.000108/0.3357, allocations: 153.7 kB / 1.066 GB, free: 10.59 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001601/0.3359, allocations: 98.23 kB / 1.066 GB, free: 10.49 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001249/0.336, allocations: 354.8 kB / 1.066 GB, free: 10.13 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004182/0.3364, allocations: 187 kB / 1.066 GB, free: 9.945 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004495/0.3369, allocations: 284.1 kB / 1.067 GB, free: 9.633 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007296/0.3376, allocations: 435.4 kB / 1.067 GB, free: 9.176 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/0.3376, allocations: 0 / 1.067 GB, free: 9.176 MB / 0.8262 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001125/0.3388, allocations: 0.5713 MB / 1.068 GB, free: 8.594 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 4.466e-05/0.3388, allocations: 41.64 kB / 1.068 GB, free: 8.547 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.033e-06/0.3388, allocations: 0 / 1.068 GB, free: 8.547 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.668e-05/0.3388, allocations: 4 kB / 1.068 GB, free: 8.543 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004201/0.3393, allocations: 112.1 kB / 1.068 GB, free: 8.434 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.2e-05/0.3393, allocations: 4 kB / 1.068 GB, free: 8.43 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00042/0.3397, allocations: 83.45 kB / 1.068 GB, free: 8.348 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.98e-05/0.3398, allocations: 20 kB / 1.068 GB, free: 8.328 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004311/0.3402, allocations: 285.2 kB / 1.068 GB, free: 8.047 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003647/0.3406, allocations: 256.3 kB / 1.068 GB, free: 7.762 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005481/0.3412, allocations: 387.4 kB / 1.069 GB, free: 7.352 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.984e-06/0.3412, allocations: 3.938 kB / 1.069 GB, free: 7.348 MB / 0.8262 GB Notification: Performance of matching and sorting (n=60) (initialization_lambda0): time 0.0009003/0.3421, allocations: 0.5245 MB / 1.069 GB, free: 6.809 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.478e-05/0.3421, allocations: 41.69 kB / 1.069 GB, free: 6.762 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.3421, allocations: 7.938 kB / 1.069 GB, free: 6.754 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.264e-06/0.3421, allocations: 4 kB / 1.069 GB, free: 6.75 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003237/0.3425, allocations: 79.91 kB / 1.069 GB, free: 6.672 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.554e-06/0.3425, allocations: 11.94 kB / 1.069 GB, free: 6.66 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003846/0.3429, allocations: 75.66 kB / 1.069 GB, free: 6.586 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.584e-05/0.3429, allocations: 20 kB / 1.069 GB, free: 6.566 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.0001677/0.3431, allocations: 212.2 kB / 1.07 GB, free: 6.352 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.702e-05/0.3432, allocations: 47.38 kB / 1.07 GB, free: 6.305 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007798/0.344, allocations: 433.3 kB / 1.07 GB, free: 5.867 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.5e-06/0.344, allocations: 8 kB / 1.07 GB, free: 5.859 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.344, allocations: 0 / 1.07 GB, free: 5.859 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.1e-06/0.344, allocations: 0 / 1.07 GB, free: 5.859 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001607/0.3456, allocations: 1.136 MB / 1.071 GB, free: 4.648 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.688e-06/0.3456, allocations: 4 kB / 1.071 GB, free: 4.645 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003688/0.346, allocations: 79.83 kB / 1.071 GB, free: 4.566 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.634e-06/0.346, allocations: 7.938 kB / 1.071 GB, free: 4.559 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.222e-05/0.3461, allocations: 15.98 kB / 1.071 GB, free: 4.543 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.17e-06/0.3461, allocations: 8.188 kB / 1.071 GB, free: 4.535 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.879e-06/0.3461, allocations: 7.938 kB / 1.071 GB, free: 4.527 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00105/0.3471, allocations: 0.7169 MB / 1.072 GB, free: 3.777 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 9.99e-05/0.3472, allocations: 128.5 kB / 1.072 GB, free: 3.633 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.934e-05/0.3473, allocations: 15.98 kB / 1.072 GB, free: 3.617 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002228/0.3475, allocations: 23.98 kB / 1.072 GB, free: 3.594 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.965e-05/0.3476, allocations: 31.91 kB / 1.072 GB, free: 3.562 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.938e-05/0.3476, allocations: 15.98 kB / 1.072 GB, free: 3.547 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0002845/0.3479, allocations: 275.2 kB / 1.073 GB, free: 3.281 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.402e-06/0.3479, allocations: 0 / 1.073 GB, free: 3.281 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0006602/0.3486, allocations: 203.2 kB / 1.073 GB, free: 3.082 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.0002629/0.3489, allocations: 119.2 kB / 1.073 GB, free: 2.957 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001427/0.3503, allocations: 0.7835 MB / 1.074 GB, free: 2.145 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.486e-06/0.3503, allocations: 0 / 1.074 GB, free: 2.145 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0003378/0.3507, allocations: 205 kB / 1.074 GB, free: 1.945 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006351/0.3513, allocations: 91.27 kB / 1.074 GB, free: 1.852 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001657/0.353, allocations: 1.175 MB / 1.075 GB, free: 0.6211 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004283/0.3534, allocations: 0.8476 MB / 1.076 GB, free: 15.75 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001387/0.3536, allocations: 39.44 kB / 1.076 GB, free: 15.71 MB / 0.8419 GB Notification: Performance of SimCode: time 1.002e-06/0.3536, allocations: 4 kB / 1.076 GB, free: 15.7 MB / 0.8419 GB Notification: Performance of Templates: time 0.009328/0.3629, allocations: 5.909 MB / 1.082 GB, free: 9.816 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