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.001604/0.001604, allocations: 100.4 kB / 19.73 MB, free: 2.078 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.001935/0.001935, allocations: 214 kB / 23.04 MB, free: 4.859 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 / 256.8 MB, free: 7.777 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.498/3.498, allocations: 0.5097 GB / 0.8156 GB, free: 18.42 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.002064/0.002064, allocations: 68.39 kB / 1.185 GB, free: 14.42 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4191/0.4212, allocations: 181.4 MB / 1.362 GB, free: 15.66 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio): time 0.002642/0.4238, allocations: 1.109 MB / 1.363 GB, free: 14.54 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.002761/0.4266, allocations: 1.421 MB / 1.365 GB, free: 13.11 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001794/0.4268, allocations: 4 kB / 1.365 GB, free: 13.1 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001208/0.4269, allocations: 19.73 kB / 1.365 GB, free: 13.08 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0002262/0.4271, allocations: 63.5 kB / 1.365 GB, free: 13.02 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.001243/0.4284, allocations: 367.2 kB / 1.365 GB, free: 12.67 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0006532/0.429, allocations: 471.1 kB / 1.366 GB, free: 12.21 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000231/0.4292, allocations: 67.59 kB / 1.366 GB, free: 12.14 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002471/0.4295, allocations: 175.5 kB / 1.366 GB, free: 11.96 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002737/0.4298, allocations: 143.4 kB / 1.366 GB, free: 11.82 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 8.224e-05/0.4298, allocations: 48 kB / 1.366 GB, free: 11.78 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001389/0.43, allocations: 59.98 kB / 1.366 GB, free: 11.72 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 6.803e-05/0.43, allocations: 51.77 kB / 1.366 GB, free: 11.67 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0002268/0.4303, allocations: 147.5 kB / 1.366 GB, free: 11.52 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0007124/0.431, allocations: 498.2 kB / 1.367 GB, free: 11.04 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 6.963e-06/0.431, allocations: 4 kB / 1.367 GB, free: 11.03 MB / 1.061 GB Notification: Performance of FrontEnd: time 3.828e-06/0.431, allocations: 4 kB / 1.367 GB, free: 11.03 MB / 1.061 GB Notification: Performance of Transformations before backend: time 1.029e-05/0.431, allocations: 0 / 1.367 GB, free: 11.03 MB / 1.061 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.001071/0.4321, allocations: 0.5529 MB / 1.367 GB, free: 10.42 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 5.213e-05/0.4321, allocations: 8.031 kB / 1.367 GB, free: 10.41 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001162/0.4322, allocations: 32.8 kB / 1.367 GB, free: 10.38 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004855/0.4327, allocations: 229.9 kB / 1.368 GB, free: 10.13 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.018e-05/0.4328, allocations: 16.38 kB / 1.368 GB, free: 10.12 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.694e-05/0.4328, allocations: 24.38 kB / 1.368 GB, free: 10.09 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003366/0.4332, allocations: 146 kB / 1.368 GB, free: 9.945 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.501e-05/0.4332, allocations: 7.938 kB / 1.368 GB, free: 9.938 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.099e-05/0.4332, allocations: 8 kB / 1.368 GB, free: 9.93 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.037e-06/0.4332, allocations: 4 kB / 1.368 GB, free: 9.926 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002069/0.4334, allocations: 87.89 kB / 1.368 GB, free: 9.84 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00113/0.4346, allocations: 0.5348 MB / 1.368 GB, free: 9.273 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002459/0.4348, allocations: 112.4 kB / 1.368 GB, free: 9.156 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001019/0.4349, allocations: 45.09 kB / 1.369 GB, free: 9.109 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.762e-05/0.4349, allocations: 0 / 1.369 GB, free: 9.109 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004028/0.4353, allocations: 153.5 kB / 1.369 GB, free: 8.949 MB / 1.061 GB Notification: Performance of pre-optimization done (n=20): time 6.382e-06/0.4353, allocations: 3.984 kB / 1.369 GB, free: 8.945 MB / 1.061 GB Notification: Performance of matching and sorting (n=20): time 0.0005638/0.4359, allocations: 249.4 kB / 1.369 GB, free: 8.695 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.467e-05/0.436, allocations: 59.41 kB / 1.369 GB, free: 8.625 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002713/0.4362, allocations: 215.1 kB / 1.369 GB, free: 8.406 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 5.518e-05/0.4363, allocations: 41.64 kB / 1.369 GB, free: 8.359 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001364/0.4364, allocations: 144.5 kB / 1.369 GB, free: 8.215 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 5.288e-05/0.4365, allocations: 51.53 kB / 1.369 GB, free: 8.164 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001665/0.4367, allocations: 89.66 kB / 1.369 GB, free: 8.07 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001632/0.4368, allocations: 330.8 kB / 1.37 GB, free: 7.738 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003381/0.4372, allocations: 229 kB / 1.37 GB, free: 7.496 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000419/0.4376, allocations: 311.5 kB / 1.37 GB, free: 7.141 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004503/0.438, allocations: 342.3 kB / 1.371 GB, free: 6.754 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.64e-06/0.438, allocations: 3.938 kB / 1.371 GB, free: 6.75 MB / 1.061 GB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0009004/0.4389, allocations: 0.5931 MB / 1.371 GB, free: 6.113 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 9.338e-05/0.439, allocations: 105.1 kB / 1.371 GB, free: 5.992 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.439, allocations: 0 / 1.371 GB, free: 5.992 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.902e-05/0.439, allocations: 4 kB / 1.371 GB, free: 5.988 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001226/0.4392, allocations: 23.98 kB / 1.371 GB, free: 5.965 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.293e-05/0.4392, allocations: 7.938 kB / 1.371 GB, free: 5.957 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004902/0.4397, allocations: 88.05 kB / 1.371 GB, free: 5.871 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.052e-05/0.4397, allocations: 27.92 kB / 1.371 GB, free: 5.844 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.0001752/0.4399, allocations: 151.1 kB / 1.372 GB, free: 5.688 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.193e-05/0.4399, allocations: 23.84 kB / 1.372 GB, free: 5.664 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003752/0.4403, allocations: 209.3 kB / 1.372 GB, free: 5.457 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.4403, allocations: 4 kB / 1.372 GB, free: 5.453 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.4403, allocations: 0 / 1.372 GB, free: 5.453 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.4403, allocations: 4 kB / 1.372 GB, free: 5.449 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00064/0.441, allocations: 489.8 kB / 1.372 GB, free: 4.934 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.441, allocations: 0 / 1.372 GB, free: 4.934 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.385e-05/0.441, allocations: 15.98 kB / 1.372 GB, free: 4.918 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.441, allocations: 0 / 1.372 GB, free: 4.918 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.756e-05/0.441, allocations: 8 kB / 1.372 GB, free: 4.91 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.441, allocations: 160 / 1.372 GB, free: 4.91 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.441, allocations: 0 / 1.372 GB, free: 4.91 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003531/0.4414, allocations: 300.8 kB / 1.373 GB, free: 4.602 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 3.391e-05/0.4414, allocations: 27.84 kB / 1.373 GB, free: 4.574 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.374e-05/0.4415, allocations: 0 / 1.373 GB, free: 4.574 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.75e-05/0.4415, allocations: 8 kB / 1.373 GB, free: 4.566 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.671e-05/0.4416, allocations: 15.97 kB / 1.373 GB, free: 4.551 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.325e-05/0.4416, allocations: 8 kB / 1.373 GB, free: 4.543 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001359/0.4417, allocations: 151 kB / 1.373 GB, free: 4.395 MB / 1.061 GB Notification: Performance of sort global known variables: time 7e-08/0.4417, allocations: 0 / 1.373 GB, free: 4.395 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003626/0.4421, allocations: 75.81 kB / 1.373 GB, free: 4.32 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.0001781/0.4423, allocations: 119.2 kB / 1.373 GB, free: 4.191 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0007141/0.443, allocations: 0.5052 MB / 1.373 GB, free: 3.633 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.443, allocations: 3.938 kB / 1.373 GB, free: 3.629 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.00012/0.4431, allocations: 67.92 kB / 1.374 GB, free: 3.562 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004699/0.4436, allocations: 52.45 kB / 1.374 GB, free: 3.512 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007316/0.4443, allocations: 368.1 kB / 1.374 GB, free: 3.125 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001391/0.4445, allocations: 129.9 kB / 1.374 GB, free: 2.98 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 7.425e-05/0.4445, allocations: 26.08 kB / 1.374 GB, free: 2.953 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.141e-05/0.4446, allocations: 27.42 kB / 1.374 GB, free: 2.926 MB / 1.061 GB Notification: Performance of SimCode: time 4.61e-07/0.4446, allocations: 0 / 1.374 GB, free: 2.926 MB / 1.061 GB Notification: Performance of Templates: time 0.009145/0.4537, allocations: 4.627 MB / 1.379 GB, free: 14.43 MB / 1.076 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 -s cvode -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.74189313990064]