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.001647/0.001647, allocations: 104.3 kB / 19.7 MB, free: 2.156 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.002199/0.002199, allocations: 212.4 kB / 22.99 MB, free: 4.984 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.533/1.533, allocations: 230.6 MB / 256.8 MB, free: 7.781 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.234/3.234, allocations: 0.49 GB / 0.7959 GB, free: 35.57 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.002305/0.002305, allocations: 63.28 kB / 1.155 GB, free: 25.23 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3594/0.3617, allocations: 176.1 MB / 1.327 GB, free: 0.9531 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio): time 0.002812/0.3645, allocations: 1.1 MB / 1.328 GB, free: 15.86 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.002481/0.367, allocations: 1.428 MB / 1.33 GB, free: 14.42 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000193/0.3672, allocations: 4 kB / 1.33 GB, free: 14.41 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 8.05e-05/0.3673, allocations: 19.69 kB / 1.33 GB, free: 14.39 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0002555/0.3675, allocations: 55.58 kB / 1.33 GB, free: 14.34 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.001168/0.3687, allocations: 381.8 kB / 1.33 GB, free: 13.98 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.000665/0.3693, allocations: 463.2 kB / 1.33 GB, free: 13.52 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002128/0.3696, allocations: 75.59 kB / 1.331 GB, free: 13.45 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002901/0.3698, allocations: 179.5 kB / 1.331 GB, free: 13.27 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002521/0.3701, allocations: 163.4 kB / 1.331 GB, free: 13.11 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 7.514e-05/0.3702, allocations: 48 kB / 1.331 GB, free: 13.06 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00012/0.3703, allocations: 55.98 kB / 1.331 GB, free: 13.01 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 5.951e-05/0.3704, allocations: 55.72 kB / 1.331 GB, free: 12.95 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001862/0.3705, allocations: 147.5 kB / 1.331 GB, free: 12.81 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.000601/0.3711, allocations: 498.3 kB / 1.332 GB, free: 12.32 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/0.3711, allocations: 0 / 1.332 GB, free: 12.32 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.883e-06/0.3711, allocations: 0 / 1.332 GB, free: 12.32 MB / 1.029 GB Notification: Performance of Transformations before backend: time 7.835e-06/0.3712, allocations: 4 kB / 1.332 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.3722, allocations: 0.5529 MB / 1.332 GB, free: 11.71 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.62e-05/0.3722, allocations: 8.031 kB / 1.332 GB, free: 11.7 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001248/0.3723, allocations: 40.69 kB / 1.332 GB, free: 11.66 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003857/0.3727, allocations: 222.3 kB / 1.332 GB, free: 11.42 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.653e-05/0.3727, allocations: 20.38 kB / 1.332 GB, free: 11.4 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.99e-05/0.3728, allocations: 28.36 kB / 1.332 GB, free: 11.38 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000297/0.3731, allocations: 142 kB / 1.333 GB, free: 11.23 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.293e-05/0.3731, allocations: 3.938 kB / 1.333 GB, free: 11.23 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.228e-05/0.3731, allocations: 8 kB / 1.333 GB, free: 11.22 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.115e-06/0.3732, allocations: 4 kB / 1.333 GB, free: 11.21 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001743/0.3733, allocations: 87.95 kB / 1.333 GB, free: 11.13 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001023/0.3744, allocations: 0.5387 MB / 1.333 GB, free: 10.56 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002068/0.3746, allocations: 98.48 kB / 1.333 GB, free: 10.45 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.25e-05/0.3747, allocations: 56.83 kB / 1.333 GB, free: 10.39 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.245e-05/0.3747, allocations: 0 / 1.333 GB, free: 10.39 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003205/0.375, allocations: 145 kB / 1.334 GB, free: 10.24 MB / 1.029 GB Notification: Performance of pre-optimization done (n=20): time 1.643e-06/0.375, allocations: 3.938 kB / 1.334 GB, free: 10.24 MB / 1.029 GB Notification: Performance of matching and sorting (n=20): time 0.0005229/0.3755, allocations: 255 kB / 1.334 GB, free: 9.984 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.501e-05/0.3756, allocations: 59.41 kB / 1.334 GB, free: 9.914 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002328/0.3758, allocations: 214.7 kB / 1.334 GB, free: 9.691 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 6.749e-05/0.3759, allocations: 41.69 kB / 1.334 GB, free: 9.645 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001342/0.376, allocations: 148.5 kB / 1.334 GB, free: 9.496 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 6.231e-05/0.3761, allocations: 51.53 kB / 1.334 GB, free: 9.445 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000182/0.3763, allocations: 85.67 kB / 1.334 GB, free: 9.355 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001741/0.3764, allocations: 330.8 kB / 1.335 GB, free: 9.023 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003526/0.3768, allocations: 225 kB / 1.335 GB, free: 8.785 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004111/0.3772, allocations: 310.9 kB / 1.335 GB, free: 8.43 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004686/0.3777, allocations: 346.4 kB / 1.335 GB, free: 8.039 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.069e-06/0.3777, allocations: 3.938 kB / 1.335 GB, free: 8.035 MB / 1.029 GB Notification: Performance of matching and sorting (n=32) (initialization): time 0.001007/0.3787, allocations: 0.5893 MB / 1.336 GB, free: 7.402 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001163/0.3788, allocations: 111 kB / 1.336 GB, free: 7.277 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.476e-06/0.3788, allocations: 0 / 1.336 GB, free: 7.277 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.25e-05/0.3788, allocations: 4 kB / 1.336 GB, free: 7.273 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001527/0.379, allocations: 31.92 kB / 1.336 GB, free: 7.242 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.246e-06/0.379, allocations: 0 / 1.336 GB, free: 7.242 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005355/0.3795, allocations: 91.92 kB / 1.336 GB, free: 7.152 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.613e-05/0.3796, allocations: 23.98 kB / 1.336 GB, free: 7.129 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.0002171/0.3798, allocations: 153.7 kB / 1.336 GB, free: 6.969 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.369e-05/0.3798, allocations: 19.86 kB / 1.336 GB, free: 6.949 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004122/0.3802, allocations: 207.4 kB / 1.337 GB, free: 6.738 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.3803, allocations: 0 / 1.337 GB, free: 6.738 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.3803, allocations: 3.938 kB / 1.337 GB, free: 6.734 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.534e-06/0.3803, allocations: 4 kB / 1.337 GB, free: 6.73 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007134/0.381, allocations: 487.4 kB / 1.337 GB, free: 6.219 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.381, allocations: 0 / 1.337 GB, free: 6.219 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.996e-05/0.3811, allocations: 19.92 kB / 1.337 GB, free: 6.199 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.537e-06/0.3811, allocations: 0 / 1.337 GB, free: 6.199 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.943e-05/0.3811, allocations: 8 kB / 1.337 GB, free: 6.191 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.3811, allocations: 0 / 1.337 GB, free: 6.191 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.496e-06/0.3811, allocations: 3.984 kB / 1.337 GB, free: 6.188 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004001/0.3815, allocations: 292.8 kB / 1.337 GB, free: 5.887 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 3.349e-05/0.3815, allocations: 23.89 kB / 1.337 GB, free: 5.863 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.873e-05/0.3815, allocations: 0 / 1.337 GB, free: 5.863 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.469e-05/0.3816, allocations: 8 kB / 1.337 GB, free: 5.855 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.973e-05/0.3817, allocations: 23.86 kB / 1.338 GB, free: 5.832 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.709e-05/0.3817, allocations: 8 kB / 1.338 GB, free: 5.824 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001661/0.3819, allocations: 156.4 kB / 1.338 GB, free: 5.672 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.3819, allocations: 0 / 1.338 GB, free: 5.672 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003892/0.3823, allocations: 71.88 kB / 1.338 GB, free: 5.602 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.0002082/0.3825, allocations: 119.2 kB / 1.338 GB, free: 5.473 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0007546/0.3832, allocations: 0.4995 MB / 1.338 GB, free: 4.918 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.3832, allocations: 4.062 kB / 1.338 GB, free: 4.914 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001226/0.3833, allocations: 69.97 kB / 1.338 GB, free: 4.848 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005076/0.3839, allocations: 59.89 kB / 1.338 GB, free: 4.789 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006864/0.3845, allocations: 364.4 kB / 1.339 GB, free: 4.41 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001325/0.3847, allocations: 125.9 kB / 1.339 GB, free: 4.266 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 7.887e-05/0.3847, allocations: 34.06 kB / 1.339 GB, free: 4.23 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.918e-05/0.3848, allocations: 19.44 kB / 1.339 GB, free: 4.211 MB / 1.029 GB Notification: Performance of SimCode: time 4.11e-07/0.3848, allocations: 0 / 1.339 GB, free: 4.211 MB / 1.029 GB Notification: Performance of Templates: time 0.009161/0.394, allocations: 4.617 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 -s cvode -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/jenkins1/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.44348539999919]