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.001712/0.001712, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.002131/0.002131, allocations: 216.6 kB / 22.25 MB, free: 4.855 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.524/1.524, allocations: 230.6 MB / 256 MB, free: 7.785 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.309/3.309, allocations: 0.4892 GB / 0.7943 GB, free: 35.55 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.002109/0.002109, allocations: 68.84 kB / 1.153 GB, free: 25.83 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3411/0.3432, allocations: 176.1 MB / 1.325 GB, free: 2.359 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio): time 0.002477/0.3457, allocations: 1.109 MB / 1.326 GB, free: 1.254 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002105/0.3478, allocations: 1.412 MB / 1.328 GB, free: 15.83 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001127/0.3479, allocations: 4 kB / 1.328 GB, free: 15.82 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 6.731e-05/0.348, allocations: 27.67 kB / 1.328 GB, free: 15.8 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0001699/0.3481, allocations: 59.56 kB / 1.328 GB, free: 15.74 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009354/0.3491, allocations: 382 kB / 1.328 GB, free: 15.38 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0005309/0.3496, allocations: 459.2 kB / 1.328 GB, free: 14.93 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000182/0.3498, allocations: 75.53 kB / 1.329 GB, free: 14.85 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002084/0.35, allocations: 171.6 kB / 1.329 GB, free: 14.68 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002346/0.3502, allocations: 147.4 kB / 1.329 GB, free: 14.54 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 7.651e-05/0.3503, allocations: 52 kB / 1.329 GB, free: 14.48 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001162/0.3504, allocations: 55.98 kB / 1.329 GB, free: 14.43 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 6.344e-05/0.3505, allocations: 55.77 kB / 1.329 GB, free: 14.38 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001712/0.3507, allocations: 143.5 kB / 1.329 GB, free: 14.23 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0005721/0.3512, allocations: 0.4907 MB / 1.33 GB, free: 13.74 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.3512, allocations: 0 / 1.33 GB, free: 13.74 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.673e-06/0.3512, allocations: 0 / 1.33 GB, free: 13.74 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.803e-06/0.3512, allocations: 4 kB / 1.33 GB, free: 13.74 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.0008838/0.3521, allocations: 0.5451 MB / 1.33 GB, free: 13.14 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.779e-05/0.3522, allocations: 8.031 kB / 1.33 GB, free: 13.13 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.095e-05/0.3522, allocations: 46.73 kB / 1.33 GB, free: 13.08 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.638e-05/0.3523, allocations: 40.75 kB / 1.33 GB, free: 13.04 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003708/0.3527, allocations: 226.1 kB / 1.33 GB, free: 12.79 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.691e-05/0.3527, allocations: 20.38 kB / 1.33 GB, free: 12.77 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.647e-05/0.3528, allocations: 24.38 kB / 1.33 GB, free: 12.75 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002674/0.353, allocations: 149.7 kB / 1.331 GB, free: 12.6 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.228e-06/0.353, allocations: 4 kB / 1.331 GB, free: 12.59 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.589e-05/0.3531, allocations: 4 kB / 1.331 GB, free: 12.59 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.893e-06/0.3531, allocations: 7.938 kB / 1.331 GB, free: 12.58 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001792/0.3532, allocations: 87.95 kB / 1.331 GB, free: 12.5 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001012/0.3543, allocations: 0.581 MB / 1.331 GB, free: 11.87 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002004/0.3545, allocations: 94.55 kB / 1.331 GB, free: 11.77 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.424e-05/0.3546, allocations: 52.84 kB / 1.331 GB, free: 11.71 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.708e-05/0.3546, allocations: 0 / 1.331 GB, free: 11.71 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000302/0.3549, allocations: 149.1 kB / 1.332 GB, free: 11.56 MB / 1.029 GB Notification: Performance of pre-optimization done (n=20): time 1.483e-06/0.3549, allocations: 0 / 1.332 GB, free: 11.56 MB / 1.029 GB Notification: Performance of matching and sorting (n=20): time 0.0005316/0.3554, allocations: 249.4 kB / 1.332 GB, free: 11.31 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.953e-05/0.3555, allocations: 63.39 kB / 1.332 GB, free: 11.23 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002306/0.3557, allocations: 218.7 kB / 1.332 GB, free: 11.01 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 5.376e-05/0.3557, allocations: 41.7 kB / 1.332 GB, free: 10.96 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.000124/0.3559, allocations: 136.6 kB / 1.332 GB, free: 10.82 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 5.508e-05/0.3559, allocations: 59.52 kB / 1.332 GB, free: 10.77 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000162/0.3561, allocations: 89.66 kB / 1.332 GB, free: 10.67 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001541/0.3562, allocations: 334.8 kB / 1.333 GB, free: 10.34 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003512/0.3566, allocations: 225 kB / 1.333 GB, free: 10.1 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004133/0.357, allocations: 317.4 kB / 1.333 GB, free: 9.738 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004638/0.3575, allocations: 342.4 kB / 1.334 GB, free: 9.352 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/0.3575, allocations: 0 / 1.334 GB, free: 9.352 MB / 1.029 GB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0009281/0.3584, allocations: 0.5892 MB / 1.334 GB, free: 8.719 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 8.712e-05/0.3585, allocations: 109.3 kB / 1.334 GB, free: 8.594 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.3585, allocations: 0 / 1.334 GB, free: 8.594 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.985e-05/0.3585, allocations: 4 kB / 1.334 GB, free: 8.59 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001241/0.3586, allocations: 27.92 kB / 1.334 GB, free: 8.562 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.803e-06/0.3586, allocations: 0 / 1.334 GB, free: 8.562 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005213/0.3592, allocations: 91.8 kB / 1.334 GB, free: 8.473 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.21e-05/0.3592, allocations: 27.98 kB / 1.334 GB, free: 8.445 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.0001713/0.3594, allocations: 153.7 kB / 1.335 GB, free: 8.285 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.244e-05/0.3594, allocations: 19.86 kB / 1.335 GB, free: 8.266 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003614/0.3598, allocations: 208.9 kB / 1.335 GB, free: 8.055 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.3598, allocations: 0 / 1.335 GB, free: 8.055 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.3598, allocations: 0 / 1.335 GB, free: 8.055 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.616e-06/0.3598, allocations: 0 / 1.335 GB, free: 8.055 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006753/0.3605, allocations: 0.5148 MB / 1.335 GB, free: 7.492 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.3605, allocations: 0 / 1.335 GB, free: 7.492 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.311e-05/0.3605, allocations: 27.86 kB / 1.335 GB, free: 7.465 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.3605, allocations: 48 / 1.335 GB, free: 7.465 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.915e-05/0.3606, allocations: 7.984 kB / 1.335 GB, free: 7.457 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.844e-06/0.3606, allocations: 0 / 1.335 GB, free: 7.457 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.3606, allocations: 3.938 kB / 1.335 GB, free: 7.453 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003508/0.3609, allocations: 299.2 kB / 1.336 GB, free: 7.145 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 3.787e-05/0.3609, allocations: 23.84 kB / 1.336 GB, free: 7.121 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.883e-05/0.361, allocations: 4 kB / 1.336 GB, free: 7.117 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.981e-05/0.3611, allocations: 4 kB / 1.336 GB, free: 7.113 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.831e-05/0.3611, allocations: 19.91 kB / 1.336 GB, free: 7.094 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.255e-05/0.3611, allocations: 4 kB / 1.336 GB, free: 7.09 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001467/0.3613, allocations: 156.6 kB / 1.336 GB, free: 6.938 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.3613, allocations: 0 / 1.336 GB, free: 6.938 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003569/0.3616, allocations: 71.88 kB / 1.336 GB, free: 6.867 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.0007137/0.3623, allocations: 0.836 MB / 1.337 GB, free: 6.004 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0007166/0.363, allocations: 0.5046 MB / 1.337 GB, free: 5.445 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 7.214e-06/0.3631, allocations: 4.5 kB / 1.337 GB, free: 5.441 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001179/0.3632, allocations: 67.91 kB / 1.337 GB, free: 5.375 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004723/0.3636, allocations: 67.38 kB / 1.337 GB, free: 5.312 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004273/0.3679, allocations: 3.279 MB / 1.34 GB, free: 1.797 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001325/0.3681, allocations: 125.9 kB / 1.341 GB, free: 1.648 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 9.135e-05/0.3681, allocations: 21.95 kB / 1.341 GB, free: 1.629 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001147/0.3683, allocations: 71.41 kB / 1.341 GB, free: 1.559 MB / 1.029 GB Notification: Performance of SimCode: time 8.12e-07/0.3683, allocations: 0 / 1.341 GB, free: 1.559 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03785/0.4061, allocations: 6.942 MB / 1.347 GB, free: 10.88 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.65/12.05, allocations: 3.938 kB / 1.347 GB, free: 10.88 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_Utilities_PIDWithAutotuning_Relay_BaseClasses_Validation_HalfPeriodRatio_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 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.mat","/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: 19.039181768894196]