Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.PIDWithResetScale,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pidSca.y|pidNoSca.y|pla1.y|pla2.y|pidSca.u_s|pidSca.trigger",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pidSca.y|pidNoSca.y|pla1.y|pla2.y|pidSca.u_s|pidSca.trigger",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008323/0.008324, allocations: 99.45 kB / 15.73 MB, free: 6.059 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.00133/0.00133, allocations: 192.3 kB / 16.67 MB, free: 5.969 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.443/1.443, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.669/2.669, allocations: 472.7 MB / 0.7453 GB, free: 0.5312 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001304/0.001304, allocations: 67.89 kB / 1.07 GB, free: 9.551 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.003/1.004, allocations: 159.9 MB / 1.226 GB, free: 13.72 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale): time 0.003533/1.008, allocations: 2.157 MB / 1.228 GB, free: 11.56 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.002589/1.01, allocations: 1.7 MB / 1.229 GB, free: 9.844 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002583/1.011, allocations: 8 kB / 1.229 GB, free: 9.836 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0002959/1.011, allocations: 90.98 kB / 1.23 GB, free: 9.746 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0002052/1.011, allocations: 87.19 kB / 1.23 GB, free: 9.66 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.001019/1.012, allocations: 417.2 kB / 1.23 GB, free: 9.258 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0006991/1.013, allocations: 0.7973 MB / 1.231 GB, free: 8.457 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005422/1.013, allocations: 373.8 kB / 1.231 GB, free: 8.082 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003052/1.014, allocations: 299 kB / 1.231 GB, free: 7.789 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003425/1.014, allocations: 322.5 kB / 1.232 GB, free: 7.473 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 0.0001106/1.014, allocations: 88 kB / 1.232 GB, free: 7.387 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001702/1.014, allocations: 107.9 kB / 1.232 GB, free: 7.281 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0001169/1.014, allocations: 155.5 kB / 1.232 GB, free: 7.129 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0003006/1.015, allocations: 334.3 kB / 1.232 GB, free: 6.801 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0008518/1.016, allocations: 0.9153 MB / 1.233 GB, free: 5.883 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/1.016, allocations: 0 / 1.233 GB, free: 5.883 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.303e-06/1.016, allocations: 0 / 1.233 GB, free: 5.883 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 9.598e-06/1.016, allocations: 0 / 1.233 GB, free: 5.883 MB / 0.9512 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 131 * Number of variables: 131 Notification: Performance of Generate backend data structure: time 0.001584/1.017, allocations: 1.002 MB / 1.234 GB, free: 4.812 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.774e-05/1.017, allocations: 8.031 kB / 1.234 GB, free: 4.805 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001362/1.017, allocations: 80.5 kB / 1.234 GB, free: 4.727 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005248/1.018, allocations: 414.3 kB / 1.235 GB, free: 4.285 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.496e-05/1.018, allocations: 49.69 kB / 1.235 GB, free: 4.238 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001008/1.018, allocations: 60.33 kB / 1.235 GB, free: 4.18 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008802/1.019, allocations: 0.5275 MB / 1.235 GB, free: 3.637 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.781e-05/1.019, allocations: 4.172 kB / 1.235 GB, free: 3.633 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.902e-05/1.019, allocations: 23.94 kB / 1.235 GB, free: 3.609 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.467e-05/1.019, allocations: 12 kB / 1.235 GB, free: 3.598 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007054/1.02, allocations: 373.1 kB / 1.236 GB, free: 3.234 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002404/1.022, allocations: 1.654 MB / 1.237 GB, free: 1.516 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009869/1.023, allocations: 0.9012 MB / 1.238 GB, free: 0.4961 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003947/1.024, allocations: 256.2 kB / 1.239 GB, free: 244 kB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 3.736e-05/1.024, allocations: 4.438 kB / 1.239 GB, free: 240 kB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004748/1.024, allocations: 273.3 kB / 1.239 GB, free: 15.96 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=53): time 2.244e-06/1.024, allocations: 0 / 1.239 GB, free: 15.96 MB / 0.9669 GB Notification: Performance of matching and sorting (n=53): time 0.00113/1.025, allocations: 0.5807 MB / 1.239 GB, free: 15.37 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.78e-05/1.025, allocations: 111.2 kB / 1.239 GB, free: 15.23 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004301/1.026, allocations: 401.7 kB / 1.24 GB, free: 14.84 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 5.497e-05/1.026, allocations: 41.69 kB / 1.24 GB, free: 14.79 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001897/1.026, allocations: 261.4 kB / 1.24 GB, free: 14.53 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001244/1.026, allocations: 186.4 kB / 1.24 GB, free: 14.34 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001907/1.026, allocations: 114.2 kB / 1.24 GB, free: 14.22 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001363/1.027, allocations: 366.7 kB / 1.241 GB, free: 13.86 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004847/1.027, allocations: 215 kB / 1.241 GB, free: 13.64 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005255/1.028, allocations: 311.3 kB / 1.241 GB, free: 13.31 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007951/1.028, allocations: 491.5 kB / 1.242 GB, free: 12.79 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/1.028, allocations: 4 kB / 1.242 GB, free: 12.79 MB / 0.9669 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001246/1.03, allocations: 0.6731 MB / 1.242 GB, free: 12.1 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 6.084e-05/1.03, allocations: 75.39 kB / 1.242 GB, free: 12.01 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/1.03, allocations: 0 / 1.242 GB, free: 12.01 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.934e-05/1.03, allocations: 4 kB / 1.242 GB, free: 12.01 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004074/1.03, allocations: 99.88 kB / 1.243 GB, free: 11.91 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.008e-05/1.03, allocations: 4 kB / 1.243 GB, free: 11.91 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005325/1.031, allocations: 103.6 kB / 1.243 GB, free: 11.8 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.673e-05/1.031, allocations: 31.92 kB / 1.243 GB, free: 11.77 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005002/1.031, allocations: 329 kB / 1.243 GB, free: 11.45 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004219/1.032, allocations: 279.4 kB / 1.243 GB, free: 11.14 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006067/1.032, allocations: 447.5 kB / 1.244 GB, free: 10.67 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.913e-06/1.032, allocations: 3.938 kB / 1.244 GB, free: 10.67 MB / 0.9669 GB Notification: Performance of matching and sorting (n=65) (initialization_lambda0): time 0.001023/1.033, allocations: 0.6301 MB / 1.244 GB, free: 10.02 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 4.859e-05/1.033, allocations: 75.39 kB / 1.244 GB, free: 9.934 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.846e-06/1.033, allocations: 0 / 1.244 GB, free: 9.934 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.821e-06/1.033, allocations: 4 kB / 1.244 GB, free: 9.93 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003145/1.034, allocations: 83.91 kB / 1.245 GB, free: 9.848 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.233e-06/1.034, allocations: 7.938 kB / 1.245 GB, free: 9.84 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004922/1.034, allocations: 103.8 kB / 1.245 GB, free: 9.738 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.687e-05/1.034, allocations: 23.98 kB / 1.245 GB, free: 9.715 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition6,booPul.y,$PRE.booPul.y,$whenCondition5,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,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 (61): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 2 * 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.0001933/1.035, allocations: 217.9 kB / 1.245 GB, free: 9.496 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.435e-05/1.035, allocations: 51.67 kB / 1.245 GB, free: 9.445 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000873/1.036, allocations: 477.5 kB / 1.245 GB, free: 8.973 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.041e-06/1.036, allocations: 4 kB / 1.245 GB, free: 8.969 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/1.036, allocations: 0 / 1.245 GB, free: 8.969 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.173e-06/1.036, allocations: 3.984 kB / 1.245 GB, free: 8.965 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001704/1.037, allocations: 1.221 MB / 1.247 GB, free: 7.668 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.115e-06/1.037, allocations: 4 kB / 1.247 GB, free: 7.664 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003695/1.038, allocations: 83.89 kB / 1.247 GB, free: 7.582 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.203e-06/1.038, allocations: 8.188 kB / 1.247 GB, free: 7.574 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.129e-05/1.038, allocations: 8 kB / 1.247 GB, free: 7.566 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.548e-06/1.038, allocations: 11.98 kB / 1.247 GB, free: 7.555 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.516e-06/1.038, allocations: 4 kB / 1.247 GB, free: 7.551 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001281/1.039, allocations: 0.7887 MB / 1.247 GB, free: 6.727 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000118/1.039, allocations: 136.7 kB / 1.248 GB, free: 6.574 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.918e-05/1.039, allocations: 16 kB / 1.248 GB, free: 6.559 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002365/1.039, allocations: 24.17 kB / 1.248 GB, free: 6.535 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.983e-05/1.04, allocations: 40.33 kB / 1.248 GB, free: 6.496 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.15e-05/1.04, allocations: 23.97 kB / 1.248 GB, free: 6.473 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0003292/1.04, allocations: 283.2 kB / 1.248 GB, free: 6.203 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.6e-07/1.04, allocations: 0 / 1.248 GB, free: 6.203 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0007142/1.041, allocations: 223.5 kB / 1.248 GB, free: 5.984 MB / 0.9669 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: 8 ($whenCondition6,$whenCondition5,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,pulse.booPul.y,booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0002605/1.041, allocations: 131.1 kB / 1.248 GB, free: 5.848 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.001902/1.043, allocations: 1.009 MB / 1.249 GB, free: 4.793 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 5.199e-06/1.043, allocations: 8.5 kB / 1.249 GB, free: 4.785 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0003699/1.043, allocations: 214.4 kB / 1.249 GB, free: 4.578 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006857/1.044, allocations: 110 kB / 1.25 GB, free: 4.473 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001715/1.046, allocations: 1.001 MB / 1.251 GB, free: 3.426 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004627/1.046, allocations: 0.8632 MB / 1.251 GB, free: 2.531 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.0002221/1.046, allocations: 52.16 kB / 1.251 GB, free: 2.477 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000114/1.046, allocations: 47.42 kB / 1.251 GB, free: 2.43 MB / 0.9669 GB Notification: Performance of SimCode: time 4.31e-07/1.046, allocations: 0 / 1.251 GB, free: 2.43 MB / 0.9669 GB Notification: Performance of Templates: time 0.01428/1.061, allocations: 7.514 MB / 1.259 GB, free: 10.98 MB / 0.9825 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_PIDWithResetScale.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches