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.001937/0.001937, allocations: 85.48 kB / 19.44 MB, free: 344 kB / 13.93 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.002022/0.002022, allocations: 173.2 kB / 22.76 MB, free: 1.664 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.557/1.557, allocations: 177.1 MB / 203.1 MB, free: 5.488 MB / 186.7 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.392/3.392, allocations: 429.5 MB / 0.6729 GB, free: 4.02 MB / 0.6355 GB " [Timeout remaining time 176] Using package Buildings with version 14.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: Performance of FrontEnd - loaded program: time 3.096e-06/3.096e-06, allocations: 0 / 0.8775 GB, free: 6.652 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.228e-05/3.538e-05, allocations: 8.094 kB / 0.8775 GB, free: 6.645 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio): time 0.002723/0.002758, allocations: 1.137 MB / 0.8786 GB, free: 5.535 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.002417/0.005176, allocations: 1.437 MB / 0.88 GB, free: 4.086 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001193/0.005295, allocations: 0 / 0.88 GB, free: 4.086 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 6.426e-05/0.005359, allocations: 24.86 kB / 0.88 GB, free: 4.062 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 0.0001853/0.005545, allocations: 51.59 kB / 0.8801 GB, free: 4.012 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009427/0.006487, allocations: 372.1 kB / 0.8804 GB, free: 3.648 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.000588/0.007075, allocations: 476.3 kB / 0.8809 GB, free: 3.184 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000207/0.007282, allocations: 67.67 kB / 0.8809 GB, free: 3.113 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003579/0.00764, allocations: 259.5 kB / 0.8812 GB, free: 2.859 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002442/0.007885, allocations: 124.8 kB / 0.8813 GB, free: 2.738 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 8.815e-05/0.007973, allocations: 44 kB / 0.8813 GB, free: 2.695 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001282/0.008101, allocations: 63.98 kB / 0.8814 GB, free: 2.633 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 7.882e-05/0.00818, allocations: 52.42 kB / 0.8815 GB, free: 2.582 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 0.0001858/0.008366, allocations: 127.8 kB / 0.8816 GB, free: 2.457 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0007295/0.009095, allocations: 0.5438 MB / 0.8821 GB, free: 1.914 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.009099, allocations: 0 / 0.8821 GB, free: 1.914 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.453e-06/0.009101, allocations: 0 / 0.8821 GB, free: 1.914 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 7.654e-06/0.009108, allocations: 0 / 0.8821 GB, free: 1.914 MB / 0.8386 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.001154/0.01026, allocations: 0.6603 MB / 0.8827 GB, free: 1.195 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.468e-05/0.01031, allocations: 8.031 kB / 0.8828 GB, free: 1.188 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001349/0.01044, allocations: 54.02 kB / 0.8828 GB, free: 1.137 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004186/0.01086, allocations: 232.3 kB / 0.883 GB, free: 0.8828 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.819e-05/0.0109, allocations: 20.38 kB / 0.883 GB, free: 0.8633 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.912e-05/0.01096, allocations: 25.34 kB / 0.8831 GB, free: 0.8398 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003062/0.01126, allocations: 142.9 kB / 0.8832 GB, free: 0.6953 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.212e-05/0.01128, allocations: 192 / 0.8832 GB, free: 0.6953 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.595e-05/0.0113, allocations: 15.8 kB / 0.8832 GB, free: 0.6836 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.018e-05/0.01131, allocations: 4.125 kB / 0.8832 GB, free: 0.6797 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001907/0.0115, allocations: 80.56 kB / 0.8833 GB, free: 0.6016 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001493/0.013, allocations: 0.6434 MB / 0.8839 GB, free: 15.92 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002484/0.01324, allocations: 107 kB / 0.884 GB, free: 15.8 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001059/0.01335, allocations: 55.66 kB / 0.8841 GB, free: 15.74 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 2.842e-05/0.01338, allocations: 4 kB / 0.8841 GB, free: 15.74 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002722/0.01365, allocations: 158.8 kB / 0.8842 GB, free: 15.57 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=20): time 1.312e-06/0.01365, allocations: 0 / 0.8842 GB, free: 15.57 MB / 0.8542 GB Notification: Performance of matching and sorting (n=20): time 0.0005981/0.01425, allocations: 263.3 kB / 0.8845 GB, free: 15.31 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.883e-05/0.01431, allocations: 55.41 kB / 0.8845 GB, free: 15.24 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003358/0.01465, allocations: 307.1 kB / 0.8848 GB, free: 14.93 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 5.344e-05/0.0147, allocations: 37.7 kB / 0.8849 GB, free: 14.88 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001822/0.01488, allocations: 199.2 kB / 0.8851 GB, free: 14.69 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 6.855e-05/0.01495, allocations: 59.53 kB / 0.8851 GB, free: 14.63 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000199/0.01515, allocations: 103.3 kB / 0.8852 GB, free: 14.52 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0003192/0.01547, allocations: 0.5157 MB / 0.8857 GB, free: 13.99 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004006/0.01587, allocations: 245 kB / 0.886 GB, free: 13.73 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005259/0.01639, allocations: 369.5 kB / 0.8863 GB, free: 13.31 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005751/0.01697, allocations: 389.5 kB / 0.8867 GB, free: 12.86 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.01697, allocations: 0 / 0.8867 GB, free: 12.86 MB / 0.8542 GB Notification: Performance of matching and sorting (n=32) (initialization): time 0.001117/0.01809, allocations: 0.6399 MB / 0.8873 GB, free: 12.18 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001022/0.01819, allocations: 101.1 kB / 0.8874 GB, free: 12.06 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.206e-05/0.0182, allocations: 4 kB / 0.8874 GB, free: 12.06 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.092e-05/0.01822, allocations: 4 kB / 0.8874 GB, free: 12.05 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001353/0.01836, allocations: 27.92 kB / 0.8874 GB, free: 12.03 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.312e-05/0.01837, allocations: 12.23 kB / 0.8874 GB, free: 12.02 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004128/0.01879, allocations: 63.84 kB / 0.8875 GB, free: 11.95 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.689e-05/0.01884, allocations: 23.98 kB / 0.8875 GB, free: 11.93 MB / 0.8542 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.0002307/0.01907, allocations: 201.8 kB / 0.8877 GB, free: 11.72 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.731e-05/0.01912, allocations: 31.73 kB / 0.8878 GB, free: 11.69 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003996/0.01952, allocations: 211.3 kB / 0.888 GB, free: 11.48 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.831e-06/0.01953, allocations: 8 kB / 0.888 GB, free: 11.47 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.01953, allocations: 0 / 0.888 GB, free: 11.47 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.794e-06/0.01954, allocations: 3.984 kB / 0.888 GB, free: 11.47 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008117/0.02035, allocations: 0.5612 MB / 0.8885 GB, free: 10.87 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.502e-06/0.02035, allocations: 0 / 0.8885 GB, free: 10.87 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.969e-05/0.02041, allocations: 8 kB / 0.8885 GB, free: 10.86 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.02041, allocations: 4 kB / 0.8885 GB, free: 10.86 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.935e-05/0.02043, allocations: 7.984 kB / 0.8885 GB, free: 10.85 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.188e-06/0.02044, allocations: 4 kB / 0.8885 GB, free: 10.84 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.02044, allocations: 0 / 0.8885 GB, free: 10.84 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004692/0.02091, allocations: 361.5 kB / 0.8889 GB, free: 10.47 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 3.698e-05/0.02094, allocations: 27.8 kB / 0.8889 GB, free: 10.45 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.395e-05/0.02098, allocations: 7.984 kB / 0.8889 GB, free: 10.44 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.563e-05/0.02105, allocations: 4 kB / 0.8889 GB, free: 10.43 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.061e-05/0.02111, allocations: 19.97 kB / 0.8889 GB, free: 10.41 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.315e-05/0.02113, allocations: 4 kB / 0.8889 GB, free: 10.41 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0001996/0.02133, allocations: 206.7 kB / 0.8891 GB, free: 10.21 MB / 0.8542 GB Notification: Performance of sort global known variables: time 7e-08/0.02133, allocations: 0 / 0.8891 GB, free: 10.21 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0003667/0.02169, allocations: 75.88 kB / 0.8892 GB, free: 10.13 MB / 0.8542 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.0001991/0.02189, allocations: 110.9 kB / 0.8893 GB, free: 10.02 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0008874/0.02278, allocations: 0.5847 MB / 0.8899 GB, free: 9.375 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.02278, allocations: 0 / 0.8899 GB, free: 9.375 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0001503/0.02293, allocations: 84.95 kB / 0.89 GB, free: 9.289 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004978/0.02343, allocations: 72.73 kB / 0.89 GB, free: 9.219 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001025/0.02446, allocations: 375 kB / 0.8904 GB, free: 8.82 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001552/0.02461, allocations: 133.8 kB / 0.8905 GB, free: 8.672 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 7.563e-05/0.02469, allocations: 26.08 kB / 0.8906 GB, free: 8.645 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.671e-05/0.02475, allocations: 20.5 kB / 0.8906 GB, free: 8.625 MB / 0.8542 GB Notification: Performance of SimCode: time 6.21e-07/0.02475, allocations: 0 / 0.8906 GB, free: 8.625 MB / 0.8542 GB Notification: Performance of Templates: time 0.009809/0.03456, allocations: 4.401 MB / 0.8949 GB, free: 4.367 MB / 0.8542 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=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio.pipe 2>&1) [Timeout 240] 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: 8.680929692927748]