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.0008293/0.0008293, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 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.0009407/0.0009407, allocations: 169.9 kB / 22.46 MB, free: 2.105 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.9162/0.9162, allocations: 177.1 MB / 202.8 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] 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 1.754/1.754, allocations: 377.8 MB / 0.6221 GB, free: 8.672 MB / 0.5886 GB " [Timeout remaining time 178] 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: "" <> buildModelFMU(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_Utilities_PIDWithAutotuning_Relay_BaseClasses_Validation_HalfPeriodRatio",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_Utilities_PIDWithAutotuning_Relay_BaseClasses_Validation_HalfPeriodRatio",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.905e-06/2.905e-06, allocations: 0 / 0.981 GB, free: 2.578 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.753e-05/2.044e-05, allocations: 2.281 kB / 0.981 GB, free: 2.574 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio): time 0.00171/0.00173, allocations: 1.108 MB / 0.982 GB, free: 1.469 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.001346/0.003076, allocations: 1.431 MB / 0.9834 GB, free: 24 kB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.2e-05/0.003158, allocations: 4 kB / 0.9834 GB, free: 20 kB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 5.07e-05/0.003208, allocations: 23.78 kB / 0.9835 GB, free: 15.99 MB / 0.948 GB Notification: Performance of NFTyping.typeBindings: time 0.000112/0.00332, allocations: 59.45 kB / 0.9835 GB, free: 15.94 MB / 0.948 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006304/0.003951, allocations: 370.3 kB / 0.9839 GB, free: 15.59 MB / 0.948 GB Notification: Performance of NFFlatten.flatten: time 0.0003478/0.004299, allocations: 479 kB / 0.9843 GB, free: 15.12 MB / 0.948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001449/0.004444, allocations: 67.67 kB / 0.9844 GB, free: 15.05 MB / 0.948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002097/0.004653, allocations: 259.6 kB / 0.9846 GB, free: 14.8 MB / 0.948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001534/0.004807, allocations: 123.7 kB / 0.9848 GB, free: 14.68 MB / 0.948 GB Notification: Performance of NFPackage.collectConstants: time 4.332e-05/0.00485, allocations: 48 kB / 0.9848 GB, free: 14.63 MB / 0.948 GB Notification: Performance of NFFlatten.collectFunctions: time 7.706e-05/0.004927, allocations: 59.92 kB / 0.9849 GB, free: 14.57 MB / 0.948 GB Notification: Performance of NFScalarize.scalarize: time 3.576e-05/0.004963, allocations: 51.77 kB / 0.9849 GB, free: 14.52 MB / 0.948 GB Notification: Performance of NFVerifyModel.verify: time 9.296e-05/0.005056, allocations: 131.7 kB / 0.985 GB, free: 14.39 MB / 0.948 GB Notification: Performance of NFConvertDAE.convert: time 0.0003616/0.005417, allocations: 0.5493 MB / 0.9856 GB, free: 13.84 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 1.933e-06/0.005419, allocations: 0 / 0.9856 GB, free: 13.84 MB / 0.948 GB Notification: Performance of FrontEnd: time 1.363e-06/0.005421, allocations: 0 / 0.9856 GB, free: 13.84 MB / 0.948 GB Notification: Performance of Transformations before backend: time 4.568e-06/0.005425, allocations: 0 / 0.9856 GB, free: 13.84 MB / 0.948 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.0005725/0.005998, allocations: 0.549 MB / 0.9861 GB, free: 13.24 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.596e-05/0.006034, allocations: 12.03 kB / 0.9861 GB, free: 13.23 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.397e-05/0.006068, allocations: 46.73 kB / 0.9862 GB, free: 13.17 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.812e-05/0.006126, allocations: 32.8 kB / 0.9862 GB, free: 13.14 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002461/0.006372, allocations: 229.3 kB / 0.9864 GB, free: 12.89 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.991e-05/0.006392, allocations: 16.38 kB / 0.9864 GB, free: 12.88 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.378e-05/0.006425, allocations: 28.38 kB / 0.9865 GB, free: 12.85 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000181/0.006606, allocations: 151.5 kB / 0.9866 GB, free: 12.7 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.685e-06/0.006614, allocations: 192 / 0.9866 GB, free: 12.7 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.263e-05/0.006627, allocations: 8.375 kB / 0.9866 GB, free: 12.69 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.873e-06/0.006634, allocations: 11.94 kB / 0.9866 GB, free: 12.68 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001165/0.00675, allocations: 83.97 kB / 0.9867 GB, free: 12.59 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006995/0.00745, allocations: 0.5695 MB / 0.9873 GB, free: 11.98 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001367/0.007586, allocations: 94.55 kB / 0.9874 GB, free: 11.88 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.028e-05/0.007647, allocations: 56.77 kB / 0.9874 GB, free: 11.82 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 1.825e-05/0.007665, allocations: 0 / 0.9874 GB, free: 11.82 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001951/0.00786, allocations: 147.2 kB / 0.9876 GB, free: 11.66 MB / 0.948 GB Notification: Performance of pre-optimization done (n=20): time 2.294e-06/0.007862, allocations: 7.938 kB / 0.9876 GB, free: 11.66 MB / 0.948 GB Notification: Performance of matching and sorting (n=20): time 0.0003217/0.008184, allocations: 256 kB / 0.9878 GB, free: 11.4 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.324e-05/0.008217, allocations: 55.41 kB / 0.9879 GB, free: 11.34 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001349/0.008352, allocations: 212.2 kB / 0.9881 GB, free: 11.12 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 3.052e-05/0.008383, allocations: 37.7 kB / 0.9881 GB, free: 11.08 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 7.486e-05/0.008457, allocations: 144.5 kB / 0.9882 GB, free: 10.93 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 3.028e-05/0.008488, allocations: 51.62 kB / 0.9883 GB, free: 10.88 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.234e-05/0.00858, allocations: 89.59 kB / 0.9884 GB, free: 10.79 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 7.767e-05/0.008658, allocations: 330.8 kB / 0.9887 GB, free: 10.46 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002077/0.008865, allocations: 229 kB / 0.9889 GB, free: 10.21 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002186/0.009084, allocations: 302.9 kB / 0.9892 GB, free: 9.867 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000256/0.00934, allocations: 338.3 kB / 0.9895 GB, free: 9.484 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.009343, allocations: 4 kB / 0.9895 GB, free: 9.48 MB / 0.948 GB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005346/0.009878, allocations: 0.597 MB / 0.9901 GB, free: 8.84 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 4.782e-05/0.009925, allocations: 97.09 kB / 0.9902 GB, free: 8.727 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.644e-06/0.009933, allocations: 7.984 kB / 0.9902 GB, free: 8.719 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.35e-05/0.009947, allocations: 4 kB / 0.9902 GB, free: 8.715 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.656e-05/0.01002, allocations: 23.94 kB / 0.9902 GB, free: 8.691 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.734e-06/0.01003, allocations: 8.141 kB / 0.9902 GB, free: 8.684 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002298/0.01026, allocations: 96 kB / 0.9903 GB, free: 8.59 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.847e-05/0.01029, allocations: 24.02 kB / 0.9903 GB, free: 8.566 MB / 0.948 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 9.988e-05/0.01039, allocations: 150.4 kB / 0.9905 GB, free: 8.41 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.687e-05/0.01041, allocations: 19.84 kB / 0.9905 GB, free: 8.391 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002184/0.01062, allocations: 211.3 kB / 0.9907 GB, free: 8.172 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.01063, allocations: 7.984 kB / 0.9907 GB, free: 8.164 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.01063, allocations: 0 / 0.9907 GB, free: 8.164 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.449e-06/0.01064, allocations: 4 kB / 0.9907 GB, free: 8.16 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003887/0.01102, allocations: 0.5189 MB / 0.9912 GB, free: 7.594 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.01103, allocations: 0 / 0.9912 GB, free: 7.594 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.407e-05/0.01106, allocations: 19.92 kB / 0.9912 GB, free: 7.574 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.363e-06/0.01106, allocations: 0 / 0.9912 GB, free: 7.574 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.508e-06/0.01107, allocations: 8 kB / 0.9913 GB, free: 7.566 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.01107, allocations: 0 / 0.9913 GB, free: 7.566 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.01107, allocations: 0 / 0.9913 GB, free: 7.566 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000199/0.01127, allocations: 295 kB / 0.9915 GB, free: 7.262 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 1.746e-05/0.01129, allocations: 19.86 kB / 0.9916 GB, free: 7.242 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.67e-05/0.01131, allocations: 7.984 kB / 0.9916 GB, free: 7.234 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.973e-05/0.01135, allocations: 4 kB / 0.9916 GB, free: 7.23 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.392e-05/0.01138, allocations: 19.97 kB / 0.9916 GB, free: 7.211 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.674e-06/0.01139, allocations: 4 kB / 0.9916 GB, free: 7.207 MB / 0.948 GB Notification: Performance of sorting global known variables: time 8.453e-05/0.01147, allocations: 158.8 kB / 0.9917 GB, free: 7.051 MB / 0.948 GB Notification: Performance of sort global known variables: time 5e-08/0.01147, allocations: 0 / 0.9917 GB, free: 7.051 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0002235/0.0117, allocations: 75.77 kB / 0.9918 GB, free: 6.977 MB / 0.948 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.0004082/0.0121, allocations: 0.8484 MB / 0.9926 GB, free: 6.105 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0004185/0.01252, allocations: 0.507 MB / 0.9931 GB, free: 5.543 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.253e-06/0.01252, allocations: 0 / 0.9931 GB, free: 5.543 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 7.433e-05/0.0126, allocations: 67.91 kB / 0.9932 GB, free: 5.477 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002783/0.01288, allocations: 54.77 kB / 0.9933 GB, free: 5.426 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00265/0.01553, allocations: 3.278 MB / 0.9965 GB, free: 1.914 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.668e-05/0.01562, allocations: 130.1 kB / 0.9966 GB, free: 1.766 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 5.565e-05/0.01568, allocations: 17.95 kB / 0.9966 GB, free: 1.746 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.477e-05/0.01576, allocations: 72.47 kB / 0.9967 GB, free: 1.672 MB / 0.948 GB Notification: Performance of SimCode: time 4.71e-07/0.01576, allocations: 0 / 0.9967 GB, free: 1.672 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01851/0.03427, allocations: 7.054 MB / 1.004 GB, free: 10.94 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.771/6.805, allocations: 15.88 kB / 1.004 GB, free: 10.93 MB / 0.9636 GB " [Timeout remaining time 293] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_Utilities_PIDWithAutotuning_Relay_BaseClasses_Validation_HalfPeriodRatio_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_OBC_Utilities_PIDWithAutotuning_Relay_BaseClasses_Validation_HalfPeriodRatio.fmu > Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio.pipe 2>&1) [Timeout 420.0] 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: 10.910498944111168]