Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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.PIDScale,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pidSca.y|pidNoSca.y|pla1.y|pla2.y|pidSca.u_s",fileNamePrefix="Buildings_10_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_10_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.001156/0.001156, allocations: 100.1 kB / 15.88 MB, free: 12 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.001637/0.001636, allocations: 200.7 kB / 16.79 MB, free: 6.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.386/1.386, allocations: 222.9 MB / 240.5 MB, free: 4.535 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.588/2.588, allocations: 437 MB / 0.7106 GB, free: 5.355 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001546/0.001546, allocations: 59.91 kB / 0.8692 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6717/0.6733, allocations: 151.6 MB / 1.017 GB, free: 2.777 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale): time 0.004596/0.6779, allocations: 2.113 MB / 1.019 GB, free: 0.6562 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.003457/0.6814, allocations: 1.591 MB / 1.021 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005537/0.682, allocations: 12 kB / 1.021 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.000378/0.6825, allocations: 63.38 kB / 1.021 GB, free: 14.97 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0003963/0.6829, allocations: 47.64 kB / 1.021 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009517/0.6838, allocations: 291.4 kB / 1.021 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0007459/0.6846, allocations: 0.6295 MB / 1.022 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004825/0.6851, allocations: 309.3 kB / 1.022 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002576/0.6854, allocations: 215 kB / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002593/0.6856, allocations: 258.5 kB / 1.023 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 7.227e-05/0.6857, allocations: 36 kB / 1.023 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00013/0.6858, allocations: 51.98 kB / 1.023 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 8.911e-05/0.6859, allocations: 111.5 kB / 1.023 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0002178/0.6862, allocations: 258.4 kB / 1.023 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0005291/0.6867, allocations: 0.6294 MB / 1.024 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 6.723e-06/0.6867, allocations: 0 / 1.024 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of FrontEnd: time 7.81e-07/0.6867, allocations: 3.938 kB / 1.024 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.003e-05/0.6867, allocations: 0 / 1.024 GB, free: 12.16 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: 124 * Number of variables: 124 Notification: Performance of Generate backend data structure: time 0.001586/0.6883, allocations: 0.8993 MB / 1.025 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.034e-05/0.6884, allocations: 12.02 kB / 1.025 GB, free: 11.19 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001277/0.6885, allocations: 68.19 kB / 1.025 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005086/0.689, allocations: 404.5 kB / 1.025 GB, free: 10.69 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.849e-05/0.6891, allocations: 41.38 kB / 1.025 GB, free: 10.65 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.387e-05/0.6892, allocations: 60.36 kB / 1.025 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008219/0.69, allocations: 499.5 kB / 1.026 GB, free: 10.09 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.429e-05/0.69, allocations: 4.125 kB / 1.026 GB, free: 10.08 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.541e-05/0.6901, allocations: 27.94 kB / 1.026 GB, free: 10.05 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.406e-05/0.6901, allocations: 15.98 kB / 1.026 GB, free: 10.04 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006601/0.6908, allocations: 339.8 kB / 1.026 GB, free: 9.711 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002436/0.6932, allocations: 1.566 MB / 1.028 GB, free: 8.082 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009475/0.6942, allocations: 0.87 MB / 1.028 GB, free: 7.094 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003658/0.6946, allocations: 231.4 kB / 1.029 GB, free: 6.867 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.782e-05/0.6946, allocations: 4 kB / 1.029 GB, free: 6.863 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005214/0.6951, allocations: 252.8 kB / 1.029 GB, free: 6.605 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=47): time 2.425e-06/0.6951, allocations: 0 / 1.029 GB, free: 6.605 MB / 0.7794 GB Notification: Performance of matching and sorting (n=47): time 0.001052/0.6962, allocations: 0.5181 MB / 1.029 GB, free: 6.082 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.13e-05/0.6963, allocations: 115.2 kB / 1.029 GB, free: 5.945 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004315/0.6967, allocations: 385.6 kB / 1.03 GB, free: 5.562 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 5.181e-05/0.6968, allocations: 45.7 kB / 1.03 GB, free: 5.512 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001979/0.697, allocations: 249 kB / 1.03 GB, free: 5.266 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001239/0.6971, allocations: 161.6 kB / 1.03 GB, free: 5.105 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001698/0.6973, allocations: 102.2 kB / 1.03 GB, free: 5 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001466/0.6975, allocations: 354.8 kB / 1.031 GB, free: 4.645 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004177/0.6979, allocations: 187 kB / 1.031 GB, free: 4.457 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004598/0.6983, allocations: 284.2 kB / 1.031 GB, free: 4.148 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007112/0.6991, allocations: 443.4 kB / 1.032 GB, free: 3.684 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.6991, allocations: 0 / 1.032 GB, free: 3.684 MB / 0.7794 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001068/0.7002, allocations: 0.5596 MB / 1.032 GB, free: 3.109 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 4.96e-05/0.7002, allocations: 45.62 kB / 1.032 GB, free: 3.059 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.134e-06/0.7002, allocations: 4.219 kB / 1.032 GB, free: 3.055 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.812e-05/0.7003, allocations: 4 kB / 1.032 GB, free: 3.051 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004055/0.7007, allocations: 99.83 kB / 1.032 GB, free: 2.953 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.213e-05/0.7007, allocations: 7.984 kB / 1.032 GB, free: 2.945 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004096/0.7011, allocations: 75.48 kB / 1.032 GB, free: 2.871 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.66e-05/0.7012, allocations: 23.98 kB / 1.032 GB, free: 2.848 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004554/0.7016, allocations: 285.2 kB / 1.033 GB, free: 2.562 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003734/0.702, allocations: 260.2 kB / 1.033 GB, free: 2.273 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005389/0.7025, allocations: 391.4 kB / 1.033 GB, free: 1.859 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.844e-06/0.7026, allocations: 0 / 1.033 GB, free: 1.859 MB / 0.7794 GB Notification: Performance of matching and sorting (n=60) (initialization_lambda0): time 0.0008564/0.7034, allocations: 0.5205 MB / 1.034 GB, free: 1.328 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 3.663e-05/0.7035, allocations: 37.7 kB / 1.034 GB, free: 1.285 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.336e-06/0.7035, allocations: 11.92 kB / 1.034 GB, free: 1.273 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.51e-06/0.7035, allocations: 4 kB / 1.034 GB, free: 1.27 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003162/0.7038, allocations: 83.84 kB / 1.034 GB, free: 1.188 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.553e-06/0.7038, allocations: 4 kB / 1.034 GB, free: 1.184 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000364/0.7042, allocations: 79.75 kB / 1.034 GB, free: 1.105 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.307e-05/0.7042, allocations: 20 kB / 1.034 GB, free: 1.086 MB / 0.7794 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.0001688/0.7044, allocations: 212.7 kB / 1.034 GB, free: 0.8711 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.735e-05/0.7045, allocations: 51.36 kB / 1.034 GB, free: 0.8203 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007773/0.7053, allocations: 429.5 kB / 1.035 GB, free: 400 kB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.472e-06/0.7053, allocations: 4 kB / 1.035 GB, free: 396 kB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.7053, allocations: 3.984 kB / 1.035 GB, free: 392 kB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.7053, allocations: 0 / 1.035 GB, free: 392 kB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00162/0.7069, allocations: 1.143 MB / 1.036 GB, free: 15.16 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.7069, allocations: 0 / 1.036 GB, free: 15.16 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003409/0.7073, allocations: 79.89 kB / 1.036 GB, free: 15.09 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.27e-06/0.7073, allocations: 8.188 kB / 1.036 GB, free: 15.08 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.902e-05/0.7073, allocations: 12 kB / 1.036 GB, free: 15.07 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.749e-06/0.7074, allocations: 4 kB / 1.036 GB, free: 15.06 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/0.7074, allocations: 7.875 kB / 1.036 GB, free: 15.05 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001096/0.7085, allocations: 0.7209 MB / 1.037 GB, free: 14.29 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 9.167e-05/0.7086, allocations: 128.5 kB / 1.037 GB, free: 14.15 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.572e-05/0.7086, allocations: 20.12 kB / 1.037 GB, free: 14.13 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002207/0.7089, allocations: 31.97 kB / 1.037 GB, free: 14.1 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.622e-05/0.7089, allocations: 35.62 kB / 1.037 GB, free: 14.06 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.768e-05/0.709, allocations: 15.98 kB / 1.037 GB, free: 14.05 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.000281/0.7093, allocations: 271.2 kB / 1.037 GB, free: 13.79 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7093, allocations: 0 / 1.037 GB, free: 13.79 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0007751/0.71, allocations: 203.3 kB / 1.037 GB, free: 13.59 MB / 0.795 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.00022/0.7103, allocations: 127.1 kB / 1.037 GB, free: 13.45 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.001311/0.7116, allocations: 0.7767 MB / 1.038 GB, free: 12.65 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.7116, allocations: 0 / 1.038 GB, free: 12.65 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0003416/0.712, allocations: 207.8 kB / 1.038 GB, free: 12.45 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006201/0.7126, allocations: 89.83 kB / 1.038 GB, free: 12.36 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001605/0.7142, allocations: 1.163 MB / 1.04 GB, free: 11.14 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004153/0.7146, allocations: 0.8515 MB / 1.04 GB, free: 10.26 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001275/0.7148, allocations: 43.42 kB / 1.04 GB, free: 10.22 MB / 0.795 GB Notification: Performance of SimCode: time 7.91e-07/0.7148, allocations: 0 / 1.04 GB, free: 10.22 MB / 0.795 GB Notification: Performance of Templates: time 0.008751/0.7235, allocations: 5.915 MB / 1.046 GB, free: 4.328 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Validation_PIDScale.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches