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.001438/0.001438, allocations: 110.6 kB / 18.94 MB, free: 2.949 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.001633/0.001633, allocations: 220.3 kB / 22.26 MB, free: 5.125 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.54/1.54, allocations: 230.6 MB / 256 MB, free: 7.961 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.398/3.398, allocations: 0.505 GB / 0.8101 GB, free: 22.05 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: "" <> buildModelFMU(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio,fileNamePrefix="Buildings_latest_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_latest_Buildings_Controls_OBC_Utilities_PIDWithAutotuning_Relay_BaseClasses_Validation_HalfPeriodRatio",fmuType="me",version="2.0",platforms={"static"}) [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.00295/0.00295, allocations: 70.23 kB / 1.177 GB, free: 17.07 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3599/0.3629, allocations: 180.2 MB / 1.353 GB, free: 8.508 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio): time 0.00339/0.3663, allocations: 1.18 MB / 1.354 GB, free: 7.328 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.002447/0.3687, allocations: 1.444 MB / 1.355 GB, free: 5.871 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001553/0.3689, allocations: 0 / 1.355 GB, free: 5.871 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 8.658e-05/0.369, allocations: 23.67 kB / 1.355 GB, free: 5.848 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.00019/0.3691, allocations: 59.56 kB / 1.356 GB, free: 5.789 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.001022/0.3702, allocations: 382.4 kB / 1.356 GB, free: 5.426 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0007269/0.3709, allocations: 471.1 kB / 1.356 GB, free: 4.965 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002156/0.3711, allocations: 71.61 kB / 1.356 GB, free: 4.895 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002809/0.3714, allocations: 175.5 kB / 1.357 GB, free: 4.723 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002903/0.3717, allocations: 163.4 kB / 1.357 GB, free: 4.562 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 7.337e-05/0.3717, allocations: 44 kB / 1.357 GB, free: 4.52 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001188/0.3719, allocations: 67.97 kB / 1.357 GB, free: 4.453 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 5.225e-05/0.3719, allocations: 51.78 kB / 1.357 GB, free: 4.402 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001838/0.3721, allocations: 171.3 kB / 1.357 GB, free: 4.234 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0005324/0.3726, allocations: 498.5 kB / 1.358 GB, free: 3.746 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.3726, allocations: 4 kB / 1.358 GB, free: 3.742 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.633e-06/0.3726, allocations: 0 / 1.358 GB, free: 3.742 MB / 1.045 GB Notification: Performance of Transformations before backend: time 1.112e-05/0.3727, allocations: 0 / 1.358 GB, free: 3.742 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.0008323/0.3735, allocations: 0.549 MB / 1.358 GB, free: 3.141 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.298e-05/0.3735, allocations: 12.03 kB / 1.358 GB, free: 3.129 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.126e-05/0.3736, allocations: 50.73 kB / 1.358 GB, free: 3.07 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.007e-05/0.3737, allocations: 32.8 kB / 1.358 GB, free: 3.039 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003428/0.374, allocations: 218.1 kB / 1.358 GB, free: 2.801 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.83e-05/0.374, allocations: 20.38 kB / 1.358 GB, free: 2.781 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.361e-05/0.3741, allocations: 28.38 kB / 1.358 GB, free: 2.754 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002696/0.3744, allocations: 153.7 kB / 1.359 GB, free: 2.598 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.608e-06/0.3744, allocations: 0 / 1.359 GB, free: 2.598 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.736e-05/0.3744, allocations: 8 kB / 1.359 GB, free: 2.59 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.607e-06/0.3744, allocations: 0 / 1.359 GB, free: 2.59 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001792/0.3746, allocations: 87.95 kB / 1.359 GB, free: 2.504 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001057/0.3756, allocations: 0.6667 MB / 1.359 GB, free: 1.793 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002055/0.3758, allocations: 106.5 kB / 1.359 GB, free: 1.68 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.716e-05/0.3759, allocations: 49.03 kB / 1.359 GB, free: 1.629 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.654e-05/0.3759, allocations: 7.984 kB / 1.359 GB, free: 1.621 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002848/0.3762, allocations: 147.2 kB / 1.36 GB, free: 1.465 MB / 1.045 GB Notification: Performance of pre-optimization done (n=20): time 1.503e-06/0.3762, allocations: 0 / 1.36 GB, free: 1.465 MB / 1.045 GB Notification: Performance of matching and sorting (n=20): time 0.0004799/0.3767, allocations: 247.4 kB / 1.36 GB, free: 1.219 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.964e-05/0.3768, allocations: 63.41 kB / 1.36 GB, free: 1.145 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002166/0.377, allocations: 211 kB / 1.36 GB, free: 0.9297 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 4.945e-05/0.377, allocations: 37.7 kB / 1.36 GB, free: 0.8867 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001233/0.3772, allocations: 140.6 kB / 1.36 GB, free: 0.7461 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 5.2e-05/0.3772, allocations: 59.52 kB / 1.36 GB, free: 0.6875 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001587/0.3774, allocations: 85.66 kB / 1.36 GB, free: 0.5977 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001492/0.3775, allocations: 334.8 kB / 1.361 GB, free: 268 kB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002643/0.3778, allocations: 131.9 kB / 1.361 GB, free: 136 kB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000335/0.3781, allocations: 213.5 kB / 1.361 GB, free: 15.89 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004399/0.3785, allocations: 334.4 kB / 1.361 GB, free: 15.51 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.419e-06/0.3786, allocations: 7.938 kB / 1.361 GB, free: 15.5 MB / 1.061 GB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0008654/0.3794, allocations: 0.5021 MB / 1.362 GB, free: 14.97 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 8.34e-05/0.3795, allocations: 105.1 kB / 1.362 GB, free: 14.85 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.54e-06/0.3795, allocations: 0 / 1.362 GB, free: 14.85 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.658e-05/0.3795, allocations: 4 kB / 1.362 GB, free: 14.85 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001183/0.3796, allocations: 27.92 kB / 1.362 GB, free: 14.82 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.496e-06/0.3797, allocations: 4 kB / 1.362 GB, free: 14.82 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004852/0.3801, allocations: 88.05 kB / 1.362 GB, free: 14.73 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.131e-05/0.3802, allocations: 27.97 kB / 1.362 GB, free: 14.7 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.0001652/0.3804, allocations: 153.7 kB / 1.362 GB, free: 14.54 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.133e-05/0.3804, allocations: 19.86 kB / 1.362 GB, free: 14.52 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003385/0.3807, allocations: 205.5 kB / 1.362 GB, free: 14.31 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.26e-06/0.3807, allocations: 4 kB / 1.362 GB, free: 14.31 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.3807, allocations: 0 / 1.362 GB, free: 14.31 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.51e-06/0.3807, allocations: 7.922 kB / 1.362 GB, free: 14.3 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006661/0.3814, allocations: 0.5286 MB / 1.363 GB, free: 13.72 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.3814, allocations: 4 kB / 1.363 GB, free: 13.72 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.098e-05/0.3815, allocations: 15.94 kB / 1.363 GB, free: 13.7 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.509e-06/0.3815, allocations: 4 kB / 1.363 GB, free: 13.7 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.499e-05/0.3815, allocations: 3.984 kB / 1.363 GB, free: 13.7 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.923e-06/0.3815, allocations: 4.156 kB / 1.363 GB, free: 13.69 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.949e-06/0.3815, allocations: 3.938 kB / 1.363 GB, free: 13.69 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003404/0.3818, allocations: 288.7 kB / 1.363 GB, free: 13.39 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 3.877e-05/0.3819, allocations: 27.89 kB / 1.363 GB, free: 13.36 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.532e-05/0.3819, allocations: 0 / 1.363 GB, free: 13.36 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.454e-05/0.382, allocations: 15.98 kB / 1.363 GB, free: 13.35 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.591e-05/0.382, allocations: 15.92 kB / 1.363 GB, free: 13.33 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.342e-05/0.382, allocations: 7.984 kB / 1.363 GB, free: 13.32 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.000138/0.3822, allocations: 160.4 kB / 1.364 GB, free: 13.17 MB / 1.061 GB Notification: Performance of sort global known variables: time 9e-08/0.3822, allocations: 0 / 1.364 GB, free: 13.17 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003645/0.3825, allocations: 67.89 kB / 1.364 GB, free: 13.1 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.000692/0.3832, allocations: 0.8326 MB / 1.364 GB, free: 12.24 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0006292/0.3839, allocations: 425.9 kB / 1.365 GB, free: 11.79 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 3.838e-06/0.3839, allocations: 8 kB / 1.365 GB, free: 11.78 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001156/0.384, allocations: 67.89 kB / 1.365 GB, free: 11.71 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004573/0.3844, allocations: 68.2 kB / 1.365 GB, free: 11.65 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003773/0.3882, allocations: 2.878 MB / 1.368 GB, free: 8.609 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003556/0.3886, allocations: 0.7359 MB / 1.368 GB, free: 7.848 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 8.104e-05/0.3887, allocations: 21.95 kB / 1.368 GB, free: 7.828 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000107/0.3888, allocations: 71.41 kB / 1.369 GB, free: 7.758 MB / 1.061 GB Notification: Performance of SimCode: time 4.31e-07/0.3888, allocations: 0 / 1.369 GB, free: 7.758 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03536/0.4241, allocations: 6.125 MB / 1.375 GB, free: 1.844 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.43/11.85, allocations: 7.969 kB / 1.375 GB, free: 1.836 MB / 1.061 GB " [Timeout remaining time 288] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_Utilities_PIDWithAutotuning_Relay_BaseClasses_Validation_HalfPeriodRatio_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_Utilities_PIDWithAutotuning_Relay_BaseClasses_Validation_HalfPeriodRatio.fmu > Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio.pipe 2>&1) [Timeout 840.0] 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: 19.06327547505498]