Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001713/0.001713, allocations: 103.6 kB / 18.95 MB, free: 2.66 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.002109/0.002109, allocations: 217.3 kB / 22.24 MB, free: 5.258 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.698/1.698, allocations: 230.6 MB / 256 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.355/3.355, allocations: 0.49 GB / 0.7951 GB, free: 35.42 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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_12_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_12_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.00217/0.00217, allocations: 69.86 kB / 1.154 GB, free: 25.24 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4535/0.4556, allocations: 176.1 MB / 1.326 GB, free: 0.9609 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio): time 0.003496/0.4591, allocations: 1.099 MB / 1.327 GB, free: 15.87 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.002323/0.4615, allocations: 1.42 MB / 1.329 GB, free: 14.43 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001186/0.4616, allocations: 4 kB / 1.329 GB, free: 14.43 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 7.795e-05/0.4617, allocations: 19.73 kB / 1.329 GB, free: 14.41 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0001743/0.4618, allocations: 55.58 kB / 1.329 GB, free: 14.36 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.001022/0.4628, allocations: 384.5 kB / 1.329 GB, free: 13.99 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0005623/0.4634, allocations: 467 kB / 1.33 GB, free: 13.53 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001995/0.4636, allocations: 79.61 kB / 1.33 GB, free: 13.45 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002285/0.4638, allocations: 175.6 kB / 1.33 GB, free: 13.28 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002678/0.4641, allocations: 163.4 kB / 1.33 GB, free: 13.12 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 8.228e-05/0.4642, allocations: 48 kB / 1.33 GB, free: 13.07 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001115/0.4643, allocations: 52 kB / 1.33 GB, free: 13.02 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 6.281e-05/0.4644, allocations: 55.78 kB / 1.33 GB, free: 12.96 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001986/0.4646, allocations: 143.5 kB / 1.33 GB, free: 12.82 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0006044/0.4652, allocations: 0.4943 MB / 1.331 GB, free: 12.33 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.421e-06/0.4652, allocations: 0 / 1.331 GB, free: 12.33 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.643e-06/0.4652, allocations: 0 / 1.331 GB, free: 12.33 MB / 1.029 GB Notification: Performance of Transformations before backend: time 7.154e-06/0.4652, allocations: 4 kB / 1.331 GB, free: 12.32 MB / 1.029 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.001001/0.4662, allocations: 0.5529 MB / 1.331 GB, free: 11.72 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.538e-05/0.4662, allocations: 8.031 kB / 1.331 GB, free: 11.71 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000117/0.4663, allocations: 36.75 kB / 1.331 GB, free: 11.68 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003976/0.4667, allocations: 214.3 kB / 1.332 GB, free: 11.44 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.117e-05/0.4668, allocations: 24.36 kB / 1.332 GB, free: 11.42 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.988e-05/0.4668, allocations: 28.38 kB / 1.332 GB, free: 11.39 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000292/0.4671, allocations: 142 kB / 1.332 GB, free: 11.25 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.391e-05/0.4671, allocations: 3.938 kB / 1.332 GB, free: 11.24 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.079e-05/0.4672, allocations: 7.984 kB / 1.332 GB, free: 11.23 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.585e-06/0.4672, allocations: 11.94 kB / 1.332 GB, free: 11.22 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001765/0.4674, allocations: 87.91 kB / 1.332 GB, free: 11.14 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001025/0.4684, allocations: 0.5349 MB / 1.332 GB, free: 10.57 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002222/0.4686, allocations: 106.4 kB / 1.333 GB, free: 10.46 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.844e-05/0.4687, allocations: 48.83 kB / 1.333 GB, free: 10.41 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.208e-05/0.4687, allocations: 4 kB / 1.333 GB, free: 10.4 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003183/0.469, allocations: 145 kB / 1.333 GB, free: 10.25 MB / 1.029 GB Notification: Performance of pre-optimization done (n=20): time 1.703e-06/0.469, allocations: 4 kB / 1.333 GB, free: 10.25 MB / 1.029 GB Notification: Performance of matching and sorting (n=20): time 0.0005283/0.4696, allocations: 254.2 kB / 1.333 GB, free: 9.992 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.748e-05/0.4696, allocations: 63.39 kB / 1.333 GB, free: 9.918 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002423/0.4699, allocations: 218.7 kB / 1.333 GB, free: 9.691 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 5.234e-05/0.4699, allocations: 33.7 kB / 1.333 GB, free: 9.652 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001421/0.4701, allocations: 144.5 kB / 1.333 GB, free: 9.508 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 7.742e-05/0.4701, allocations: 55.53 kB / 1.333 GB, free: 9.453 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001762/0.4703, allocations: 85.66 kB / 1.334 GB, free: 9.363 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001642/0.4705, allocations: 326.8 kB / 1.334 GB, free: 9.035 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003434/0.4708, allocations: 229 kB / 1.334 GB, free: 8.793 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004109/0.4712, allocations: 318.1 kB / 1.334 GB, free: 8.434 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004649/0.4717, allocations: 342.3 kB / 1.335 GB, free: 8.047 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.4717, allocations: 3.938 kB / 1.335 GB, free: 8.043 MB / 1.029 GB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0009241/0.4726, allocations: 0.5854 MB / 1.335 GB, free: 7.414 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 9.741e-05/0.4727, allocations: 101.1 kB / 1.335 GB, free: 7.297 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.427e-06/0.4727, allocations: 7.938 kB / 1.335 GB, free: 7.289 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.903e-05/0.4727, allocations: 4 kB / 1.335 GB, free: 7.285 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000125/0.4729, allocations: 19.98 kB / 1.335 GB, free: 7.266 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.338e-05/0.4729, allocations: 11.92 kB / 1.335 GB, free: 7.254 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005006/0.4734, allocations: 88.05 kB / 1.336 GB, free: 7.168 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.873e-05/0.4734, allocations: 31.98 kB / 1.336 GB, free: 7.137 MB / 1.029 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.0001867/0.4736, allocations: 149.7 kB / 1.336 GB, free: 6.98 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.111e-05/0.4737, allocations: 19.86 kB / 1.336 GB, free: 6.961 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000383/0.474, allocations: 204.4 kB / 1.336 GB, free: 6.754 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.444e-06/0.4741, allocations: 4 kB / 1.336 GB, free: 6.75 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.4741, allocations: 0 / 1.336 GB, free: 6.75 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.213e-06/0.4741, allocations: 7.984 kB / 1.336 GB, free: 6.742 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006595/0.4747, allocations: 491.8 kB / 1.336 GB, free: 6.227 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.963e-06/0.4747, allocations: 0 / 1.336 GB, free: 6.227 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.818e-05/0.4748, allocations: 11.94 kB / 1.336 GB, free: 6.215 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.4748, allocations: 4 kB / 1.336 GB, free: 6.211 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.891e-05/0.4748, allocations: 7.984 kB / 1.336 GB, free: 6.203 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.539e-06/0.4748, allocations: 4 kB / 1.336 GB, free: 6.199 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.4748, allocations: 48 / 1.336 GB, free: 6.199 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003845/0.4752, allocations: 308.8 kB / 1.337 GB, free: 5.883 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 3.072e-05/0.4752, allocations: 15.91 kB / 1.337 GB, free: 5.867 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.37e-05/0.4753, allocations: 11.98 kB / 1.337 GB, free: 5.855 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.928e-05/0.4753, allocations: 4 kB / 1.337 GB, free: 5.852 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.254e-05/0.4754, allocations: 23.92 kB / 1.337 GB, free: 5.828 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.283e-05/0.4754, allocations: 4 kB / 1.337 GB, free: 5.824 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001512/0.4756, allocations: 152.4 kB / 1.337 GB, free: 5.676 MB / 1.029 GB Notification: Performance of sort global known variables: time 6.1e-08/0.4756, allocations: 0 / 1.337 GB, free: 5.676 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003599/0.4759, allocations: 71.88 kB / 1.337 GB, free: 5.605 MB / 1.029 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.000179/0.4761, allocations: 115.2 kB / 1.337 GB, free: 5.48 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0007399/0.4768, allocations: 0.503 MB / 1.338 GB, free: 4.922 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.4768, allocations: 0 / 1.338 GB, free: 4.922 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001221/0.477, allocations: 71.91 kB / 1.338 GB, free: 4.852 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004828/0.4775, allocations: 50.58 kB / 1.338 GB, free: 4.805 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000752/0.4782, allocations: 369.9 kB / 1.338 GB, free: 4.422 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00015/0.4784, allocations: 125.9 kB / 1.338 GB, free: 4.277 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 7.244e-05/0.4784, allocations: 25.95 kB / 1.338 GB, free: 4.25 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.204e-05/0.4785, allocations: 27.38 kB / 1.338 GB, free: 4.223 MB / 1.029 GB Notification: Performance of SimCode: time 3.01e-07/0.4785, allocations: 0 / 1.338 GB, free: 4.223 MB / 1.029 GB Notification: Performance of Templates: time 0.009361/0.4878, allocations: 4.626 MB / 1.343 GB, free: 15.72 MB / 1.045 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio.sim & ./Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_Utilities_PIDWithAutotuning_Relay_BaseClasses_Validation_HalfPeriodRatio.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.827796464785933]