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.001329/0.001329, allocations: 103.6 kB / 18.95 MB, free: 2.691 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.001459/0.001459, allocations: 218.8 kB / 22.25 MB, free: 4.723 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.53/1.53, allocations: 230.6 MB / 256 MB, free: 7.809 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.265/3.265, allocations: 0.4892 GB / 0.7943 GB, free: 35.41 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.002097/0.002097, allocations: 71.55 kB / 1.153 GB, free: 26 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3554/0.3574, allocations: 176.1 MB / 1.325 GB, free: 2.539 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio): time 0.002651/0.3601, allocations: 1.099 MB / 1.326 GB, free: 1.445 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002005/0.3621, allocations: 1.424 MB / 1.328 GB, free: 8 kB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.992e-05/0.3622, allocations: 4 kB / 1.328 GB, free: 4 kB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 7.43e-05/0.3623, allocations: 15.86 kB / 1.328 GB, free: 15.98 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.000153/0.3624, allocations: 63.5 kB / 1.328 GB, free: 15.92 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009505/0.3634, allocations: 376.2 kB / 1.328 GB, free: 15.56 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0005314/0.3639, allocations: 467 kB / 1.328 GB, free: 15.11 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001807/0.3641, allocations: 69.09 kB / 1.329 GB, free: 15.04 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002192/0.3643, allocations: 179.5 kB / 1.329 GB, free: 14.86 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002371/0.3645, allocations: 147.4 kB / 1.329 GB, free: 14.72 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 7.276e-05/0.3646, allocations: 44 kB / 1.329 GB, free: 14.68 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001195/0.3647, allocations: 63.98 kB / 1.329 GB, free: 14.61 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 5.741e-05/0.3648, allocations: 51.77 kB / 1.329 GB, free: 14.56 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001734/0.365, allocations: 147.5 kB / 1.329 GB, free: 14.42 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0005544/0.3655, allocations: 494.6 kB / 1.33 GB, free: 13.93 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.3655, allocations: 4 kB / 1.33 GB, free: 13.93 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.603e-06/0.3655, allocations: 0 / 1.33 GB, free: 13.93 MB / 1.029 GB Notification: Performance of Transformations before backend: time 7.784e-06/0.3655, allocations: 3.938 kB / 1.33 GB, free: 13.93 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.0008746/0.3664, allocations: 0.549 MB / 1.33 GB, free: 13.32 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.682e-05/0.3665, allocations: 8.031 kB / 1.33 GB, free: 13.32 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.065e-05/0.3665, allocations: 50.73 kB / 1.33 GB, free: 13.26 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.512e-05/0.3666, allocations: 36.75 kB / 1.33 GB, free: 13.22 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003681/0.367, allocations: 226.1 kB / 1.33 GB, free: 12.98 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.451e-05/0.367, allocations: 16.38 kB / 1.33 GB, free: 12.96 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.982e-05/0.367, allocations: 28.36 kB / 1.33 GB, free: 12.93 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002758/0.3673, allocations: 145.8 kB / 1.331 GB, free: 12.79 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.257e-05/0.3673, allocations: 3.938 kB / 1.331 GB, free: 12.78 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.114e-05/0.3674, allocations: 8 kB / 1.331 GB, free: 12.77 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.034e-06/0.3674, allocations: 4 kB / 1.331 GB, free: 12.77 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000176/0.3675, allocations: 91.89 kB / 1.331 GB, free: 12.68 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000998/0.3685, allocations: 0.581 MB / 1.331 GB, free: 12.05 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002074/0.3687, allocations: 95.92 kB / 1.331 GB, free: 11.95 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.765e-05/0.3688, allocations: 48.84 kB / 1.331 GB, free: 11.9 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.047e-05/0.3688, allocations: 0 / 1.331 GB, free: 11.9 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003479/0.3692, allocations: 147.3 kB / 1.332 GB, free: 11.75 MB / 1.029 GB Notification: Performance of pre-optimization done (n=20): time 1.462e-06/0.3692, allocations: 0 / 1.332 GB, free: 11.75 MB / 1.029 GB Notification: Performance of matching and sorting (n=20): time 0.0005077/0.3697, allocations: 259.3 kB / 1.332 GB, free: 11.49 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.86e-05/0.3698, allocations: 59.41 kB / 1.332 GB, free: 11.42 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002266/0.37, allocations: 222.7 kB / 1.332 GB, free: 11.19 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 5.148e-05/0.37, allocations: 37.7 kB / 1.332 GB, free: 11.14 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001193/0.3702, allocations: 140.5 kB / 1.332 GB, free: 11 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 5.758e-05/0.3702, allocations: 59.52 kB / 1.332 GB, free: 10.95 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001542/0.3704, allocations: 81.67 kB / 1.332 GB, free: 10.86 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001677/0.3705, allocations: 342.8 kB / 1.333 GB, free: 10.52 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003493/0.3709, allocations: 221 kB / 1.333 GB, free: 10.28 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004143/0.3713, allocations: 310.9 kB / 1.333 GB, free: 9.926 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004617/0.3718, allocations: 338.3 kB / 1.334 GB, free: 9.543 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.3718, allocations: 4 kB / 1.334 GB, free: 9.539 MB / 1.029 GB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0009065/0.3727, allocations: 0.5933 MB / 1.334 GB, free: 8.902 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 8.4e-05/0.3727, allocations: 101.1 kB / 1.334 GB, free: 8.785 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.3728, allocations: 4 kB / 1.334 GB, free: 8.781 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.17e-05/0.3728, allocations: 4 kB / 1.334 GB, free: 8.777 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00013/0.3729, allocations: 27.92 kB / 1.334 GB, free: 8.75 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.016e-05/0.3729, allocations: 4 kB / 1.334 GB, free: 8.746 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004955/0.3734, allocations: 91.8 kB / 1.334 GB, free: 8.656 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.716e-05/0.3735, allocations: 19.98 kB / 1.334 GB, free: 8.637 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.0001839/0.3736, allocations: 153.7 kB / 1.335 GB, free: 8.477 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.092e-05/0.3737, allocations: 19.86 kB / 1.335 GB, free: 8.457 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003761/0.3741, allocations: 213.1 kB / 1.335 GB, free: 8.242 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.868e-06/0.3741, allocations: 0 / 1.335 GB, free: 8.242 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.3741, allocations: 0 / 1.335 GB, free: 8.242 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.3741, allocations: 0 / 1.335 GB, free: 8.242 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008169/0.3749, allocations: 0.513 MB / 1.335 GB, free: 7.68 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.3749, allocations: 4 kB / 1.335 GB, free: 7.676 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.019e-05/0.3749, allocations: 12 kB / 1.335 GB, free: 7.664 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.821e-06/0.3749, allocations: 7.969 kB / 1.335 GB, free: 7.656 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.632e-05/0.375, allocations: 8 kB / 1.335 GB, free: 7.648 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.291e-06/0.375, allocations: 11.92 kB / 1.335 GB, free: 7.637 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.194e-06/0.375, allocations: 3.938 kB / 1.335 GB, free: 7.633 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004163/0.3754, allocations: 293 kB / 1.336 GB, free: 7.332 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 3.332e-05/0.3754, allocations: 23.8 kB / 1.336 GB, free: 7.309 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.349e-05/0.3755, allocations: 4 kB / 1.336 GB, free: 7.305 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.257e-05/0.3755, allocations: 8 kB / 1.336 GB, free: 7.297 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.301e-05/0.3756, allocations: 15.91 kB / 1.336 GB, free: 7.281 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.468e-05/0.3756, allocations: 12 kB / 1.336 GB, free: 7.27 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.000155/0.3758, allocations: 152.6 kB / 1.336 GB, free: 7.121 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.3758, allocations: 0 / 1.336 GB, free: 7.121 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003827/0.3762, allocations: 71.89 kB / 1.336 GB, free: 7.051 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.000743/0.3769, allocations: 0.835 MB / 1.337 GB, free: 6.188 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0007155/0.3776, allocations: 0.5034 MB / 1.337 GB, free: 5.629 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 4.388e-06/0.3776, allocations: 4.062 kB / 1.337 GB, free: 5.625 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001175/0.3777, allocations: 74.48 kB / 1.337 GB, free: 5.555 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000454/0.3782, allocations: 48.36 kB / 1.337 GB, free: 5.508 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00415/0.3823, allocations: 3.283 MB / 1.34 GB, free: 1.988 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001266/0.3825, allocations: 129.9 kB / 1.341 GB, free: 1.836 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 7.988e-05/0.3825, allocations: 25.94 kB / 1.341 GB, free: 1.812 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001109/0.3827, allocations: 63.42 kB / 1.341 GB, free: 1.75 MB / 1.029 GB Notification: Performance of SimCode: time 3.2e-07/0.3827, allocations: 0 / 1.341 GB, free: 1.75 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03687/0.4195, allocations: 6.947 MB / 1.347 GB, free: 11.06 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.53/11.95, allocations: 0 / 1.347 GB, free: 11.06 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.95049433875829]