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.001277/0.001277, allocations: 103.8 kB / 16.45 MB, free: 6.504 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.001414/0.001414, allocations: 212.9 kB / 19.43 MB, free: 3.656 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.528/1.528, allocations: 230.6 MB / 252.8 MB, free: 8.988 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.285/3.285, allocations: 0.505 GB / 0.8066 GB, free: 23.07 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.002056/0.002056, allocations: 65.27 kB / 1.172 GB, free: 17.51 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3538/0.3559, allocations: 180.2 MB / 1.348 GB, free: 9.984 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio): time 0.002902/0.3588, allocations: 1.184 MB / 1.349 GB, free: 8.797 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.002279/0.361, allocations: 1.44 MB / 1.35 GB, free: 7.344 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001568/0.3612, allocations: 4 kB / 1.35 GB, free: 7.34 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 7.204e-05/0.3613, allocations: 23.67 kB / 1.35 GB, free: 7.316 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0001993/0.3615, allocations: 55.58 kB / 1.35 GB, free: 7.262 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009622/0.3624, allocations: 379.6 kB / 1.351 GB, free: 6.898 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0006573/0.3631, allocations: 467.1 kB / 1.351 GB, free: 6.441 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001954/0.3633, allocations: 72.92 kB / 1.351 GB, free: 6.371 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003029/0.3636, allocations: 175.5 kB / 1.351 GB, free: 6.199 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002803/0.3639, allocations: 159.4 kB / 1.352 GB, free: 6.043 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 8.681e-05/0.364, allocations: 48 kB / 1.352 GB, free: 5.996 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001368/0.3641, allocations: 71.91 kB / 1.352 GB, free: 5.926 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 5.841e-05/0.3641, allocations: 47.84 kB / 1.352 GB, free: 5.879 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0002143/0.3644, allocations: 167.3 kB / 1.352 GB, free: 5.715 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.000575/0.3649, allocations: 0.4908 MB / 1.352 GB, free: 5.223 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.3649, allocations: 0 / 1.352 GB, free: 5.223 MB / 1.045 GB Notification: Performance of FrontEnd: time 2.084e-06/0.3649, allocations: 0 / 1.352 GB, free: 5.223 MB / 1.045 GB Notification: Performance of Transformations before backend: time 1.992e-05/0.365, allocations: 0 / 1.352 GB, free: 5.223 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.0009854/0.366, allocations: 0.6243 MB / 1.353 GB, free: 4.527 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.542e-05/0.366, allocations: 19.98 kB / 1.353 GB, free: 4.508 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.564e-05/0.3661, allocations: 50.73 kB / 1.353 GB, free: 4.449 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.782e-05/0.3661, allocations: 28.8 kB / 1.353 GB, free: 4.422 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003866/0.3665, allocations: 275.9 kB / 1.353 GB, free: 4.113 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.279e-05/0.3666, allocations: 24.36 kB / 1.353 GB, free: 4.09 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6e-05/0.3666, allocations: 28.38 kB / 1.353 GB, free: 4.062 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002645/0.3669, allocations: 145.7 kB / 1.354 GB, free: 3.914 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.426e-06/0.3669, allocations: 0 / 1.354 GB, free: 3.914 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.045e-05/0.3669, allocations: 11.98 kB / 1.354 GB, free: 3.902 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.783e-06/0.3669, allocations: 4 kB / 1.354 GB, free: 3.898 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001732/0.3671, allocations: 88.56 kB / 1.354 GB, free: 3.812 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001098/0.3682, allocations: 0.7027 MB / 1.354 GB, free: 3.059 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002066/0.3684, allocations: 98.55 kB / 1.354 GB, free: 2.953 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.043e-05/0.3685, allocations: 48.83 kB / 1.354 GB, free: 2.902 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.512e-05/0.3685, allocations: 8.188 kB / 1.355 GB, free: 2.895 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003195/0.3688, allocations: 153.2 kB / 1.355 GB, free: 2.734 MB / 1.045 GB Notification: Performance of pre-optimization done (n=20): time 2.104e-06/0.3688, allocations: 0 / 1.355 GB, free: 2.734 MB / 1.045 GB Notification: Performance of matching and sorting (n=20): time 0.0005145/0.3694, allocations: 246.5 kB / 1.355 GB, free: 2.488 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.263e-05/0.3694, allocations: 55.41 kB / 1.355 GB, free: 2.422 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002305/0.3696, allocations: 215 kB / 1.355 GB, free: 2.199 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 5.364e-05/0.3697, allocations: 37.7 kB / 1.355 GB, free: 2.156 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.000124/0.3698, allocations: 144.6 kB / 1.355 GB, free: 2.012 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 5.711e-05/0.3699, allocations: 55.58 kB / 1.355 GB, free: 1.957 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001752/0.3701, allocations: 85.66 kB / 1.355 GB, free: 1.867 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001521/0.3702, allocations: 334.8 kB / 1.356 GB, free: 1.531 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002944/0.3705, allocations: 135.8 kB / 1.356 GB, free: 1.398 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003271/0.3708, allocations: 205.4 kB / 1.356 GB, free: 1.164 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004945/0.3713, allocations: 330.3 kB / 1.356 GB, free: 0.7891 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.3713, allocations: 3.938 kB / 1.356 GB, free: 0.7852 MB / 1.045 GB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0008999/0.3722, allocations: 0.5022 MB / 1.357 GB, free: 264 kB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 9.189e-05/0.3723, allocations: 111.9 kB / 1.357 GB, free: 136 kB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.295e-06/0.3723, allocations: 4 kB / 1.357 GB, free: 132 kB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.817e-05/0.3723, allocations: 4 kB / 1.357 GB, free: 128 kB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001271/0.3725, allocations: 27.92 kB / 1.357 GB, free: 100 kB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.057e-06/0.3725, allocations: 4 kB / 1.357 GB, free: 96 kB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005202/0.373, allocations: 87.73 kB / 1.357 GB, free: 8 kB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.195e-05/0.3731, allocations: 24.05 kB / 1.357 GB, free: 15.98 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.00018/0.3732, allocations: 153.6 kB / 1.357 GB, free: 15.82 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.332e-05/0.3733, allocations: 27.86 kB / 1.357 GB, free: 15.8 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000358/0.3736, allocations: 201.1 kB / 1.358 GB, free: 15.6 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/0.3736, allocations: 4 kB / 1.358 GB, free: 15.59 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.3737, allocations: 0 / 1.358 GB, free: 15.59 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.3737, allocations: 0 / 1.358 GB, free: 15.59 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007091/0.3744, allocations: 0.5685 MB / 1.358 GB, free: 14.97 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.3744, allocations: 0 / 1.358 GB, free: 14.97 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.146e-05/0.3744, allocations: 11.94 kB / 1.358 GB, free: 14.96 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.3744, allocations: 4 kB / 1.358 GB, free: 14.95 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.409e-05/0.3745, allocations: 7.984 kB / 1.358 GB, free: 14.95 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.717e-06/0.3745, allocations: 4 kB / 1.358 GB, free: 14.94 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.3745, allocations: 3.938 kB / 1.358 GB, free: 14.94 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003459/0.3748, allocations: 293.2 kB / 1.358 GB, free: 14.64 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 6.783e-05/0.3749, allocations: 96.97 kB / 1.358 GB, free: 14.52 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.885e-05/0.3749, allocations: 0 / 1.358 GB, free: 14.52 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.301e-05/0.375, allocations: 11.98 kB / 1.358 GB, free: 14.51 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.01e-05/0.375, allocations: 11.92 kB / 1.359 GB, free: 14.5 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.541e-05/0.3751, allocations: 12 kB / 1.359 GB, free: 14.49 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001403/0.3752, allocations: 152.3 kB / 1.359 GB, free: 14.34 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/0.3752, allocations: 0 / 1.359 GB, free: 14.34 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.000374/0.3756, allocations: 79.88 kB / 1.359 GB, free: 14.26 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.0007641/0.3763, allocations: 0.8351 MB / 1.36 GB, free: 13.4 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0006243/0.377, allocations: 421.9 kB / 1.36 GB, free: 12.95 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.377, allocations: 0.5 kB / 1.36 GB, free: 12.95 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001175/0.3771, allocations: 67.92 kB / 1.36 GB, free: 12.88 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004685/0.3775, allocations: 68.28 kB / 1.36 GB, free: 12.82 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003792/0.3813, allocations: 2.891 MB / 1.363 GB, free: 9.766 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003406/0.3817, allocations: 0.7398 MB / 1.364 GB, free: 9 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 8.199e-05/0.3818, allocations: 25.89 kB / 1.364 GB, free: 8.973 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001075/0.3819, allocations: 71.41 kB / 1.364 GB, free: 8.902 MB / 1.061 GB Notification: Performance of SimCode: time 6.21e-07/0.3819, allocations: 0 / 1.364 GB, free: 8.902 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02974/0.4116, allocations: 5.956 MB / 1.37 GB, free: 3.188 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.161/8.573, allocations: 20.61 kB / 1.37 GB, free: 3.168 MB / 1.061 GB " [Timeout remaining time 291] (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: 15.573257857002318]