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.0009879/0.0009879, allocations: 93.06 kB / 19.65 MB, free: 280 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.001076/0.001076, allocations: 165 kB / 23.02 MB, free: 1.551 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 0.9423/0.9423, allocations: 177.1 MB / 203.4 MB, free: 5.652 MB / 186.7 MB " [Timeout remaining time 179] 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 2.122/2.122, allocations: 429.5 MB / 0.6732 GB, free: 4.055 MB / 0.6355 GB " [Timeout remaining time 177] 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.396e-06/3.396e-06, allocations: 0 / 0.8782 GB, free: 6.305 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.168e-05/3.508e-05, allocations: 2.312 kB / 0.8782 GB, free: 6.301 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio): time 0.002724/0.002759, allocations: 1.166 MB / 0.8793 GB, free: 5.156 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.002162/0.004921, allocations: 1.453 MB / 0.8807 GB, free: 3.691 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001031/0.005024, allocations: 0.75 kB / 0.8807 GB, free: 3.691 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.0001945/0.005218, allocations: 19.73 kB / 0.8808 GB, free: 3.672 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 0.0001857/0.005404, allocations: 60.27 kB / 0.8808 GB, free: 3.613 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008671/0.006271, allocations: 368.9 kB / 0.8812 GB, free: 3.254 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0005253/0.006796, allocations: 475 kB / 0.8816 GB, free: 2.789 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001977/0.006994, allocations: 63.67 kB / 0.8817 GB, free: 2.723 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003036/0.007298, allocations: 256.7 kB / 0.8819 GB, free: 2.473 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002304/0.007528, allocations: 131.6 kB / 0.8821 GB, free: 2.344 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 7.958e-05/0.007608, allocations: 48.66 kB / 0.8821 GB, free: 2.297 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001244/0.007732, allocations: 56 kB / 0.8822 GB, free: 2.242 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 5.541e-05/0.007787, allocations: 48.55 kB / 0.8822 GB, free: 2.195 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 0.0001478/0.007935, allocations: 135.7 kB / 0.8823 GB, free: 2.062 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0004009/0.008336, allocations: 331 kB / 0.8826 GB, free: 1.742 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.00834, allocations: 3.938 kB / 0.8826 GB, free: 1.738 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.112e-06/0.008341, allocations: 0 / 0.8826 GB, free: 1.738 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 5.921e-06/0.008347, allocations: 0 / 0.8826 GB, free: 1.738 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.0008355/0.009182, allocations: 0.6566 MB / 0.8833 GB, free: 1.023 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.393e-05/0.009226, allocations: 8.031 kB / 0.8833 GB, free: 1.016 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001133/0.009339, allocations: 40.8 kB / 0.8833 GB, free: 0.9766 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003359/0.009675, allocations: 224.4 kB / 0.8836 GB, free: 0.7305 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.509e-05/0.00971, allocations: 16.38 kB / 0.8836 GB, free: 0.7148 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.077e-05/0.009771, allocations: 32.36 kB / 0.8836 GB, free: 0.6836 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002365/0.01001, allocations: 125 kB / 0.8837 GB, free: 0.5547 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.652e-05/0.01002, allocations: 192 / 0.8837 GB, free: 0.5547 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.034e-05/0.01004, allocations: 8.375 kB / 0.8837 GB, free: 0.5469 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.551e-05/0.01006, allocations: 8.125 kB / 0.8837 GB, free: 0.5391 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001282/0.01019, allocations: 46.14 kB / 0.8838 GB, free: 0.4961 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001052/0.01124, allocations: 0.5938 MB / 0.8844 GB, free: 15.86 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001367/0.01138, allocations: 87.02 kB / 0.8844 GB, free: 15.77 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.736e-05/0.01142, allocations: 32.8 kB / 0.8845 GB, free: 15.73 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 2.198e-05/0.01145, allocations: 4 kB / 0.8845 GB, free: 15.73 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001477/0.01159, allocations: 144.1 kB / 0.8846 GB, free: 15.57 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=20): time 1.863e-06/0.0116, allocations: 0 / 0.8846 GB, free: 15.57 MB / 0.8542 GB Notification: Performance of matching and sorting (n=20): time 0.0003118/0.01191, allocations: 197.5 kB / 0.8848 GB, free: 15.38 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.446e-05/0.01194, allocations: 68.11 kB / 0.8849 GB, free: 15.3 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001504/0.01209, allocations: 253.6 kB / 0.8851 GB, free: 15.03 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 3.469e-05/0.01213, allocations: 43.31 kB / 0.8851 GB, free: 14.98 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 9.476e-05/0.01222, allocations: 191.2 kB / 0.8853 GB, free: 14.8 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 3.877e-05/0.01226, allocations: 51.53 kB / 0.8854 GB, free: 14.75 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000115/0.01238, allocations: 95.31 kB / 0.8855 GB, free: 14.64 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001235/0.0125, allocations: 0.5001 MB / 0.886 GB, free: 14.13 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001881/0.01269, allocations: 181.7 kB / 0.8861 GB, free: 13.94 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002297/0.01292, allocations: 295.8 kB / 0.8864 GB, free: 13.59 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000269/0.01319, allocations: 319.6 kB / 0.8867 GB, free: 13.21 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.39e-06/0.01319, allocations: 4 kB / 0.8867 GB, free: 13.21 MB / 0.8542 GB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005545/0.01375, allocations: 0.5398 MB / 0.8872 GB, free: 12.62 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 5.991e-05/0.01381, allocations: 102.7 kB / 0.8873 GB, free: 12.51 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.071e-06/0.01381, allocations: 0 / 0.8873 GB, free: 12.51 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.908e-05/0.01383, allocations: 4 kB / 0.8874 GB, free: 12.5 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.931e-05/0.01393, allocations: 23.98 kB / 0.8874 GB, free: 12.48 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.045e-06/0.01394, allocations: 10.84 kB / 0.8874 GB, free: 12.47 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001954/0.01413, allocations: 67.83 kB / 0.8874 GB, free: 12.41 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.336e-05/0.01417, allocations: 27.98 kB / 0.8875 GB, free: 12.38 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.0001088/0.01428, allocations: 182.1 kB / 0.8876 GB, free: 12.19 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.44e-05/0.0143, allocations: 31.8 kB / 0.8877 GB, free: 12.16 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002192/0.01452, allocations: 172.9 kB / 0.8878 GB, free: 11.99 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.01452, allocations: 4 kB / 0.8878 GB, free: 11.98 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.446e-06/0.01453, allocations: 0 / 0.8878 GB, free: 11.98 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.127e-06/0.01453, allocations: 0 / 0.8878 GB, free: 11.98 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003822/0.01491, allocations: 0.4951 MB / 0.8883 GB, free: 11.45 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.01491, allocations: 3.984 kB / 0.8883 GB, free: 11.45 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.391e-05/0.01495, allocations: 12 kB / 0.8883 GB, free: 11.43 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.342e-06/0.01495, allocations: 0 / 0.8883 GB, free: 11.43 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.167e-06/0.01496, allocations: 4 kB / 0.8884 GB, free: 11.43 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.885e-06/0.01496, allocations: 11.98 kB / 0.8884 GB, free: 11.42 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.01496, allocations: 0 / 0.8884 GB, free: 11.42 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001957/0.01516, allocations: 319.6 kB / 0.8887 GB, free: 11.09 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 1.829e-05/0.01518, allocations: 15.86 kB / 0.8887 GB, free: 11.07 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.922e-05/0.0152, allocations: 8 kB / 0.8887 GB, free: 11.06 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.605e-05/0.01524, allocations: 7.984 kB / 0.8887 GB, free: 11.05 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.281e-05/0.01528, allocations: 7.984 kB / 0.8887 GB, free: 11.05 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.347e-05/0.0153, allocations: 19.98 kB / 0.8887 GB, free: 11.03 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 8.785e-05/0.01539, allocations: 178.9 kB / 0.8889 GB, free: 10.85 MB / 0.8542 GB Notification: Performance of sort global known variables: time 6e-08/0.01539, allocations: 0 / 0.8889 GB, free: 10.85 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0002305/0.01562, allocations: 75.83 kB / 0.889 GB, free: 10.78 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.0001334/0.01575, allocations: 120.3 kB / 0.8891 GB, free: 10.65 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0004361/0.01619, allocations: 472.3 kB / 0.8895 GB, free: 10.13 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.01619, allocations: 0 / 0.8895 GB, free: 10.13 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 6.725e-05/0.01625, allocations: 59.59 kB / 0.8896 GB, free: 10.07 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002858/0.01654, allocations: 72.56 kB / 0.8897 GB, free: 10 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004452/0.01699, allocations: 353.1 kB / 0.89 GB, free: 9.625 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.407e-05/0.01703, allocations: 75.98 kB / 0.8901 GB, free: 9.531 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 4.789e-05/0.01708, allocations: 25.94 kB / 0.8901 GB, free: 9.504 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.452e-05/0.01711, allocations: 20.5 kB / 0.8901 GB, free: 9.484 MB / 0.8542 GB Notification: Performance of SimCode: time 8.92e-07/0.01711, allocations: 0 / 0.8901 GB, free: 9.484 MB / 0.8542 GB Notification: Performance of Templates: time 0.005922/0.02304, allocations: 4.4 MB / 0.8944 GB, free: 5.223 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.6155425612814724]