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.001349/0.001349, allocations: 99.75 kB / 18.95 MB, free: 2.832 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.001497/0.001497, allocations: 219.4 kB / 22.25 MB, free: 5.102 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.481/1.481, allocations: 230.6 MB / 256 MB, free: 7.797 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.325/3.325, allocations: 0.49 GB / 0.7951 GB, free: 35.46 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.002151/0.002151, allocations: 65.98 kB / 1.154 GB, free: 25.5 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3523/0.3544, allocations: 176.1 MB / 1.326 GB, free: 1.504 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio): time 0.002883/0.3573, allocations: 1.104 MB / 1.327 GB, free: 416 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002201/0.3595, allocations: 1.424 MB / 1.328 GB, free: 14.97 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001106/0.3596, allocations: 4 kB / 1.328 GB, free: 14.96 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 6.674e-05/0.3597, allocations: 23.67 kB / 1.328 GB, free: 14.94 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0001666/0.3598, allocations: 55.59 kB / 1.328 GB, free: 14.89 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009931/0.3608, allocations: 377.2 kB / 1.329 GB, free: 14.53 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0005145/0.3614, allocations: 463.1 kB / 1.329 GB, free: 14.07 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001879/0.3615, allocations: 71.61 kB / 1.329 GB, free: 14 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001985/0.3617, allocations: 175.6 kB / 1.329 GB, free: 13.83 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002465/0.362, allocations: 171.3 kB / 1.33 GB, free: 13.66 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 7.614e-05/0.3621, allocations: 48 kB / 1.33 GB, free: 13.61 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001268/0.3622, allocations: 67.92 kB / 1.33 GB, free: 13.55 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001191/0.3623, allocations: 47.84 kB / 1.33 GB, free: 13.5 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001672/0.3625, allocations: 143.5 kB / 1.33 GB, free: 13.36 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.000556/0.363, allocations: 0.4946 MB / 1.33 GB, free: 12.86 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.878e-06/0.363, allocations: 0 / 1.33 GB, free: 12.86 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.402e-06/0.363, allocations: 0 / 1.33 GB, free: 12.86 MB / 1.029 GB Notification: Performance of Transformations before backend: time 7.725e-06/0.363, allocations: 4 kB / 1.33 GB, free: 12.86 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.0008533/0.3639, allocations: 0.5451 MB / 1.331 GB, free: 12.26 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.972e-05/0.3639, allocations: 8.031 kB / 1.331 GB, free: 12.25 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.422e-05/0.364, allocations: 46.73 kB / 1.331 GB, free: 12.2 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.796e-05/0.3641, allocations: 40.75 kB / 1.331 GB, free: 12.16 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000368/0.3644, allocations: 230.1 kB / 1.331 GB, free: 11.91 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.145e-05/0.3645, allocations: 20.36 kB / 1.331 GB, free: 11.89 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.019e-05/0.3645, allocations: 32.31 kB / 1.331 GB, free: 11.86 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002668/0.3648, allocations: 141.8 kB / 1.331 GB, free: 11.71 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.108e-05/0.3648, allocations: 4 kB / 1.331 GB, free: 11.71 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.68e-05/0.3648, allocations: 4 kB / 1.331 GB, free: 11.71 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.373e-06/0.3648, allocations: 4 kB / 1.331 GB, free: 11.7 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001814/0.365, allocations: 87.95 kB / 1.332 GB, free: 11.62 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001013/0.366, allocations: 0.5771 MB / 1.332 GB, free: 11 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002024/0.3662, allocations: 94.55 kB / 1.332 GB, free: 10.89 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.019e-05/0.3663, allocations: 52.84 kB / 1.332 GB, free: 10.84 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.423e-05/0.3664, allocations: 7.922 kB / 1.332 GB, free: 10.83 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002726/0.3666, allocations: 147.2 kB / 1.332 GB, free: 10.68 MB / 1.029 GB Notification: Performance of pre-optimization done (n=20): time 1.543e-06/0.3666, allocations: 0 / 1.332 GB, free: 10.68 MB / 1.029 GB Notification: Performance of matching and sorting (n=20): time 0.000506/0.3671, allocations: 251 kB / 1.333 GB, free: 10.43 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.836e-05/0.3672, allocations: 55.41 kB / 1.333 GB, free: 10.36 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002456/0.3674, allocations: 222.7 kB / 1.333 GB, free: 10.13 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 5.485e-05/0.3675, allocations: 41.7 kB / 1.333 GB, free: 10.08 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001723/0.3677, allocations: 144.6 kB / 1.333 GB, free: 9.938 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 7.027e-05/0.3677, allocations: 55.52 kB / 1.333 GB, free: 9.883 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002324/0.368, allocations: 85.67 kB / 1.333 GB, free: 9.793 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0002051/0.3682, allocations: 334.8 kB / 1.334 GB, free: 9.457 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004005/0.3686, allocations: 225 kB / 1.334 GB, free: 9.219 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003913/0.369, allocations: 314.9 kB / 1.334 GB, free: 8.859 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004318/0.3694, allocations: 334.4 kB / 1.334 GB, free: 8.48 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.906e-06/0.3694, allocations: 0 / 1.334 GB, free: 8.48 MB / 1.029 GB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0009438/0.3703, allocations: 0.5931 MB / 1.335 GB, free: 7.844 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 8.824e-05/0.3704, allocations: 105.1 kB / 1.335 GB, free: 7.723 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.052e-06/0.3704, allocations: 4.25 kB / 1.335 GB, free: 7.719 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.758e-05/0.3704, allocations: 4 kB / 1.335 GB, free: 7.715 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000132/0.3706, allocations: 27.92 kB / 1.335 GB, free: 7.688 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.632e-06/0.3706, allocations: 0 / 1.335 GB, free: 7.688 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004827/0.3711, allocations: 87.8 kB / 1.335 GB, free: 7.602 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.197e-05/0.3711, allocations: 23.98 kB / 1.335 GB, free: 7.578 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.0001867/0.3713, allocations: 157.7 kB / 1.335 GB, free: 7.414 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.151e-05/0.3713, allocations: 19.86 kB / 1.335 GB, free: 7.395 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003801/0.3717, allocations: 212.9 kB / 1.336 GB, free: 7.18 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.3717, allocations: 0 / 1.336 GB, free: 7.18 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.015e-06/0.3717, allocations: 4 kB / 1.336 GB, free: 7.176 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.796e-06/0.3717, allocations: 7.938 kB / 1.336 GB, free: 7.168 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000732/0.3725, allocations: 0.5072 MB / 1.336 GB, free: 6.613 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.3725, allocations: 0 / 1.336 GB, free: 6.613 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.466e-05/0.3725, allocations: 19.94 kB / 1.336 GB, free: 6.594 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.125e-06/0.3725, allocations: 4 kB / 1.336 GB, free: 6.59 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.697e-05/0.3726, allocations: 7.984 kB / 1.336 GB, free: 6.582 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.3726, allocations: 0 / 1.336 GB, free: 6.582 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.3726, allocations: 3.938 kB / 1.336 GB, free: 6.578 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003666/0.3729, allocations: 291.3 kB / 1.336 GB, free: 6.277 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 3.338e-05/0.373, allocations: 19.91 kB / 1.336 GB, free: 6.258 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.542e-05/0.373, allocations: 0 / 1.336 GB, free: 6.258 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.321e-05/0.3731, allocations: 11.98 kB / 1.336 GB, free: 6.246 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.092e-05/0.3731, allocations: 19.88 kB / 1.336 GB, free: 6.227 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.484e-05/0.3731, allocations: 11.92 kB / 1.336 GB, free: 6.215 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001451/0.3733, allocations: 156.5 kB / 1.337 GB, free: 6.062 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.3733, allocations: 4 kB / 1.337 GB, free: 6.059 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003753/0.3737, allocations: 63.94 kB / 1.337 GB, free: 5.996 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.000757/0.3744, allocations: 0.8386 MB / 1.337 GB, free: 5.129 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0007563/0.3752, allocations: 0.5085 MB / 1.338 GB, free: 4.566 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 4.989e-06/0.3752, allocations: 4 kB / 1.338 GB, free: 4.562 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001163/0.3753, allocations: 68.41 kB / 1.338 GB, free: 4.496 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004897/0.3758, allocations: 62.88 kB / 1.338 GB, free: 4.438 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004206/0.38, allocations: 3.268 MB / 1.341 GB, free: 0.9336 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001331/0.3801, allocations: 129.8 kB / 1.341 GB, free: 0.7812 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 9.425e-05/0.3802, allocations: 30.06 kB / 1.341 GB, free: 0.7539 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001362/0.3803, allocations: 71.41 kB / 1.341 GB, free: 0.6836 MB / 1.029 GB Notification: Performance of SimCode: time 7.41e-07/0.3803, allocations: 0 / 1.341 GB, free: 0.6836 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03528/0.4156, allocations: 6.982 MB / 1.348 GB, free: 9.965 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.41/11.82, allocations: 3.969 kB / 1.348 GB, free: 9.965 MB / 1.045 GB " [Timeout remaining time 288] (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: 18.808548392989906]