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.001341/0.001341, allocations: 110.2 kB / 19.69 MB, free: 2.254 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.001458/0.001458, allocations: 212.3 kB / 23.01 MB, free: 4.566 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.468/1.468, allocations: 230.6 MB / 256.8 MB, free: 8.027 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.339/3.339, allocations: 0.505 GB / 0.8108 GB, free: 22.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.002103/0.002103, allocations: 71.69 kB / 1.178 GB, free: 16.84 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4089/0.411, allocations: 180.2 MB / 1.354 GB, free: 7.934 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio): time 0.002694/0.4137, allocations: 1.192 MB / 1.355 GB, free: 6.746 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.002105/0.4158, allocations: 1.436 MB / 1.357 GB, free: 5.297 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001108/0.4159, allocations: 4 kB / 1.357 GB, free: 5.293 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 6.166e-05/0.4159, allocations: 23.67 kB / 1.357 GB, free: 5.27 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0001804/0.4161, allocations: 59.58 kB / 1.357 GB, free: 5.211 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009394/0.4171, allocations: 370.6 kB / 1.357 GB, free: 4.855 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.00061/0.4177, allocations: 467.1 kB / 1.358 GB, free: 4.398 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000213/0.4179, allocations: 75.61 kB / 1.358 GB, free: 4.324 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003659/0.4182, allocations: 175.6 kB / 1.358 GB, free: 4.152 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003102/0.4186, allocations: 167.3 kB / 1.358 GB, free: 3.988 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 8.217e-05/0.4186, allocations: 48 kB / 1.358 GB, free: 3.941 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001397/0.4188, allocations: 55.98 kB / 1.358 GB, free: 3.887 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 6.956e-05/0.4188, allocations: 51.84 kB / 1.358 GB, free: 3.836 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0002263/0.4191, allocations: 171.3 kB / 1.358 GB, free: 3.668 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0006706/0.4197, allocations: 0.4943 MB / 1.359 GB, free: 3.172 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 5.501e-06/0.4198, allocations: 0 / 1.359 GB, free: 3.172 MB / 1.045 GB Notification: Performance of FrontEnd: time 2.074e-06/0.4198, allocations: 0 / 1.359 GB, free: 3.172 MB / 1.045 GB Notification: Performance of Transformations before backend: time 8.817e-06/0.4198, allocations: 0 / 1.359 GB, free: 3.172 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.001039/0.4208, allocations: 0.5568 MB / 1.359 GB, free: 2.562 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.494e-05/0.4208, allocations: 8.031 kB / 1.359 GB, free: 2.555 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001079/0.421, allocations: 32.8 kB / 1.359 GB, free: 2.523 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004109/0.4214, allocations: 230.1 kB / 1.36 GB, free: 2.273 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.795e-05/0.4214, allocations: 16.38 kB / 1.36 GB, free: 2.258 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001545/0.4215, allocations: 24.38 kB / 1.36 GB, free: 2.234 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002977/0.4218, allocations: 142 kB / 1.36 GB, free: 2.09 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.365e-05/0.4219, allocations: 3.938 kB / 1.36 GB, free: 2.086 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.432e-05/0.4219, allocations: 11.98 kB / 1.36 GB, free: 2.074 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.907e-06/0.4219, allocations: 4 kB / 1.36 GB, free: 2.07 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002224/0.4221, allocations: 79.97 kB / 1.36 GB, free: 1.992 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001262/0.4234, allocations: 0.6745 MB / 1.36 GB, free: 1.273 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002316/0.4236, allocations: 106.5 kB / 1.361 GB, free: 1.16 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.826e-05/0.4237, allocations: 53.02 kB / 1.361 GB, free: 1.105 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.614e-05/0.4237, allocations: 4 kB / 1.361 GB, free: 1.102 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000355/0.4241, allocations: 147.3 kB / 1.361 GB, free: 0.9453 MB / 1.045 GB Notification: Performance of pre-optimization done (n=20): time 1.512e-06/0.4241, allocations: 0 / 1.361 GB, free: 0.9453 MB / 1.045 GB Notification: Performance of matching and sorting (n=20): time 0.0005172/0.4246, allocations: 251.5 kB / 1.361 GB, free: 0.6953 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.343e-05/0.4247, allocations: 63.34 kB / 1.361 GB, free: 0.6211 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002259/0.4249, allocations: 211 kB / 1.361 GB, free: 416 kB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 6.44e-05/0.425, allocations: 37.7 kB / 1.361 GB, free: 372 kB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001294/0.4251, allocations: 144.5 kB / 1.361 GB, free: 224 kB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 5.616e-05/0.4251, allocations: 55.53 kB / 1.361 GB, free: 168 kB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001701/0.4253, allocations: 85.66 kB / 1.362 GB, free: 76 kB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001974/0.4255, allocations: 334.8 kB / 1.362 GB, free: 15.74 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002804/0.4258, allocations: 127.9 kB / 1.362 GB, free: 15.61 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004151/0.4262, allocations: 210 kB / 1.362 GB, free: 15.38 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005324/0.4267, allocations: 346.3 kB / 1.363 GB, free: 14.98 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.92e-06/0.4267, allocations: 4 kB / 1.363 GB, free: 14.98 MB / 1.061 GB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0008983/0.4276, allocations: 498.3 kB / 1.363 GB, free: 14.47 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 9.388e-05/0.4277, allocations: 105.1 kB / 1.363 GB, free: 14.35 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.4277, allocations: 0 / 1.363 GB, free: 14.35 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.923e-05/0.4278, allocations: 4 kB / 1.363 GB, free: 14.34 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001947/0.428, allocations: 32.17 kB / 1.363 GB, free: 14.31 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.177e-05/0.428, allocations: 11.88 kB / 1.363 GB, free: 14.3 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004694/0.4284, allocations: 83.8 kB / 1.363 GB, free: 14.22 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.985e-05/0.4285, allocations: 23.98 kB / 1.363 GB, free: 14.2 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.000175/0.4287, allocations: 161.6 kB / 1.363 GB, free: 14.03 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.099e-05/0.4287, allocations: 19.86 kB / 1.363 GB, free: 14.01 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003561/0.4291, allocations: 204.9 kB / 1.364 GB, free: 13.8 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.01e-06/0.4291, allocations: 4 kB / 1.364 GB, free: 13.79 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.4291, allocations: 0 / 1.364 GB, free: 13.79 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.127e-06/0.4291, allocations: 0 / 1.364 GB, free: 13.79 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006825/0.4297, allocations: 0.5402 MB / 1.364 GB, free: 13.2 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.4297, allocations: 0 / 1.364 GB, free: 13.2 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.976e-05/0.4298, allocations: 11.98 kB / 1.364 GB, free: 13.19 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.438e-06/0.4298, allocations: 8.047 kB / 1.364 GB, free: 13.18 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.728e-05/0.4298, allocations: 7.984 kB / 1.364 GB, free: 13.18 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.4298, allocations: 0 / 1.364 GB, free: 13.18 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.059e-06/0.4298, allocations: 7.938 kB / 1.364 GB, free: 13.17 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003506/0.4302, allocations: 292.7 kB / 1.364 GB, free: 12.87 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 3.375e-05/0.4302, allocations: 23.84 kB / 1.365 GB, free: 12.84 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.786e-05/0.4302, allocations: 0 / 1.365 GB, free: 12.84 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.231e-05/0.4303, allocations: 8 kB / 1.365 GB, free: 12.84 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.361e-05/0.4304, allocations: 23.91 kB / 1.365 GB, free: 12.81 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.25e-05/0.4304, allocations: 7.938 kB / 1.365 GB, free: 12.8 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001471/0.4306, allocations: 156.4 kB / 1.365 GB, free: 12.65 MB / 1.061 GB Notification: Performance of sort global known variables: time 9e-08/0.4306, allocations: 0 / 1.365 GB, free: 12.65 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003587/0.4309, allocations: 71.88 kB / 1.365 GB, free: 12.58 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.0001879/0.4311, allocations: 112.6 kB / 1.365 GB, free: 12.46 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0007076/0.4318, allocations: 420.2 kB / 1.365 GB, free: 12.02 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.4318, allocations: 0 / 1.365 GB, free: 12.02 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001586/0.432, allocations: 71.91 kB / 1.365 GB, free: 11.95 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004646/0.4324, allocations: 60.39 kB / 1.365 GB, free: 11.89 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007287/0.4332, allocations: 395.6 kB / 1.366 GB, free: 11.47 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00038/0.4335, allocations: 0.7398 MB / 1.367 GB, free: 10.7 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.228e-05/0.4336, allocations: 23.42 kB / 1.367 GB, free: 10.68 MB / 1.061 GB Notification: Performance of SimCode: time 3.2e-07/0.4336, allocations: 0 / 1.367 GB, free: 10.68 MB / 1.061 GB Notification: Performance of Templates: time 0.006521/0.4401, allocations: 3.379 MB / 1.37 GB, free: 7.336 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.743710795999505]