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.001611/0.001611, allocations: 107.3 kB / 16.46 MB, free: 6.508 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.001569/0.001569, allocations: 213.7 kB / 19.43 MB, free: 3.648 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.528/1.528, allocations: 230.6 MB / 252.8 MB, free: 9.102 MB / 206.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.601/3.601, allocations: 0.5049 GB / 0.8065 GB, free: 23.04 MB / 0.6231 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.002207/0.002207, allocations: 71.33 kB / 1.172 GB, free: 17.24 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.45/0.4522, allocations: 180.2 MB / 1.348 GB, free: 9.434 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio): time 0.003678/0.4559, allocations: 1.188 MB / 1.349 GB, free: 8.242 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.003047/0.4589, allocations: 1.428 MB / 1.351 GB, free: 6.801 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001673/0.4591, allocations: 4 kB / 1.351 GB, free: 6.797 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 9.527e-05/0.4592, allocations: 27.67 kB / 1.351 GB, free: 6.77 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0002473/0.4594, allocations: 59.56 kB / 1.351 GB, free: 6.711 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.001464/0.4609, allocations: 382.1 kB / 1.351 GB, free: 6.348 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0008221/0.4617, allocations: 463.1 kB / 1.352 GB, free: 5.895 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002597/0.462, allocations: 71.06 kB / 1.352 GB, free: 5.824 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002871/0.4623, allocations: 171.6 kB / 1.352 GB, free: 5.656 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003403/0.4626, allocations: 163.3 kB / 1.352 GB, free: 5.496 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 0.0001122/0.4627, allocations: 52 kB / 1.352 GB, free: 5.445 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001796/0.4629, allocations: 63.97 kB / 1.352 GB, free: 5.383 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 8.047e-05/0.463, allocations: 51.84 kB / 1.352 GB, free: 5.332 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0002656/0.4632, allocations: 163.3 kB / 1.352 GB, free: 5.172 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.000797/0.464, allocations: 0.4943 MB / 1.353 GB, free: 4.676 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.464, allocations: 0 / 1.353 GB, free: 4.676 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.623e-06/0.464, allocations: 0 / 1.353 GB, free: 4.676 MB / 1.045 GB Notification: Performance of Transformations before backend: time 8.075e-06/0.464, allocations: 0 / 1.353 GB, free: 4.676 MB / 1.045 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.001326/0.4654, allocations: 0.6282 MB / 1.353 GB, free: 3.977 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 5.542e-05/0.4654, allocations: 8.031 kB / 1.353 GB, free: 3.969 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001476/0.4656, allocations: 36.8 kB / 1.354 GB, free: 3.934 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00055/0.4661, allocations: 283.9 kB / 1.354 GB, free: 3.617 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.54e-05/0.4662, allocations: 20.38 kB / 1.354 GB, free: 3.598 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.822e-05/0.4663, allocations: 24.38 kB / 1.354 GB, free: 3.574 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004253/0.4667, allocations: 138 kB / 1.354 GB, free: 3.434 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.55e-05/0.4667, allocations: 3.938 kB / 1.354 GB, free: 3.43 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.815e-05/0.4667, allocations: 7.984 kB / 1.354 GB, free: 3.422 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.053e-06/0.4667, allocations: 4 kB / 1.354 GB, free: 3.418 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002797/0.467, allocations: 87.97 kB / 1.354 GB, free: 3.332 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00165/0.4687, allocations: 0.7106 MB / 1.355 GB, free: 2.57 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003017/0.469, allocations: 102.5 kB / 1.355 GB, free: 2.461 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001422/0.4691, allocations: 52.84 kB / 1.355 GB, free: 2.406 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.762e-05/0.4691, allocations: 4.188 kB / 1.355 GB, free: 2.402 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004254/0.4696, allocations: 147.2 kB / 1.355 GB, free: 2.246 MB / 1.045 GB Notification: Performance of pre-optimization done (n=20): time 2.284e-06/0.4696, allocations: 0 / 1.355 GB, free: 2.246 MB / 1.045 GB Notification: Performance of matching and sorting (n=20): time 0.0007618/0.4703, allocations: 251.1 kB / 1.355 GB, free: 1.996 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.484e-05/0.4704, allocations: 59.34 kB / 1.355 GB, free: 1.926 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003353/0.4707, allocations: 215 kB / 1.356 GB, free: 1.703 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 7.44e-05/0.4708, allocations: 37.7 kB / 1.356 GB, free: 1.66 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001845/0.471, allocations: 140.6 kB / 1.356 GB, free: 1.52 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 7.535e-05/0.4711, allocations: 59.58 kB / 1.356 GB, free: 1.461 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002516/0.4713, allocations: 85.66 kB / 1.356 GB, free: 1.371 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0002182/0.4715, allocations: 338.8 kB / 1.356 GB, free: 1.031 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004113/0.4719, allocations: 131.9 kB / 1.356 GB, free: 0.9023 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004822/0.4724, allocations: 201.4 kB / 1.356 GB, free: 0.6719 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006707/0.4731, allocations: 330.3 kB / 1.357 GB, free: 304 kB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.4731, allocations: 0 / 1.357 GB, free: 304 kB / 1.045 GB Notification: Performance of matching and sorting (n=32) (initialization): time 0.001352/0.4745, allocations: 0.4944 MB / 1.357 GB, free: 15.78 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001303/0.4746, allocations: 103 kB / 1.357 GB, free: 15.66 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.084e-05/0.4746, allocations: 4.25 kB / 1.357 GB, free: 15.66 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.332e-05/0.4746, allocations: 8 kB / 1.357 GB, free: 15.65 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001862/0.4748, allocations: 27.92 kB / 1.357 GB, free: 15.62 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.522e-05/0.4748, allocations: 11.88 kB / 1.357 GB, free: 15.61 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007394/0.4756, allocations: 87.73 kB / 1.358 GB, free: 15.52 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.776e-05/0.4756, allocations: 23.98 kB / 1.358 GB, free: 15.5 MB / 1.061 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.0002736/0.4759, allocations: 157.7 kB / 1.358 GB, free: 15.34 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.72e-05/0.476, allocations: 19.86 kB / 1.358 GB, free: 15.32 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005338/0.4765, allocations: 204.8 kB / 1.358 GB, free: 15.11 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.24e-06/0.4765, allocations: 0 / 1.358 GB, free: 15.11 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.4765, allocations: 0 / 1.358 GB, free: 15.11 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.4765, allocations: 0 / 1.358 GB, free: 15.11 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001104/0.4776, allocations: 0.5685 MB / 1.358 GB, free: 14.49 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.4776, allocations: 4 kB / 1.358 GB, free: 14.48 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.887e-05/0.4777, allocations: 16 kB / 1.358 GB, free: 14.47 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.068e-06/0.4777, allocations: 0 / 1.358 GB, free: 14.47 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.885e-05/0.4777, allocations: 7.984 kB / 1.358 GB, free: 14.46 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.906e-06/0.4777, allocations: 4 kB / 1.358 GB, free: 14.46 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.969e-06/0.4778, allocations: 3.938 kB / 1.358 GB, free: 14.45 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005805/0.4783, allocations: 293.2 kB / 1.359 GB, free: 14.15 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001084/0.4784, allocations: 92.97 kB / 1.359 GB, free: 14.04 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.311e-05/0.4785, allocations: 12 kB / 1.359 GB, free: 14.03 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001401/0.4786, allocations: 4.031 kB / 1.359 GB, free: 14.03 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.522e-05/0.4787, allocations: 23.91 kB / 1.359 GB, free: 14 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.267e-05/0.4787, allocations: 8 kB / 1.359 GB, free: 14 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0002178/0.4789, allocations: 152.3 kB / 1.359 GB, free: 13.85 MB / 1.061 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4789, allocations: 0 / 1.359 GB, free: 13.85 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0006225/0.4796, allocations: 79.88 kB / 1.359 GB, free: 13.77 MB / 1.061 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.0002277/0.4798, allocations: 112.4 kB / 1.359 GB, free: 13.65 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0009773/0.4808, allocations: 426.1 kB / 1.36 GB, free: 13.2 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.4808, allocations: 0 / 1.36 GB, free: 13.2 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001709/0.4809, allocations: 65.81 kB / 1.36 GB, free: 13.13 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007698/0.4817, allocations: 53.27 kB / 1.36 GB, free: 13.08 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001068/0.4828, allocations: 375.8 kB / 1.36 GB, free: 12.69 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005704/0.4833, allocations: 0.7398 MB / 1.361 GB, free: 11.92 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.000114/0.4835, allocations: 21.94 kB / 1.361 GB, free: 11.9 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.94e-05/0.4835, allocations: 19.44 kB / 1.361 GB, free: 11.88 MB / 1.061 GB Notification: Performance of SimCode: time 5.81e-07/0.4835, allocations: 3.938 kB / 1.361 GB, free: 11.88 MB / 1.061 GB Notification: Performance of Templates: time 0.01394/0.4975, allocations: 4.058 MB / 1.365 GB, free: 7.91 MB / 1.061 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 -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: 9.914583669044077]