Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001774/0.001774, allocations: 79.73 kB / 19.76 MB, free: 1.871 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002006/0.002006, allocations: 159.5 kB / 23.01 MB, free: 4.602 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.487/1.487, allocations: 177.2 MB / 203.4 MB, free: 8.953 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.014/3.014, allocations: 394.2 MB / 0.6386 GB, free: 11.93 MB / 0.6075 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|tOn.y|tOff.y|halPerRat.rho",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio") translateModel(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|tOn.y|tOff.y|halPerRat.rho",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002157/0.002157, allocations: 63.89 kB / 1.009 GB, free: 14.48 MB / 0.9669 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.102/1.105, allocations: 181.8 MB / 1.187 GB, free: 16.24 MB / 1.076 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio): time 0.002629/1.107, allocations: 1.107 MB / 1.188 GB, free: 15.54 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.002129/1.109, allocations: 1.415 MB / 1.189 GB, free: 14.51 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002256/1.11, allocations: 10.28 kB / 1.189 GB, free: 14.5 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 9.025e-05/1.11, allocations: 18.98 kB / 1.189 GB, free: 14.48 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 0.0002566/1.11, allocations: 50.97 kB / 1.189 GB, free: 14.45 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.001156/1.111, allocations: 380.8 kB / 1.19 GB, free: 14.25 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 0.0007179/1.112, allocations: 460.2 kB / 1.19 GB, free: 14.02 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002159/1.112, allocations: 75.72 kB / 1.19 GB, free: 13.98 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003627/1.112, allocations: 178.8 kB / 1.19 GB, free: 13.89 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003832/1.113, allocations: 147.9 kB / 1.19 GB, free: 13.83 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 0.0001434/1.113, allocations: 50.16 kB / 1.19 GB, free: 13.82 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001858/1.113, allocations: 56.39 kB / 1.19 GB, free: 13.82 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 6.975e-05/1.113, allocations: 53.05 kB / 1.19 GB, free: 13.79 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 0.0002409/1.113, allocations: 146.5 kB / 1.191 GB, free: 13.71 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.0007614/1.114, allocations: 494.7 kB / 1.191 GB, free: 13.54 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/1.114, allocations: 4.688 kB / 1.191 GB, free: 13.53 MB / 1.076 GB Notification: Performance of FrontEnd: time 2.084e-06/1.114, allocations: 1.062 kB / 1.191 GB, free: 13.53 MB / 1.076 GB Notification: Performance of Transformations before backend: time 1.911e-05/1.114, allocations: 0 / 1.191 GB, free: 13.53 MB / 1.076 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 35 * Number of variables: 35 Notification: Performance of Generate backend data structure: time 0.001134/1.115, allocations: 0.5464 MB / 1.192 GB, free: 13.05 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 4.3e-05/1.115, allocations: 9.156 kB / 1.192 GB, free: 13.05 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001434/1.115, allocations: 36.14 kB / 1.192 GB, free: 13.04 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003909/1.116, allocations: 237.6 kB / 1.192 GB, free: 12.84 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.411e-05/1.116, allocations: 21.22 kB / 1.192 GB, free: 12.83 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.541e-05/1.116, allocations: 26.48 kB / 1.192 GB, free: 12.82 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002991/1.116, allocations: 140.8 kB / 1.192 GB, free: 12.75 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.223e-05/1.116, allocations: 3.938 kB / 1.192 GB, free: 12.75 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.988e-05/1.116, allocations: 11.44 kB / 1.192 GB, free: 12.74 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.037e-05/1.116, allocations: 3.5 kB / 1.192 GB, free: 12.74 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001878/1.116, allocations: 89.16 kB / 1.192 GB, free: 12.71 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001097/1.118, allocations: 0.5378 MB / 1.193 GB, free: 12.35 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002089/1.118, allocations: 101.2 kB / 1.193 GB, free: 12.29 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001043/1.118, allocations: 47.31 kB / 1.193 GB, free: 12.27 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 2.897e-05/1.118, allocations: 6.844 kB / 1.193 GB, free: 12.26 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003335/1.118, allocations: 145.6 kB / 1.193 GB, free: 12.18 MB / 1.076 GB Notification: Performance of pre-optimization done (n=20): time 2.144e-06/1.118, allocations: 0 / 1.193 GB, free: 12.18 MB / 1.076 GB Notification: Performance of matching and sorting (n=20): time 0.0006029/1.119, allocations: 252 kB / 1.193 GB, free: 12.08 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.401e-05/1.119, allocations: 56.48 kB / 1.193 GB, free: 12.02 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002631/1.119, allocations: 219.2 kB / 1.194 GB, free: 11.87 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 5.347e-05/1.119, allocations: 36.73 kB / 1.194 GB, free: 11.84 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001141/1.119, allocations: 150.6 kB / 1.194 GB, free: 11.71 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 5.353e-05/1.119, allocations: 47.69 kB / 1.194 GB, free: 11.67 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001952/1.12, allocations: 85.88 kB / 1.194 GB, free: 11.64 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 8.178e-05/1.12, allocations: 329.3 kB / 1.194 GB, free: 11.32 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003477/1.12, allocations: 222.9 kB / 1.194 GB, free: 11.17 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003596/1.12, allocations: 308.8 kB / 1.195 GB, free: 10.91 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004381/1.121, allocations: 339.7 kB / 1.195 GB, free: 10.64 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.541e-06/1.121, allocations: 3.938 kB / 1.195 GB, free: 10.63 MB / 1.076 GB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0009119/1.122, allocations: 0.5911 MB / 1.196 GB, free: 10.25 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 6.863e-05/1.122, allocations: 110 kB / 1.196 GB, free: 10.14 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.869e-06/1.122, allocations: 6.266 kB / 1.196 GB, free: 10.14 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.177e-05/1.122, allocations: 4.312 kB / 1.196 GB, free: 10.14 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001293/1.122, allocations: 28.14 kB / 1.196 GB, free: 10.13 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.283e-05/1.122, allocations: 8.281 kB / 1.196 GB, free: 10.13 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000627/1.123, allocations: 89.23 kB / 1.196 GB, free: 10.11 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.279e-05/1.123, allocations: 29.91 kB / 1.196 GB, free: 10.11 MB / 1.076 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 18 ($whenCondition6,$whenCondition7,$whenCondition4,$whenCondition5,$whenCondition2,$whenCondition3,halPerRat.tOffSam.y,$PRE.halPerRat.tOffSam.y,halPerRat.tOnSam.y,$PRE.halPerRat.tOnSam.y,tOnSig2.booPul.y,$PRE.tOnSig2.booPul.y,tOnSig1.booPul.y,$PRE.tOnSig1.booPul.y,tOff.booPul.y,$PRE.tOff.booPul.y,samTri.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 3 * 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.0001536/1.123, allocations: 157.9 kB / 1.196 GB, free: 9.965 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.481e-05/1.123, allocations: 16.77 kB / 1.196 GB, free: 9.957 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003523/1.123, allocations: 213.3 kB / 1.196 GB, free: 9.852 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/1.123, allocations: 2.188 kB / 1.196 GB, free: 9.852 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/1.123, allocations: 0.75 kB / 1.196 GB, free: 9.852 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/1.123, allocations: 1.609 kB / 1.196 GB, free: 9.852 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006218/1.124, allocations: 486.3 kB / 1.197 GB, free: 9.516 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/1.124, allocations: 1.344 kB / 1.197 GB, free: 9.516 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.673e-05/1.124, allocations: 16.73 kB / 1.197 GB, free: 9.512 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.19e-06/1.124, allocations: 1.094 kB / 1.197 GB, free: 9.512 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.843e-05/1.124, allocations: 7.609 kB / 1.197 GB, free: 9.508 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.717e-06/1.124, allocations: 0.875 kB / 1.197 GB, free: 9.508 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/1.124, allocations: 1.766 kB / 1.197 GB, free: 9.508 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003225/1.124, allocations: 297.5 kB / 1.197 GB, free: 9.312 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 4.1e-05/1.124, allocations: 23.03 kB / 1.197 GB, free: 9.297 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.066e-05/1.124, allocations: 6.297 kB / 1.197 GB, free: 9.293 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001096/1.124, allocations: 3.266 kB / 1.197 GB, free: 9.293 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.112e-05/1.125, allocations: 15.61 kB / 1.197 GB, free: 9.289 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.85e-05/1.125, allocations: 18.56 kB / 1.197 GB, free: 9.277 MB / 1.076 GB Notification: Performance of sorting global known variables: time 0.0001323/1.125, allocations: 150.1 kB / 1.197 GB, free: 9.18 MB / 1.076 GB Notification: Performance of sort global known variables: time 8e-08/1.125, allocations: 0 / 1.197 GB, free: 9.18 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0004061/1.125, allocations: 78.17 kB / 1.197 GB, free: 9.16 MB / 1.076 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 13 (samTri.y,$whenCondition6,$whenCondition7,$whenCondition4,$whenCondition5,$whenCondition2,$whenCondition3,$whenCondition1,halPerRat.tOnSam.y,halPerRat.tOffSam.y,tOnSig1.booPul.y,tOnSig2.booPul.y,tOff.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001416/1.125, allocations: 109 kB / 1.197 GB, free: 9.066 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0006245/1.126, allocations: 0.505 MB / 1.198 GB, free: 8.676 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/1.126, allocations: 1.719 kB / 1.198 GB, free: 8.676 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0001157/1.126, allocations: 69.12 kB / 1.198 GB, free: 8.652 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004926/1.126, allocations: 57.02 kB / 1.198 GB, free: 8.633 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006026/1.127, allocations: 374.7 kB / 1.198 GB, free: 8.391 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001173/1.127, allocations: 130 kB / 1.198 GB, free: 8.309 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 7.302e-05/1.127, allocations: 24.53 kB / 1.198 GB, free: 8.301 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.376e-05/1.127, allocations: 22 kB / 1.198 GB, free: 8.293 MB / 1.076 GB Notification: Performance of SimCode: time 3.01e-07/1.127, allocations: 0 / 1.198 GB, free: 8.293 MB / 1.076 GB Notification: Performance of Templates: time 0.01049/1.138, allocations: 4.422 MB / 1.203 GB, free: 7.77 MB / 1.076 GB " [Timeout remaining time 299] make -j1 -f Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio.sim & ./Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio -abortSlowSimulation -alarm=800 -s ida -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_Utilities_PIDWithAutotuning_Relay_BaseClasses_Validation_HalfPeriodRatio.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 9.5800577159971]