Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001904/0.001904, allocations: 83.69 kB / 20.23 MB, free: 4.188 MB / 18.57 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.002011/0.002011, allocations: 161.3 kB / 23.55 MB, free: 0.875 MB / 18.57 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.566/1.566, allocations: 177.1 MB / 203.9 MB, free: 5.582 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 3.07/3.07, allocations: 377.8 MB / 0.6232 GB, free: 8.527 MB / 0.5886 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/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_12_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_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.713e-06/1.713e-06, allocations: 0 / 0.8108 GB, free: 2.09 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.438e-05/2.609e-05, allocations: 4.984 kB / 0.8108 GB, free: 2.086 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio): time 0.002483/0.002509, allocations: 1.139 MB / 0.8119 GB, free: 0.9688 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.002397/0.004907, allocations: 1.426 MB / 0.8133 GB, free: 15.53 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001057/0.005012, allocations: 5.031 kB / 0.8133 GB, free: 15.53 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 5.582e-05/0.005068, allocations: 19.73 kB / 0.8133 GB, free: 15.51 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 0.0001842/0.005252, allocations: 64.28 kB / 0.8134 GB, free: 15.45 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008962/0.006149, allocations: 368.8 kB / 0.8138 GB, free: 15.09 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0005671/0.006716, allocations: 467 kB / 0.8142 GB, free: 14.63 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001952/0.006911, allocations: 71.67 kB / 0.8143 GB, free: 14.56 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003343/0.007245, allocations: 251.6 kB / 0.8145 GB, free: 14.31 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002349/0.00748, allocations: 133.1 kB / 0.8146 GB, free: 14.18 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 8.674e-05/0.007567, allocations: 48 kB / 0.8147 GB, free: 14.14 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001257/0.007692, allocations: 56 kB / 0.8147 GB, free: 14.08 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 6.729e-05/0.00776, allocations: 59.75 kB / 0.8148 GB, free: 14.02 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 0.0001862/0.007946, allocations: 125.2 kB / 0.8149 GB, free: 13.9 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0006925/0.008638, allocations: 0.5453 MB / 0.8155 GB, free: 13.36 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.008642, allocations: 0 / 0.8155 GB, free: 13.36 MB / 0.7761 GB Notification: Performance of FrontEnd: time 1.002e-06/0.008643, allocations: 1.75 kB / 0.8155 GB, free: 13.36 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 6.101e-06/0.008649, allocations: 0 / 0.8155 GB, free: 13.36 MB / 0.7761 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.001013/0.009662, allocations: 0.6642 MB / 0.8161 GB, free: 12.63 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.636e-05/0.009698, allocations: 8.031 kB / 0.8161 GB, free: 12.62 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001379/0.009836, allocations: 44.8 kB / 0.8162 GB, free: 12.58 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004471/0.01028, allocations: 224.7 kB / 0.8164 GB, free: 12.34 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.095e-05/0.01032, allocations: 25.25 kB / 0.8164 GB, free: 12.31 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.157e-05/0.01039, allocations: 24.38 kB / 0.8164 GB, free: 12.29 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003094/0.0107, allocations: 147.5 kB / 0.8166 GB, free: 12.14 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.231e-05/0.01071, allocations: 0.75 kB / 0.8166 GB, free: 12.14 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.99e-05/0.01073, allocations: 5.75 kB / 0.8166 GB, free: 12.14 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.004e-05/0.01074, allocations: 8.125 kB / 0.8166 GB, free: 12.13 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002001/0.01094, allocations: 87.95 kB / 0.8167 GB, free: 12.04 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001175/0.01211, allocations: 0.6498 MB / 0.8173 GB, free: 11.36 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002343/0.01235, allocations: 115 kB / 0.8174 GB, free: 11.23 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000105/0.01245, allocations: 51.67 kB / 0.8174 GB, free: 11.18 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 2.625e-05/0.01248, allocations: 4 kB / 0.8174 GB, free: 11.18 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002773/0.01276, allocations: 152.9 kB / 0.8176 GB, free: 11.01 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=20): time 1.663e-06/0.01276, allocations: 4.531 kB / 0.8176 GB, free: 11.01 MB / 0.7761 GB Notification: Performance of matching and sorting (n=20): time 0.0005655/0.01332, allocations: 264.2 kB / 0.8179 GB, free: 10.75 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.442e-05/0.01338, allocations: 55.41 kB / 0.8179 GB, free: 10.68 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003335/0.01371, allocations: 303.4 kB / 0.8182 GB, free: 10.37 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 5.352e-05/0.01376, allocations: 39.36 kB / 0.8182 GB, free: 10.32 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001715/0.01394, allocations: 195.2 kB / 0.8184 GB, free: 10.13 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 6.82e-05/0.014, allocations: 59.62 kB / 0.8185 GB, free: 10.07 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000192/0.0142, allocations: 99.31 kB / 0.8186 GB, free: 9.965 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0002838/0.01448, allocations: 0.5118 MB / 0.8191 GB, free: 9.441 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004034/0.01488, allocations: 249.5 kB / 0.8193 GB, free: 9.18 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006114/0.01549, allocations: 362.2 kB / 0.8197 GB, free: 8.762 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005363/0.01603, allocations: 381 kB / 0.82 GB, free: 8.328 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.01603, allocations: 0 / 0.82 GB, free: 8.328 MB / 0.7761 GB Notification: Performance of matching and sorting (n=32) (initialization): time 0.00108/0.01711, allocations: 0.6572 MB / 0.8207 GB, free: 7.629 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 9.985e-05/0.01721, allocations: 105.1 kB / 0.8208 GB, free: 7.508 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/0.01722, allocations: 2.219 kB / 0.8208 GB, free: 7.508 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.271e-05/0.01724, allocations: 4 kB / 0.8208 GB, free: 7.504 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001405/0.01738, allocations: 31.92 kB / 0.8208 GB, free: 7.473 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.119e-05/0.0174, allocations: 4 kB / 0.8208 GB, free: 7.469 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004275/0.01782, allocations: 74.56 kB / 0.8209 GB, free: 7.398 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.673e-05/0.01788, allocations: 23.98 kB / 0.8209 GB, free: 7.375 MB / 0.7761 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.0002116/0.01809, allocations: 200.8 kB / 0.8211 GB, free: 7.168 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.73e-05/0.01814, allocations: 31.83 kB / 0.8211 GB, free: 7.137 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003912/0.01853, allocations: 211.3 kB / 0.8213 GB, free: 6.934 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.01853, allocations: 0 / 0.8213 GB, free: 6.934 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.526e-06/0.01854, allocations: 0 / 0.8213 GB, free: 6.934 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.01854, allocations: 4 kB / 0.8213 GB, free: 6.93 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007643/0.0193, allocations: 0.5524 MB / 0.8219 GB, free: 6.336 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.01931, allocations: 0 / 0.8219 GB, free: 6.336 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.394e-05/0.01937, allocations: 17.86 kB / 0.8219 GB, free: 6.32 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.965e-06/0.01937, allocations: 3.938 kB / 0.8219 GB, free: 6.316 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.615e-05/0.01939, allocations: 8 kB / 0.8219 GB, free: 6.309 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.01939, allocations: 0 / 0.8219 GB, free: 6.309 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.01939, allocations: 0 / 0.8219 GB, free: 6.309 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004387/0.01983, allocations: 361.9 kB / 0.8222 GB, free: 5.938 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 3.676e-05/0.01987, allocations: 23.78 kB / 0.8223 GB, free: 5.914 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.831e-05/0.0199, allocations: 4 kB / 0.8223 GB, free: 5.91 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.589e-05/0.01997, allocations: 9.031 kB / 0.8223 GB, free: 5.902 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.718e-05/0.02003, allocations: 15.97 kB / 0.8223 GB, free: 5.887 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.536e-05/0.02004, allocations: 8.047 kB / 0.8223 GB, free: 5.879 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.0001984/0.02024, allocations: 211.3 kB / 0.8225 GB, free: 5.672 MB / 0.7761 GB Notification: Performance of sort global known variables: time 7e-08/0.02024, allocations: 0 / 0.8225 GB, free: 5.672 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0003648/0.02061, allocations: 72.45 kB / 0.8226 GB, free: 5.602 MB / 0.7761 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.000187/0.02079, allocations: 124 kB / 0.8227 GB, free: 5.477 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.000837/0.02163, allocations: 0.5818 MB / 0.8232 GB, free: 4.836 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 4.588e-06/0.02164, allocations: 4 kB / 0.8233 GB, free: 4.832 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0001371/0.02177, allocations: 82 kB / 0.8233 GB, free: 4.75 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004818/0.02225, allocations: 70.17 kB / 0.8234 GB, free: 4.688 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000739/0.02299, allocations: 379 kB / 0.8238 GB, free: 4.281 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001416/0.02314, allocations: 128.7 kB / 0.8239 GB, free: 4.141 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 7.578e-05/0.02321, allocations: 24.61 kB / 0.8239 GB, free: 4.117 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.881e-05/0.02326, allocations: 16.5 kB / 0.8239 GB, free: 4.098 MB / 0.7761 GB Notification: Performance of SimCode: time 6.21e-07/0.02326, allocations: 4 kB / 0.8239 GB, free: 4.094 MB / 0.7761 GB Notification: Performance of Templates: time 0.009905/0.03317, allocations: 4.406 MB / 0.8282 GB, free: 15.85 MB / 0.7917 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio.sim & ./Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_Utilities_PIDWithAutotuning_Relay_BaseClasses_Validation_HalfPeriodRatio.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.24955624807626]