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.002149/0.002149, allocations: 105.1 kB / 18.99 MB, free: 2.605 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.002226/0.002226, allocations: 219.6 kB / 22.29 MB, free: 4.781 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.629/1.629, allocations: 230.6 MB / 256.1 MB, free: 7.797 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.499/3.499, allocations: 0.5096 GB / 0.8148 GB, free: 18.4 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.003066/0.003066, allocations: 67.05 kB / 1.184 GB, free: 14.33 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4805/0.4836, allocations: 181.4 MB / 1.362 GB, free: 15.59 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio): time 0.0032/0.4868, allocations: 1.097 MB / 1.363 GB, free: 14.49 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.002647/0.4894, allocations: 1.417 MB / 1.364 GB, free: 13.06 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002218/0.4896, allocations: 7.938 kB / 1.364 GB, free: 13.05 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 9.611e-05/0.4897, allocations: 19.73 kB / 1.364 GB, free: 13.03 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0002798/0.49, allocations: 59.58 kB / 1.364 GB, free: 12.97 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.001205/0.4912, allocations: 374.3 kB / 1.364 GB, free: 12.62 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0008028/0.492, allocations: 467.1 kB / 1.365 GB, free: 12.16 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002569/0.4923, allocations: 63.61 kB / 1.365 GB, free: 12.09 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003691/0.4927, allocations: 179.5 kB / 1.365 GB, free: 11.92 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000372/0.493, allocations: 143.4 kB / 1.365 GB, free: 11.78 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 0.000136/0.4932, allocations: 48 kB / 1.365 GB, free: 11.73 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001763/0.4933, allocations: 59.98 kB / 1.365 GB, free: 11.67 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 8.018e-05/0.4934, allocations: 43.84 kB / 1.365 GB, free: 11.63 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0002197/0.4936, allocations: 159.4 kB / 1.366 GB, free: 11.47 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0007297/0.4944, allocations: 0.4943 MB / 1.366 GB, free: 10.98 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.4944, allocations: 0 / 1.366 GB, free: 10.98 MB / 1.061 GB Notification: Performance of FrontEnd: time 2.004e-06/0.4944, allocations: 4 kB / 1.366 GB, free: 10.97 MB / 1.061 GB Notification: Performance of Transformations before backend: time 2.395e-05/0.4944, allocations: 0 / 1.366 GB, free: 10.97 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.00126/0.4957, allocations: 0.549 MB / 1.367 GB, free: 10.37 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.887e-05/0.4957, allocations: 8.031 kB / 1.367 GB, free: 10.36 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001452/0.4959, allocations: 36.78 kB / 1.367 GB, free: 10.33 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004567/0.4963, allocations: 225.9 kB / 1.367 GB, free: 10.08 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.114e-05/0.4963, allocations: 20.36 kB / 1.367 GB, free: 10.06 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.385e-05/0.4964, allocations: 28.38 kB / 1.367 GB, free: 10.04 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003032/0.4967, allocations: 142 kB / 1.367 GB, free: 9.891 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.641e-05/0.4967, allocations: 15.81 kB / 1.367 GB, free: 9.875 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.261e-05/0.4968, allocations: 8 kB / 1.367 GB, free: 9.867 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.027e-06/0.4968, allocations: 4 kB / 1.367 GB, free: 9.863 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001847/0.4969, allocations: 87.95 kB / 1.367 GB, free: 9.777 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001037/0.498, allocations: 0.5387 MB / 1.368 GB, free: 9.207 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002242/0.4982, allocations: 110.5 kB / 1.368 GB, free: 9.09 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.197e-05/0.4983, allocations: 48.84 kB / 1.368 GB, free: 9.039 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.092e-05/0.4983, allocations: 0 / 1.368 GB, free: 9.039 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003355/0.4987, allocations: 151.2 kB / 1.368 GB, free: 8.879 MB / 1.061 GB Notification: Performance of pre-optimization done (n=20): time 1.413e-06/0.4987, allocations: 0 / 1.368 GB, free: 8.879 MB / 1.061 GB Notification: Performance of matching and sorting (n=20): time 0.0005399/0.4992, allocations: 247.2 kB / 1.368 GB, free: 8.633 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.804e-05/0.4993, allocations: 63.33 kB / 1.368 GB, free: 8.559 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002687/0.4995, allocations: 211.2 kB / 1.368 GB, free: 8.344 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 5.416e-05/0.4996, allocations: 37.7 kB / 1.368 GB, free: 8.301 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.000138/0.4997, allocations: 144.5 kB / 1.369 GB, free: 8.156 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 5.672e-05/0.4998, allocations: 51.53 kB / 1.369 GB, free: 8.105 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001682/0.4999, allocations: 89.67 kB / 1.369 GB, free: 8.012 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.000198/0.5001, allocations: 330.8 kB / 1.369 GB, free: 7.68 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003946/0.5005, allocations: 225 kB / 1.369 GB, free: 7.441 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004328/0.501, allocations: 311.5 kB / 1.37 GB, free: 7.086 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000518/0.5015, allocations: 342.4 kB / 1.37 GB, free: 6.699 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.756e-06/0.5015, allocations: 11.86 kB / 1.37 GB, free: 6.688 MB / 1.061 GB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0009985/0.5025, allocations: 0.5853 MB / 1.37 GB, free: 6.059 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001014/0.5026, allocations: 101.1 kB / 1.371 GB, free: 5.941 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.247e-06/0.5026, allocations: 0 / 1.371 GB, free: 5.941 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.334e-05/0.5026, allocations: 4 kB / 1.371 GB, free: 5.938 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001426/0.5028, allocations: 32.17 kB / 1.371 GB, free: 5.906 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.573e-05/0.5028, allocations: 8 kB / 1.371 GB, free: 5.898 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005101/0.5033, allocations: 83.8 kB / 1.371 GB, free: 5.816 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.583e-05/0.5034, allocations: 23.97 kB / 1.371 GB, free: 5.793 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.0002203/0.5036, allocations: 151.1 kB / 1.371 GB, free: 5.637 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.368e-05/0.5036, allocations: 23.86 kB / 1.371 GB, free: 5.613 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003946/0.504, allocations: 213.4 kB / 1.371 GB, free: 5.402 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.478e-06/0.504, allocations: 0 / 1.371 GB, free: 5.402 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.504, allocations: 0 / 1.371 GB, free: 5.402 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.532e-06/0.504, allocations: 7.984 kB / 1.371 GB, free: 5.395 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000766/0.5048, allocations: 485.8 kB / 1.372 GB, free: 4.883 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.508e-06/0.5048, allocations: 4 kB / 1.372 GB, free: 4.879 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.401e-05/0.5049, allocations: 16 kB / 1.372 GB, free: 4.863 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.637e-06/0.5049, allocations: 0 / 1.372 GB, free: 4.863 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.813e-05/0.5049, allocations: 7.984 kB / 1.372 GB, free: 4.855 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.5049, allocations: 3.938 kB / 1.372 GB, free: 4.852 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.5049, allocations: 4.047 kB / 1.372 GB, free: 4.848 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004024/0.5053, allocations: 305.5 kB / 1.372 GB, free: 4.535 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 4.02e-05/0.5053, allocations: 19.86 kB / 1.372 GB, free: 4.516 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.099e-05/0.5054, allocations: 4 kB / 1.372 GB, free: 4.512 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.983e-05/0.5054, allocations: 7.984 kB / 1.372 GB, free: 4.504 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.766e-05/0.5055, allocations: 11.98 kB / 1.372 GB, free: 4.492 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.778e-05/0.5055, allocations: 11.98 kB / 1.372 GB, free: 4.48 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001791/0.5057, allocations: 151 kB / 1.372 GB, free: 4.332 MB / 1.061 GB Notification: Performance of sort global known variables: time 9e-08/0.5057, allocations: 0 / 1.372 GB, free: 4.332 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0004039/0.5061, allocations: 71.83 kB / 1.372 GB, free: 4.262 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.0002027/0.5063, allocations: 123.2 kB / 1.372 GB, free: 4.129 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0007795/0.5071, allocations: 0.4991 MB / 1.373 GB, free: 3.574 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.5071, allocations: 0 / 1.373 GB, free: 3.574 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001551/0.5072, allocations: 67.91 kB / 1.373 GB, free: 3.508 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004779/0.5077, allocations: 50.89 kB / 1.373 GB, free: 3.461 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008235/0.5086, allocations: 380.3 kB / 1.373 GB, free: 3.066 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001451/0.5087, allocations: 133.8 kB / 1.373 GB, free: 2.918 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 8.751e-05/0.5088, allocations: 21.95 kB / 1.373 GB, free: 2.895 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.273e-05/0.5088, allocations: 19.44 kB / 1.373 GB, free: 2.875 MB / 1.061 GB Notification: Performance of SimCode: time 3.91e-07/0.5088, allocations: 0 / 1.373 GB, free: 2.875 MB / 1.061 GB Notification: Performance of Templates: time 0.01137/0.5202, allocations: 4.634 MB / 1.378 GB, free: 14.37 MB / 1.076 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: 10.173696204088628]