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.001472/0.001472, allocations: 92.42 kB / 19.7 MB, free: 2.137 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.001767/0.001767, allocations: 212.8 kB / 22.99 MB, free: 4.953 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: 230.6 MB / 256.8 MB, free: 7.832 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.2/3.2, allocations: 0.505 GB / 0.8108 GB, free: 23.55 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.002072/0.002072, allocations: 66.86 kB / 1.178 GB, free: 16.48 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3873/0.3893, allocations: 180.2 MB / 1.354 GB, free: 7.461 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio): time 0.002556/0.3919, allocations: 1.09 MB / 1.355 GB, free: 6.367 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001983/0.3939, allocations: 1.413 MB / 1.357 GB, free: 4.941 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001078/0.394, allocations: 4 kB / 1.357 GB, free: 4.938 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 6.457e-05/0.394, allocations: 19.75 kB / 1.357 GB, free: 4.918 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0001622/0.3942, allocations: 63.5 kB / 1.357 GB, free: 4.855 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009855/0.3952, allocations: 384.7 kB / 1.357 GB, free: 4.488 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.000518/0.3957, allocations: 463 kB / 1.357 GB, free: 4.035 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001883/0.3959, allocations: 75.61 kB / 1.357 GB, free: 3.961 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002065/0.3961, allocations: 171.6 kB / 1.358 GB, free: 3.793 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002845/0.3964, allocations: 163.4 kB / 1.358 GB, free: 3.633 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 6.994e-05/0.3965, allocations: 52 kB / 1.358 GB, free: 3.582 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001208/0.3966, allocations: 63.97 kB / 1.358 GB, free: 3.52 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 6.237e-05/0.3966, allocations: 51.78 kB / 1.358 GB, free: 3.469 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001919/0.3968, allocations: 143.5 kB / 1.358 GB, free: 3.328 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0005543/0.3974, allocations: 0.4982 MB / 1.359 GB, free: 2.828 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.3974, allocations: 0 / 1.359 GB, free: 2.828 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.773e-06/0.3974, allocations: 3.938 kB / 1.359 GB, free: 2.824 MB / 1.045 GB Notification: Performance of Transformations before backend: time 7.033e-06/0.3974, allocations: 0 / 1.359 GB, free: 2.824 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.0009394/0.3983, allocations: 0.549 MB / 1.359 GB, free: 2.223 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.836e-05/0.3984, allocations: 8.031 kB / 1.359 GB, free: 2.215 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.644e-05/0.3985, allocations: 32.8 kB / 1.359 GB, free: 2.184 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003949/0.3989, allocations: 226.1 kB / 1.359 GB, free: 1.938 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.282e-05/0.3989, allocations: 16.38 kB / 1.359 GB, free: 1.922 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.781e-05/0.399, allocations: 24.38 kB / 1.359 GB, free: 1.898 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002883/0.3992, allocations: 150 kB / 1.36 GB, free: 1.746 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.326e-05/0.3993, allocations: 3.938 kB / 1.36 GB, free: 1.742 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.83e-05/0.3993, allocations: 4 kB / 1.36 GB, free: 1.738 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.274e-06/0.3993, allocations: 4 kB / 1.36 GB, free: 1.734 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001783/0.3995, allocations: 91.89 kB / 1.36 GB, free: 1.645 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009885/0.4004, allocations: 0.5348 MB / 1.36 GB, free: 1.078 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002063/0.4007, allocations: 114.4 kB / 1.36 GB, free: 0.957 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.468e-05/0.4007, allocations: 45.09 kB / 1.36 GB, free: 0.9102 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.725e-05/0.4008, allocations: 8 kB / 1.36 GB, free: 0.9023 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000297/0.4011, allocations: 144.8 kB / 1.36 GB, free: 0.75 MB / 1.045 GB Notification: Performance of pre-optimization done (n=20): time 1.583e-06/0.4011, allocations: 0 / 1.36 GB, free: 0.75 MB / 1.045 GB Notification: Performance of matching and sorting (n=20): time 0.0004956/0.4016, allocations: 259 kB / 1.361 GB, free: 0.4922 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.934e-05/0.4016, allocations: 55.41 kB / 1.361 GB, free: 436 kB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002389/0.4018, allocations: 215 kB / 1.361 GB, free: 212 kB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 5.821e-05/0.4019, allocations: 41.69 kB / 1.361 GB, free: 164 kB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001195/0.402, allocations: 136.6 kB / 1.361 GB, free: 24 kB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 7.754e-05/0.4021, allocations: 59.56 kB / 1.361 GB, free: 15.96 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001649/0.4023, allocations: 85.61 kB / 1.361 GB, free: 15.88 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001519/0.4024, allocations: 330.8 kB / 1.362 GB, free: 15.54 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003241/0.4027, allocations: 229 kB / 1.362 GB, free: 15.3 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003834/0.4031, allocations: 314.3 kB / 1.362 GB, free: 14.94 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004342/0.4036, allocations: 334.4 kB / 1.362 GB, free: 14.56 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.271e-06/0.4036, allocations: 3.938 kB / 1.362 GB, free: 14.56 MB / 1.061 GB Notification: Performance of matching and sorting (n=32) (initialization): time 0.000961/0.4045, allocations: 0.5931 MB / 1.363 GB, free: 13.92 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 9.802e-05/0.4046, allocations: 105.1 kB / 1.363 GB, free: 13.8 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.594e-06/0.4046, allocations: 4.25 kB / 1.363 GB, free: 13.8 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.2e-05/0.4047, allocations: 8 kB / 1.363 GB, free: 13.79 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001265/0.4048, allocations: 27.92 kB / 1.363 GB, free: 13.76 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.467e-06/0.4048, allocations: 4 kB / 1.363 GB, free: 13.76 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004898/0.4053, allocations: 83.8 kB / 1.363 GB, free: 13.68 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.129e-05/0.4053, allocations: 19.98 kB / 1.363 GB, free: 13.66 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.0001983/0.4055, allocations: 165.6 kB / 1.363 GB, free: 13.48 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.004e-05/0.4056, allocations: 19.86 kB / 1.363 GB, free: 13.46 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003768/0.4059, allocations: 209.2 kB / 1.364 GB, free: 13.25 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.43e-06/0.4059, allocations: 4 kB / 1.364 GB, free: 13.25 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.4059, allocations: 0 / 1.364 GB, free: 13.25 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.406, allocations: 3.938 kB / 1.364 GB, free: 13.24 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006462/0.4066, allocations: 489.8 kB / 1.364 GB, free: 12.73 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.4066, allocations: 0 / 1.364 GB, free: 12.73 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.429e-05/0.4067, allocations: 15.98 kB / 1.364 GB, free: 12.71 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.958e-06/0.4067, allocations: 8 kB / 1.364 GB, free: 12.7 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.319e-05/0.4067, allocations: 0 / 1.364 GB, free: 12.7 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.4067, allocations: 0 / 1.364 GB, free: 12.7 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.462e-06/0.4067, allocations: 7.938 kB / 1.364 GB, free: 12.7 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003559/0.407, allocations: 296.5 kB / 1.364 GB, free: 12.39 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 3.382e-05/0.4071, allocations: 23.88 kB / 1.364 GB, free: 12.37 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.803e-05/0.4071, allocations: 4 kB / 1.364 GB, free: 12.36 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.854e-05/0.4072, allocations: 4 kB / 1.364 GB, free: 12.36 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.801e-05/0.4072, allocations: 15.97 kB / 1.364 GB, free: 12.34 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.373e-05/0.4072, allocations: 8 kB / 1.364 GB, free: 12.34 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001424/0.4074, allocations: 152.4 kB / 1.365 GB, free: 12.19 MB / 1.061 GB Notification: Performance of sort global known variables: time 8.1e-08/0.4074, allocations: 4 kB / 1.365 GB, free: 12.18 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.000344/0.4077, allocations: 79.81 kB / 1.365 GB, free: 12.11 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.0001829/0.4079, allocations: 108.9 kB / 1.365 GB, free: 11.99 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0006923/0.4086, allocations: 0.5092 MB / 1.365 GB, free: 11.43 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.4086, allocations: 0 / 1.365 GB, free: 11.43 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001214/0.4087, allocations: 72.41 kB / 1.365 GB, free: 11.36 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004678/0.4092, allocations: 63.83 kB / 1.365 GB, free: 11.29 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007095/0.4099, allocations: 393.8 kB / 1.366 GB, free: 10.88 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001311/0.41, allocations: 133.9 kB / 1.366 GB, free: 10.73 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.589e-05/0.4101, allocations: 27.42 kB / 1.366 GB, free: 10.7 MB / 1.061 GB Notification: Performance of SimCode: time 6.81e-07/0.4101, allocations: 0 / 1.366 GB, free: 10.7 MB / 1.061 GB Notification: Performance of Templates: time 0.00594/0.416, allocations: 3.449 MB / 1.369 GB, free: 7.289 MB / 1.061 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/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: 11.465371380007127]