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.001806/0.001806, allocations: 103.6 kB / 18.95 MB, free: 2.66 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.002127/0.002127, allocations: 215.2 kB / 22.25 MB, free: 5.258 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.475/1.475, allocations: 230.6 MB / 256 MB, free: 7.801 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.248/3.248, allocations: 0.49 GB / 0.7951 GB, free: 35.47 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.002104/0.002104, allocations: 74.45 kB / 1.154 GB, free: 25.46 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3402/0.3423, allocations: 176.1 MB / 1.326 GB, free: 1.531 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio): time 0.003235/0.3455, allocations: 1.101 MB / 1.327 GB, free: 444 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002634/0.3481, allocations: 1.416 MB / 1.328 GB, free: 15 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001211/0.3483, allocations: 4 kB / 1.328 GB, free: 15 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 7.512e-05/0.3483, allocations: 19.73 kB / 1.328 GB, free: 14.98 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0001688/0.3485, allocations: 63.5 kB / 1.328 GB, free: 14.92 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.001092/0.3496, allocations: 372.2 kB / 1.329 GB, free: 14.56 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.000535/0.3501, allocations: 467 kB / 1.329 GB, free: 14.11 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001983/0.3503, allocations: 83.59 kB / 1.329 GB, free: 14.02 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002166/0.3506, allocations: 171.6 kB / 1.329 GB, free: 13.85 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002635/0.3508, allocations: 167.3 kB / 1.33 GB, free: 13.69 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 7.658e-05/0.3509, allocations: 48 kB / 1.33 GB, free: 13.64 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001177/0.351, allocations: 59.98 kB / 1.33 GB, free: 13.58 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 6.391e-05/0.3511, allocations: 51.77 kB / 1.33 GB, free: 13.53 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0002077/0.3513, allocations: 147.5 kB / 1.33 GB, free: 13.39 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.000657/0.3519, allocations: 0.4946 MB / 1.33 GB, free: 12.89 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.3519, allocations: 0 / 1.33 GB, free: 12.89 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.184e-06/0.3519, allocations: 0 / 1.33 GB, free: 12.89 MB / 1.029 GB Notification: Performance of Transformations before backend: time 7.143e-06/0.352, allocations: 0 / 1.33 GB, free: 12.89 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.001117/0.3531, allocations: 0.549 MB / 1.331 GB, free: 12.29 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.891e-05/0.3531, allocations: 8.031 kB / 1.331 GB, free: 12.28 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.494e-05/0.3532, allocations: 50.73 kB / 1.331 GB, free: 12.22 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001149/0.3533, allocations: 32.75 kB / 1.331 GB, free: 12.19 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004474/0.3537, allocations: 226.1 kB / 1.331 GB, free: 11.95 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.781e-05/0.3538, allocations: 16.38 kB / 1.331 GB, free: 11.93 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.179e-05/0.3538, allocations: 32.36 kB / 1.331 GB, free: 11.9 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003003/0.3541, allocations: 145.8 kB / 1.331 GB, free: 11.75 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.144e-05/0.3542, allocations: 3.938 kB / 1.331 GB, free: 11.75 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.992e-05/0.3542, allocations: 4 kB / 1.331 GB, free: 11.74 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.255e-06/0.3542, allocations: 8 kB / 1.331 GB, free: 11.73 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001756/0.3544, allocations: 91.95 kB / 1.332 GB, free: 11.64 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001193/0.3556, allocations: 0.5771 MB / 1.332 GB, free: 11.02 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002222/0.3558, allocations: 102.5 kB / 1.332 GB, free: 10.91 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001474/0.3559, allocations: 44.84 kB / 1.332 GB, free: 10.87 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.988e-05/0.356, allocations: 4 kB / 1.332 GB, free: 10.86 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002961/0.3563, allocations: 143.2 kB / 1.332 GB, free: 10.71 MB / 1.029 GB Notification: Performance of pre-optimization done (n=20): time 2.444e-06/0.3563, allocations: 4 kB / 1.332 GB, free: 10.71 MB / 1.029 GB Notification: Performance of matching and sorting (n=20): time 0.0005499/0.3568, allocations: 262.8 kB / 1.333 GB, free: 10.45 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001213/0.3569, allocations: 55.41 kB / 1.333 GB, free: 10.38 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002592/0.3572, allocations: 214.7 kB / 1.333 GB, free: 10.16 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 5.818e-05/0.3572, allocations: 37.7 kB / 1.333 GB, free: 10.11 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001562/0.3574, allocations: 144.6 kB / 1.333 GB, free: 9.969 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001318/0.3575, allocations: 59.52 kB / 1.333 GB, free: 9.91 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001763/0.3577, allocations: 81.66 kB / 1.333 GB, free: 9.824 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0002225/0.3579, allocations: 338.8 kB / 1.334 GB, free: 9.484 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003598/0.3583, allocations: 225 kB / 1.334 GB, free: 9.246 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000416/0.3587, allocations: 318.9 kB / 1.334 GB, free: 8.883 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004645/0.3592, allocations: 330.4 kB / 1.334 GB, free: 8.508 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.3592, allocations: 0 / 1.334 GB, free: 8.508 MB / 1.029 GB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0009838/0.3602, allocations: 0.5931 MB / 1.335 GB, free: 7.871 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001032/0.3603, allocations: 106.6 kB / 1.335 GB, free: 7.75 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.348e-06/0.3603, allocations: 4 kB / 1.335 GB, free: 7.746 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.684e-05/0.3603, allocations: 0 / 1.335 GB, free: 7.746 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001421/0.3604, allocations: 31.92 kB / 1.335 GB, free: 7.715 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.469e-05/0.3604, allocations: 4.156 kB / 1.335 GB, free: 7.711 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005283/0.361, allocations: 88.05 kB / 1.335 GB, free: 7.625 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.025e-05/0.361, allocations: 23.97 kB / 1.335 GB, free: 7.602 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.0001957/0.3612, allocations: 153.7 kB / 1.335 GB, free: 7.441 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.828e-05/0.3613, allocations: 27.86 kB / 1.335 GB, free: 7.414 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003969/0.3617, allocations: 204.9 kB / 1.336 GB, free: 7.207 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.66e-06/0.3617, allocations: 4 kB / 1.336 GB, free: 7.203 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.3617, allocations: 3.938 kB / 1.336 GB, free: 7.199 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.3617, allocations: 4 kB / 1.336 GB, free: 7.195 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007185/0.3624, allocations: 0.5052 MB / 1.336 GB, free: 6.641 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.3624, allocations: 0 / 1.336 GB, free: 6.641 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.78e-05/0.3625, allocations: 23.92 kB / 1.336 GB, free: 6.617 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.879e-06/0.3625, allocations: 4 kB / 1.336 GB, free: 6.613 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.635e-05/0.3625, allocations: 4 kB / 1.336 GB, free: 6.609 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.3625, allocations: 0 / 1.336 GB, free: 6.609 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.3625, allocations: 3.938 kB / 1.336 GB, free: 6.605 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003602/0.3628, allocations: 297.2 kB / 1.336 GB, free: 6.301 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 3.671e-05/0.3629, allocations: 19.89 kB / 1.336 GB, free: 6.281 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.026e-05/0.3629, allocations: 11.94 kB / 1.336 GB, free: 6.27 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.271e-05/0.363, allocations: 4 kB / 1.336 GB, free: 6.266 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.986e-05/0.3631, allocations: 19.86 kB / 1.336 GB, free: 6.246 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.954e-05/0.3631, allocations: 12 kB / 1.336 GB, free: 6.234 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001522/0.3632, allocations: 144.6 kB / 1.337 GB, free: 6.094 MB / 1.029 GB Notification: Performance of sort global known variables: time 8.1e-08/0.3632, allocations: 0 / 1.337 GB, free: 6.094 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0004092/0.3636, allocations: 75.92 kB / 1.337 GB, free: 6.02 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.0007923/0.3644, allocations: 0.832 MB / 1.337 GB, free: 5.16 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0008081/0.3652, allocations: 0.5108 MB / 1.338 GB, free: 4.594 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.3652, allocations: 4 kB / 1.338 GB, free: 4.59 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001196/0.3654, allocations: 70.48 kB / 1.338 GB, free: 4.523 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004782/0.3658, allocations: 64.52 kB / 1.338 GB, free: 4.461 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004634/0.3705, allocations: 3.267 MB / 1.341 GB, free: 0.957 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001607/0.3706, allocations: 133.8 kB / 1.341 GB, free: 0.8008 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 8.938e-05/0.3707, allocations: 17.95 kB / 1.341 GB, free: 0.7852 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001136/0.3708, allocations: 71.41 kB / 1.341 GB, free: 0.7148 MB / 1.029 GB Notification: Performance of SimCode: time 1.312e-06/0.3708, allocations: 0 / 1.341 GB, free: 0.7148 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03994/0.4108, allocations: 6.979 MB / 1.348 GB, free: 9.996 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.47/11.88, allocations: 9.766 kB / 1.348 GB, free: 9.988 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: 18.688354297017213]