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.001873/0.001873, allocations: 92.7 kB / 19.44 MB, free: 324 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.002526/0.002526, allocations: 161.3 kB / 22.75 MB, free: 1.656 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.504/1.504, allocations: 177.1 MB / 203.1 MB, free: 5.625 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.195/3.195, allocations: 429.6 MB / 0.673 GB, free: 3.902 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 5.741e-06/5.741e-06, allocations: 4 kB / 0.8776 GB, free: 6.5 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.894e-05/4.468e-05, allocations: 2.312 kB / 0.8776 GB, free: 6.496 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio): time 0.002888/0.002933, allocations: 1.112 MB / 0.8787 GB, free: 5.414 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.002536/0.005469, allocations: 1.414 MB / 0.8801 GB, free: 3.988 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000149/0.005618, allocations: 4 kB / 0.8801 GB, free: 3.984 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 7.251e-05/0.005691, allocations: 24.77 kB / 0.8801 GB, free: 3.961 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 0.0002211/0.005912, allocations: 63.5 kB / 0.8802 GB, free: 3.898 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.001041/0.006953, allocations: 363.9 kB / 0.8805 GB, free: 3.543 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0007557/0.007709, allocations: 468.4 kB / 0.881 GB, free: 3.086 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002557/0.007965, allocations: 71.61 kB / 0.881 GB, free: 3.012 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005056/0.00847, allocations: 255.6 kB / 0.8813 GB, free: 2.762 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003211/0.008791, allocations: 132.8 kB / 0.8814 GB, free: 2.633 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 0.0001072/0.008898, allocations: 48 kB / 0.8814 GB, free: 2.586 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001444/0.009043, allocations: 60 kB / 0.8815 GB, free: 2.527 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 6.687e-05/0.00911, allocations: 52.84 kB / 0.8815 GB, free: 2.477 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 0.0001932/0.009303, allocations: 127.7 kB / 0.8817 GB, free: 2.352 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0007442/0.01005, allocations: 0.5453 MB / 0.8822 GB, free: 1.805 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 3.035e-06/0.01005, allocations: 1.125 kB / 0.8822 GB, free: 1.805 MB / 0.8386 GB Notification: Performance of FrontEnd: time 9.52e-07/0.01005, allocations: 0 / 0.8822 GB, free: 1.805 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.029e-05/0.01006, allocations: 0 / 0.8822 GB, free: 1.805 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.001087/0.01115, allocations: 0.554 MB / 0.8827 GB, free: 1.199 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.562e-05/0.01118, allocations: 8.031 kB / 0.8827 GB, free: 1.191 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001388/0.01132, allocations: 49.81 kB / 0.8828 GB, free: 1.145 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003824/0.01171, allocations: 217.5 kB / 0.883 GB, free: 0.9062 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.659e-05/0.01174, allocations: 20.38 kB / 0.883 GB, free: 0.8867 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.413e-05/0.01181, allocations: 25.16 kB / 0.883 GB, free: 0.8633 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003092/0.01211, allocations: 150.9 kB / 0.8832 GB, free: 0.7109 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.07e-05/0.01213, allocations: 4.688 kB / 0.8832 GB, free: 0.707 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.994e-05/0.01215, allocations: 4.375 kB / 0.8832 GB, free: 0.7031 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.109e-05/0.01216, allocations: 9.75 kB / 0.8832 GB, free: 0.6953 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001937/0.01235, allocations: 88.48 kB / 0.8833 GB, free: 0.6094 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001093/0.01344, allocations: 0.5404 MB / 0.8838 GB, free: 40 kB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002467/0.01369, allocations: 106.6 kB / 0.8839 GB, free: 15.92 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001119/0.0138, allocations: 48.84 kB / 0.884 GB, free: 15.87 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 2.646e-05/0.01383, allocations: 4 kB / 0.884 GB, free: 15.87 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003913/0.01422, allocations: 146.4 kB / 0.8841 GB, free: 15.71 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=20): time 1.673e-06/0.01422, allocations: 0 / 0.8841 GB, free: 15.71 MB / 0.8542 GB Notification: Performance of matching and sorting (n=20): time 0.0006148/0.01484, allocations: 265.9 kB / 0.8844 GB, free: 15.45 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.539e-05/0.01489, allocations: 57 kB / 0.8844 GB, free: 15.38 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002682/0.01516, allocations: 222.9 kB / 0.8846 GB, free: 15.16 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 6.236e-05/0.01522, allocations: 37.7 kB / 0.8847 GB, free: 15.11 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001592/0.01538, allocations: 136.6 kB / 0.8848 GB, free: 14.98 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 6.427e-05/0.01545, allocations: 54.69 kB / 0.8849 GB, free: 14.93 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000179/0.01562, allocations: 85.66 kB / 0.8849 GB, free: 14.84 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.000203/0.01583, allocations: 338.8 kB / 0.8853 GB, free: 14.5 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003596/0.01619, allocations: 221 kB / 0.8855 GB, free: 14.26 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004332/0.01662, allocations: 303.5 kB / 0.8858 GB, free: 13.91 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005042/0.01712, allocations: 335.8 kB / 0.8861 GB, free: 13.54 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.601e-06/0.01713, allocations: 8 kB / 0.8861 GB, free: 13.53 MB / 0.8542 GB Notification: Performance of matching and sorting (n=32) (initialization): time 0.001112/0.01824, allocations: 0.6124 MB / 0.8867 GB, free: 12.88 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001081/0.01835, allocations: 107.6 kB / 0.8868 GB, free: 12.75 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.048e-05/0.01836, allocations: 4 kB / 0.8868 GB, free: 12.75 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.18e-05/0.01838, allocations: 4 kB / 0.8868 GB, free: 12.75 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001268/0.01851, allocations: 23.92 kB / 0.8868 GB, free: 12.72 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.002e-05/0.01852, allocations: 4.25 kB / 0.8868 GB, free: 12.72 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005285/0.01905, allocations: 87.8 kB / 0.8869 GB, free: 12.63 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.591e-05/0.0191, allocations: 23.98 kB / 0.8869 GB, free: 12.61 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.0001925/0.0193, allocations: 159.1 kB / 0.8871 GB, free: 12.45 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.864e-05/0.01934, allocations: 31.8 kB / 0.8871 GB, free: 12.41 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003972/0.01974, allocations: 212.9 kB / 0.8873 GB, free: 12.2 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.333e-06/0.01975, allocations: 4 kB / 0.8873 GB, free: 12.2 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.01975, allocations: 0 / 0.8873 GB, free: 12.2 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-06/0.01976, allocations: 0 / 0.8873 GB, free: 12.2 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000698/0.02046, allocations: 484.1 kB / 0.8878 GB, free: 11.69 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.02046, allocations: 0 / 0.8878 GB, free: 11.69 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.955e-05/0.02055, allocations: 15.94 kB / 0.8878 GB, free: 11.68 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.837e-06/0.02055, allocations: 0 / 0.8878 GB, free: 11.68 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.819e-05/0.02058, allocations: 11.98 kB / 0.8878 GB, free: 11.66 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.02058, allocations: 0 / 0.8878 GB, free: 11.66 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.02058, allocations: 0 / 0.8878 GB, free: 11.66 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004232/0.02101, allocations: 303.2 kB / 0.8881 GB, free: 11.35 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 4.43e-05/0.02105, allocations: 27.8 kB / 0.8881 GB, free: 11.32 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.549e-05/0.02108, allocations: 0 / 0.8881 GB, free: 11.32 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.122e-05/0.02117, allocations: 11.98 kB / 0.8881 GB, free: 11.31 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.686e-05/0.02122, allocations: 11.98 kB / 0.8881 GB, free: 11.3 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.583e-05/0.02124, allocations: 11.92 kB / 0.8882 GB, free: 11.29 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0001745/0.02141, allocations: 154.8 kB / 0.8883 GB, free: 11.14 MB / 0.8542 GB Notification: Performance of sort global known variables: time 8e-08/0.02141, allocations: 0 / 0.8883 GB, free: 11.14 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0003928/0.02181, allocations: 75.83 kB / 0.8884 GB, free: 11.06 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.0002047/0.02201, allocations: 120.4 kB / 0.8885 GB, free: 10.94 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0008049/0.02282, allocations: 0.4952 MB / 0.889 GB, free: 10.39 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.02282, allocations: 0 / 0.889 GB, free: 10.39 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0001356/0.02295, allocations: 69.28 kB / 0.889 GB, free: 10.32 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000491/0.02344, allocations: 72.78 kB / 0.8891 GB, free: 10.25 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007919/0.02424, allocations: 369.3 kB / 0.8895 GB, free: 9.859 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001466/0.02438, allocations: 129.9 kB / 0.8896 GB, free: 9.711 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 9.038e-05/0.02447, allocations: 17.95 kB / 0.8896 GB, free: 9.691 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.264e-05/0.02453, allocations: 20.5 kB / 0.8896 GB, free: 9.672 MB / 0.8542 GB Notification: Performance of SimCode: time 4.91e-07/0.02453, allocations: 0 / 0.8896 GB, free: 9.672 MB / 0.8542 GB Notification: Performance of Templates: time 0.01009/0.03462, allocations: 4.391 MB / 0.8939 GB, free: 5.422 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=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/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.378410040982999]