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.001903/0.001903, allocations: 107 kB / 16.45 MB, free: 6.453 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.001992/0.001992, allocations: 213.7 kB / 19.43 MB, free: 3.625 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.484/1.484, allocations: 230.6 MB / 252.8 MB, free: 8.961 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.21/3.21, allocations: 0.49 GB / 0.7916 GB, free: 33.39 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-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: 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.00199/0.00199, allocations: 72.88 kB / 1.149 GB, free: 26.35 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3648/0.3668, allocations: 176.1 MB / 1.321 GB, free: 3.332 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio): time 0.003266/0.3701, allocations: 1.187 MB / 1.322 GB, free: 2.148 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002331/0.3724, allocations: 1.436 MB / 1.323 GB, free: 0.6992 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000114/0.3725, allocations: 11.94 kB / 1.323 GB, free: 0.6875 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 6.394e-05/0.3726, allocations: 19.73 kB / 1.323 GB, free: 0.668 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0001628/0.3727, allocations: 59.56 kB / 1.323 GB, free: 0.6094 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009889/0.3737, allocations: 368.1 kB / 1.324 GB, free: 268 kB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.000567/0.3743, allocations: 463.2 kB / 1.324 GB, free: 15.8 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001938/0.3745, allocations: 78.95 kB / 1.324 GB, free: 15.73 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002171/0.3747, allocations: 175.5 kB / 1.324 GB, free: 15.55 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002839/0.375, allocations: 167.3 kB / 1.325 GB, free: 15.39 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 7.321e-05/0.375, allocations: 52 kB / 1.325 GB, free: 15.34 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001213/0.3752, allocations: 59.98 kB / 1.325 GB, free: 15.28 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 5.921e-05/0.3752, allocations: 51.83 kB / 1.325 GB, free: 15.23 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001972/0.3754, allocations: 167.3 kB / 1.325 GB, free: 15.07 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0006126/0.376, allocations: 498.6 kB / 1.325 GB, free: 14.58 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.376, allocations: 0 / 1.325 GB, free: 14.58 MB / 1.029 GB Notification: Performance of FrontEnd: time 3.757e-06/0.376, allocations: 3.984 kB / 1.325 GB, free: 14.57 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.512e-06/0.3761, allocations: 0 / 1.325 GB, free: 14.57 MB / 1.029 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.0009604/0.377, allocations: 0.6243 MB / 1.326 GB, free: 13.88 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.246e-05/0.3771, allocations: 15.98 kB / 1.326 GB, free: 13.86 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.348e-05/0.3771, allocations: 46.73 kB / 1.326 GB, free: 13.81 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.075e-05/0.3772, allocations: 36.75 kB / 1.326 GB, free: 13.77 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000363/0.3776, allocations: 283.9 kB / 1.326 GB, free: 13.46 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.711e-05/0.3776, allocations: 16.38 kB / 1.326 GB, free: 13.44 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.043e-05/0.3777, allocations: 28.36 kB / 1.326 GB, free: 13.41 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002775/0.3779, allocations: 145.8 kB / 1.327 GB, free: 13.27 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.146e-06/0.3779, allocations: 0 / 1.327 GB, free: 13.27 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.86e-05/0.378, allocations: 8 kB / 1.327 GB, free: 13.26 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.037e-06/0.378, allocations: 7.984 kB / 1.327 GB, free: 13.25 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001842/0.3782, allocations: 91.89 kB / 1.327 GB, free: 13.16 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001139/0.3793, allocations: 0.6989 MB / 1.327 GB, free: 12.41 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002136/0.3795, allocations: 106.5 kB / 1.327 GB, free: 12.3 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.328e-05/0.3796, allocations: 48.78 kB / 1.328 GB, free: 12.25 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.571e-05/0.3796, allocations: 0 / 1.328 GB, free: 12.25 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000267/0.3799, allocations: 151.3 kB / 1.328 GB, free: 12.09 MB / 1.029 GB Notification: Performance of pre-optimization done (n=20): time 1.703e-06/0.3799, allocations: 0 / 1.328 GB, free: 12.09 MB / 1.029 GB Notification: Performance of matching and sorting (n=20): time 0.0005222/0.3804, allocations: 247.2 kB / 1.328 GB, free: 11.84 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.373e-05/0.3805, allocations: 67.33 kB / 1.328 GB, free: 11.76 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002462/0.3807, allocations: 210.7 kB / 1.328 GB, free: 11.55 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 6.747e-05/0.3808, allocations: 41.7 kB / 1.328 GB, free: 11.5 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001288/0.3809, allocations: 144.6 kB / 1.328 GB, free: 11.36 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 5.269e-05/0.381, allocations: 51.58 kB / 1.328 GB, free: 11.3 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001784/0.3812, allocations: 85.67 kB / 1.328 GB, free: 11.21 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001802/0.3813, allocations: 334.8 kB / 1.329 GB, free: 10.88 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002878/0.3816, allocations: 131.9 kB / 1.329 GB, free: 10.75 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003401/0.382, allocations: 207.1 kB / 1.329 GB, free: 10.52 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004938/0.3825, allocations: 334.3 kB / 1.329 GB, free: 10.14 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.317e-06/0.3825, allocations: 0 / 1.329 GB, free: 10.14 MB / 1.029 GB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0009186/0.3834, allocations: 0.4905 MB / 1.33 GB, free: 9.621 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001051/0.3835, allocations: 117.3 kB / 1.33 GB, free: 9.488 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.645e-06/0.3835, allocations: 0 / 1.33 GB, free: 9.488 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.058e-05/0.3835, allocations: 4 kB / 1.33 GB, free: 9.484 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001308/0.3836, allocations: 23.92 kB / 1.33 GB, free: 9.461 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.117e-05/0.3837, allocations: 4.156 kB / 1.33 GB, free: 9.457 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000523/0.3842, allocations: 95.73 kB / 1.33 GB, free: 9.363 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.17e-05/0.3842, allocations: 31.92 kB / 1.33 GB, free: 9.332 MB / 1.029 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.0001994/0.3844, allocations: 145.8 kB / 1.33 GB, free: 9.18 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.398e-05/0.3845, allocations: 23.84 kB / 1.33 GB, free: 9.156 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000375/0.3848, allocations: 209.3 kB / 1.331 GB, free: 8.945 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.294e-06/0.3848, allocations: 8.031 kB / 1.331 GB, free: 8.938 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.718e-06/0.3849, allocations: 0 / 1.331 GB, free: 8.938 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.3849, allocations: 0 / 1.331 GB, free: 8.938 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000735/0.3856, allocations: 0.5568 MB / 1.331 GB, free: 8.324 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.3856, allocations: 0 / 1.331 GB, free: 8.324 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.496e-05/0.3857, allocations: 19.98 kB / 1.331 GB, free: 8.305 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.3857, allocations: 0 / 1.331 GB, free: 8.305 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.548e-05/0.3857, allocations: 4 kB / 1.331 GB, free: 8.301 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.88e-06/0.3857, allocations: 3.984 kB / 1.331 GB, free: 8.297 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.3857, allocations: 3.938 kB / 1.331 GB, free: 8.293 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003899/0.3861, allocations: 297 kB / 1.331 GB, free: 7.988 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 7.283e-05/0.3861, allocations: 105 kB / 1.332 GB, free: 7.867 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.755e-05/0.3862, allocations: 4 kB / 1.332 GB, free: 7.863 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.644e-05/0.3863, allocations: 4 kB / 1.332 GB, free: 7.859 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.513e-05/0.3863, allocations: 23.86 kB / 1.332 GB, free: 7.836 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.381e-05/0.3863, allocations: 7.984 kB / 1.332 GB, free: 7.828 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001571/0.3865, allocations: 152.6 kB / 1.332 GB, free: 7.68 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.3865, allocations: 0 / 1.332 GB, free: 7.68 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003597/0.3868, allocations: 67.89 kB / 1.332 GB, free: 7.613 MB / 1.029 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.0008065/0.3877, allocations: 0.8388 MB / 1.333 GB, free: 6.746 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0006741/0.3883, allocations: 421.9 kB / 1.333 GB, free: 6.297 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.3883, allocations: 0.5 kB / 1.333 GB, free: 6.297 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001231/0.3885, allocations: 70.48 kB / 1.333 GB, free: 6.23 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004707/0.3889, allocations: 51.89 kB / 1.333 GB, free: 6.18 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004028/0.393, allocations: 2.899 MB / 1.336 GB, free: 3.117 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003973/0.3933, allocations: 0.7359 MB / 1.337 GB, free: 2.355 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 8.884e-05/0.3934, allocations: 25.95 kB / 1.337 GB, free: 2.332 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001112/0.3935, allocations: 75.34 kB / 1.337 GB, free: 2.258 MB / 1.029 GB Notification: Performance of SimCode: time 1.032e-06/0.3935, allocations: 0 / 1.337 GB, free: 2.258 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0342/0.4277, allocations: 5.956 MB / 1.343 GB, free: 12.53 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.517/8.945, allocations: 11.19 kB / 1.343 GB, free: 12.52 MB / 1.045 GB " [Timeout remaining time 291] (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 & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_Utilities_PIDWithAutotuning_Relay_BaseClasses_Validation_HalfPeriodRatio.csv","/var/lib/jenkins1/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: 15.779585683019832]