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.001856/0.001856, allocations: 81.42 kB / 19.18 MB, free: 2.527 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.002321/0.002321, allocations: 164.9 kB / 22.46 MB, free: 5.359 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.527/1.527, allocations: 177.1 MB / 202.8 MB, free: 9.176 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.037/3.037, allocations: 389 MB / 0.633 GB, free: 0.9688 MB / 0.5919 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.1 (/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: Performance of FrontEnd - loaded program: time 3.006e-06/3.006e-06, allocations: 0 / 1 GB, free: 7.238 MB / 0.9512 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.157e-05/3.458e-05, allocations: 2.281 kB / 1 GB, free: 7.234 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio): time 0.002422/0.002456, allocations: 1.104 MB / 1.001 GB, free: 6.133 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.002144/0.004601, allocations: 1.419 MB / 1.003 GB, free: 4.699 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001133/0.004714, allocations: 11.88 kB / 1.003 GB, free: 4.688 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 5.659e-05/0.004771, allocations: 19.73 kB / 1.003 GB, free: 4.668 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0001758/0.004946, allocations: 59.58 kB / 1.003 GB, free: 4.609 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009678/0.005914, allocations: 379.6 kB / 1.003 GB, free: 4.246 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0005323/0.006447, allocations: 475 kB / 1.004 GB, free: 3.781 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001874/0.006634, allocations: 71.64 kB / 1.004 GB, free: 3.711 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003128/0.006947, allocations: 255.6 kB / 1.004 GB, free: 3.461 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000231/0.007178, allocations: 123.6 kB / 1.004 GB, free: 3.34 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 8.109e-05/0.007259, allocations: 48 kB / 1.004 GB, free: 3.293 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001278/0.007387, allocations: 59.97 kB / 1.004 GB, free: 3.234 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 5.994e-05/0.007447, allocations: 55.77 kB / 1.004 GB, free: 3.18 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0001746/0.007621, allocations: 131.8 kB / 1.004 GB, free: 3.051 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0006468/0.008268, allocations: 0.5415 MB / 1.005 GB, free: 2.508 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.008273, allocations: 0 / 1.005 GB, free: 2.508 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.383e-06/0.008275, allocations: 3.938 kB / 1.005 GB, free: 2.504 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 7.324e-06/0.008282, allocations: 0 / 1.005 GB, free: 2.504 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: 35 * Number of variables: 35 Notification: Performance of Generate backend data structure: time 0.0009331/0.009215, allocations: 0.5412 MB / 1.005 GB, free: 1.91 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.472e-05/0.00926, allocations: 15.98 kB / 1.005 GB, free: 1.895 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001033/0.009363, allocations: 32.78 kB / 1.005 GB, free: 1.863 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004098/0.009773, allocations: 233.1 kB / 1.006 GB, free: 1.609 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.618e-05/0.009809, allocations: 24.36 kB / 1.006 GB, free: 1.586 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.63e-05/0.009865, allocations: 32.38 kB / 1.006 GB, free: 1.555 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002817/0.01015, allocations: 138.7 kB / 1.006 GB, free: 1.414 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.232e-05/0.01016, allocations: 192 / 1.006 GB, free: 1.414 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.842e-05/0.01018, allocations: 4.375 kB / 1.006 GB, free: 1.41 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.548e-06/0.01019, allocations: 8.125 kB / 1.006 GB, free: 1.402 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001928/0.01038, allocations: 96.41 kB / 1.006 GB, free: 1.309 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001003/0.01138, allocations: 0.5388 MB / 1.006 GB, free: 0.7383 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000209/0.01159, allocations: 98.48 kB / 1.006 GB, free: 0.6328 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.059e-05/0.01168, allocations: 51.84 kB / 1.007 GB, free: 0.582 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.797e-05/0.01171, allocations: 8 kB / 1.007 GB, free: 0.5742 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003156/0.01203, allocations: 155.1 kB / 1.007 GB, free: 420 kB / 0.9512 GB Notification: Performance of pre-optimization done (n=20): time 1.523e-06/0.01203, allocations: 0 / 1.007 GB, free: 420 kB / 0.9512 GB Notification: Performance of matching and sorting (n=20): time 0.0005142/0.01254, allocations: 249.8 kB / 1.007 GB, free: 168 kB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.894e-05/0.0126, allocations: 59.39 kB / 1.007 GB, free: 96 kB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002462/0.01285, allocations: 211.2 kB / 1.007 GB, free: 15.88 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 6.276e-05/0.01291, allocations: 37.7 kB / 1.007 GB, free: 15.84 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001423/0.01305, allocations: 144.5 kB / 1.007 GB, free: 15.69 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 5.377e-05/0.01311, allocations: 51.59 kB / 1.007 GB, free: 15.64 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001641/0.01327, allocations: 85.67 kB / 1.007 GB, free: 15.55 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001562/0.01343, allocations: 334.8 kB / 1.008 GB, free: 15.21 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003437/0.01377, allocations: 221 kB / 1.008 GB, free: 14.98 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004036/0.01417, allocations: 306.9 kB / 1.008 GB, free: 14.63 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004566/0.01463, allocations: 334.3 kB / 1.009 GB, free: 14.25 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.079e-06/0.01464, allocations: 4 kB / 1.009 GB, free: 14.25 MB / 0.9669 GB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0009475/0.01558, allocations: 0.6008 MB / 1.009 GB, free: 13.6 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 9.602e-05/0.01568, allocations: 97.09 kB / 1.009 GB, free: 13.49 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/0.01569, allocations: 4 kB / 1.009 GB, free: 13.48 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.145e-05/0.01571, allocations: 4 kB / 1.009 GB, free: 13.48 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001254/0.01583, allocations: 28.17 kB / 1.009 GB, free: 13.45 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.116e-05/0.01585, allocations: 8 kB / 1.009 GB, free: 13.45 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000523/0.01637, allocations: 91.75 kB / 1.009 GB, free: 13.36 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.343e-05/0.01642, allocations: 19.98 kB / 1.009 GB, free: 13.34 MB / 0.9669 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.0001792/0.0166, allocations: 155.1 kB / 1.01 GB, free: 13.18 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.133e-05/0.01663, allocations: 23.84 kB / 1.01 GB, free: 13.15 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003848/0.01702, allocations: 207.4 kB / 1.01 GB, free: 12.94 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.072e-06/0.01702, allocations: 4 kB / 1.01 GB, free: 12.93 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.758e-06/0.01703, allocations: 0 / 1.01 GB, free: 12.93 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.01703, allocations: 0 / 1.01 GB, free: 12.93 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006443/0.01768, allocations: 489.9 kB / 1.01 GB, free: 12.42 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.01768, allocations: 0 / 1.01 GB, free: 12.42 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.523e-05/0.01774, allocations: 15.98 kB / 1.01 GB, free: 12.4 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.031e-06/0.01775, allocations: 3.984 kB / 1.01 GB, free: 12.4 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.502e-05/0.01776, allocations: 3.984 kB / 1.01 GB, free: 12.39 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.01777, allocations: 11.94 kB / 1.01 GB, free: 12.38 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.01777, allocations: 0 / 1.01 GB, free: 12.38 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003689/0.01814, allocations: 301.7 kB / 1.011 GB, free: 12.07 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 3.473e-05/0.01817, allocations: 19.84 kB / 1.011 GB, free: 12.05 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.559e-05/0.0182, allocations: 0 / 1.011 GB, free: 12.05 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.952e-05/0.01828, allocations: 7.984 kB / 1.011 GB, free: 12.05 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.02e-05/0.01833, allocations: 19.92 kB / 1.011 GB, free: 12.03 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.735e-05/0.01834, allocations: 7.984 kB / 1.011 GB, free: 12.02 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0001472/0.01849, allocations: 155 kB / 1.011 GB, free: 11.87 MB / 0.9669 GB Notification: Performance of sort global known variables: time 8e-08/0.01849, allocations: 0 / 1.011 GB, free: 11.87 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0003557/0.01885, allocations: 67.89 kB / 1.011 GB, free: 11.8 MB / 0.9669 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.0001858/0.01903, allocations: 119.2 kB / 1.011 GB, free: 11.68 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0007125/0.01975, allocations: 0.5029 MB / 1.011 GB, free: 11.12 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.01975, allocations: 0 / 1.011 GB, free: 11.12 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001201/0.01987, allocations: 71.91 kB / 1.012 GB, free: 11.05 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004843/0.02035, allocations: 63.19 kB / 1.012 GB, free: 10.99 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006991/0.02105, allocations: 363 kB / 1.012 GB, free: 10.61 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001289/0.02118, allocations: 129.9 kB / 1.012 GB, free: 10.46 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 6.585e-05/0.02125, allocations: 21.95 kB / 1.012 GB, free: 10.44 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.074e-05/0.0213, allocations: 24.5 kB / 1.012 GB, free: 10.42 MB / 0.9669 GB Notification: Performance of SimCode: time 3.11e-07/0.0213, allocations: 0 / 1.012 GB, free: 10.42 MB / 0.9669 GB Notification: Performance of Templates: time 0.009051/0.03035, allocations: 4.362 MB / 1.016 GB, free: 6.18 MB / 0.9669 GB " [Timeout remaining time 300] 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 -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/jenkins/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: 8.680891171097755]