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.001619/0.001619, 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.00209/0.00209, allocations: 217.9 kB / 22.24 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.492/1.492, allocations: 230.6 MB / 256 MB, free: 7.812 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.294/3.294, allocations: 0.505 GB / 0.8101 GB, free: 23.57 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.003414/0.003414, allocations: 67.75 kB / 1.177 GB, free: 16.72 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3652/0.3686, allocations: 180.2 MB / 1.353 GB, free: 7.988 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio): time 0.002642/0.3712, allocations: 1.1 MB / 1.354 GB, free: 6.887 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.002036/0.3733, allocations: 1.421 MB / 1.355 GB, free: 5.453 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.358e-05/0.3733, allocations: 4 kB / 1.355 GB, free: 5.449 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 5.965e-05/0.3734, allocations: 23.67 kB / 1.355 GB, free: 5.426 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0001622/0.3736, allocations: 55.56 kB / 1.355 GB, free: 5.371 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009073/0.3745, allocations: 377.3 kB / 1.356 GB, free: 5.012 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0005273/0.375, allocations: 463.2 kB / 1.356 GB, free: 4.559 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001844/0.3752, allocations: 75.59 kB / 1.356 GB, free: 4.484 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002166/0.3754, allocations: 179.5 kB / 1.356 GB, free: 4.309 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002649/0.3757, allocations: 159.4 kB / 1.357 GB, free: 4.152 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 8.523e-05/0.3758, allocations: 48 kB / 1.357 GB, free: 4.105 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001264/0.3759, allocations: 63.92 kB / 1.357 GB, free: 4.043 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 5.906e-05/0.3759, allocations: 51.77 kB / 1.357 GB, free: 3.992 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001783/0.3761, allocations: 147.5 kB / 1.357 GB, free: 3.848 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0005699/0.3767, allocations: 498.6 kB / 1.357 GB, free: 3.359 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 6.152e-06/0.3767, allocations: 4 kB / 1.357 GB, free: 3.355 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.773e-06/0.3767, allocations: 4 kB / 1.357 GB, free: 3.352 MB / 1.045 GB Notification: Performance of Transformations before backend: time 7.113e-06/0.3767, allocations: 0 / 1.357 GB, free: 3.352 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.0009581/0.3777, allocations: 0.549 MB / 1.358 GB, free: 2.75 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.106e-05/0.3777, allocations: 8.031 kB / 1.358 GB, free: 2.742 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.386e-05/0.3778, allocations: 50.67 kB / 1.358 GB, free: 2.684 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.56e-05/0.3779, allocations: 36.73 kB / 1.358 GB, free: 2.648 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003636/0.3782, allocations: 226.1 kB / 1.358 GB, free: 2.402 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.664e-05/0.3783, allocations: 16.38 kB / 1.358 GB, free: 2.387 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.213e-05/0.3783, allocations: 32.31 kB / 1.358 GB, free: 2.355 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002765/0.3786, allocations: 149.8 kB / 1.358 GB, free: 2.203 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.06e-05/0.3786, allocations: 4 kB / 1.358 GB, free: 2.199 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.694e-05/0.3786, allocations: 4 kB / 1.358 GB, free: 2.195 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.833e-06/0.3786, allocations: 4 kB / 1.358 GB, free: 2.191 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001817/0.3788, allocations: 91.94 kB / 1.358 GB, free: 2.102 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00107/0.3799, allocations: 0.5771 MB / 1.359 GB, free: 1.48 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001965/0.3801, allocations: 98.55 kB / 1.359 GB, free: 1.375 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.677e-05/0.3802, allocations: 45.09 kB / 1.359 GB, free: 1.328 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.45e-05/0.3802, allocations: 4 kB / 1.359 GB, free: 1.324 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003007/0.3805, allocations: 151.2 kB / 1.359 GB, free: 1.164 MB / 1.045 GB Notification: Performance of pre-optimization done (n=20): time 1.714e-06/0.3805, allocations: 0 / 1.359 GB, free: 1.164 MB / 1.045 GB Notification: Performance of matching and sorting (n=20): time 0.0004985/0.381, allocations: 251.2 kB / 1.36 GB, free: 0.9141 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.083e-05/0.381, allocations: 59.39 kB / 1.36 GB, free: 0.8438 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002194/0.3813, allocations: 215 kB / 1.36 GB, free: 0.625 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 7.179e-05/0.3813, allocations: 37.7 kB / 1.36 GB, free: 0.582 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001296/0.3815, allocations: 144.6 kB / 1.36 GB, free: 448 kB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 5.361e-05/0.3815, allocations: 55.52 kB / 1.36 GB, free: 392 kB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001723/0.3817, allocations: 89.66 kB / 1.36 GB, free: 296 kB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001779/0.3819, allocations: 338.8 kB / 1.36 GB, free: 15.95 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003439/0.3822, allocations: 225 kB / 1.361 GB, free: 15.71 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004037/0.3826, allocations: 310.4 kB / 1.361 GB, free: 15.36 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004415/0.383, allocations: 330.4 kB / 1.361 GB, free: 14.98 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.3831, allocations: 4 kB / 1.361 GB, free: 14.98 MB / 1.061 GB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0009592/0.384, allocations: 0.593 MB / 1.362 GB, free: 14.34 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001009/0.3841, allocations: 109.1 kB / 1.362 GB, free: 14.21 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.3841, allocations: 0 / 1.362 GB, free: 14.21 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.745e-05/0.3841, allocations: 4 kB / 1.362 GB, free: 14.21 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001295/0.3843, allocations: 27.92 kB / 1.362 GB, free: 14.18 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.295e-05/0.3843, allocations: 12.14 kB / 1.362 GB, free: 14.17 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005134/0.3848, allocations: 88.05 kB / 1.362 GB, free: 14.09 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.326e-05/0.3848, allocations: 23.98 kB / 1.362 GB, free: 14.06 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.0001826/0.385, allocations: 157.6 kB / 1.362 GB, free: 13.9 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.26e-05/0.3851, allocations: 23.86 kB / 1.362 GB, free: 13.88 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003728/0.3854, allocations: 213 kB / 1.363 GB, free: 13.66 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.416e-06/0.3854, allocations: 0 / 1.363 GB, free: 13.66 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.3854, allocations: 4 kB / 1.363 GB, free: 13.65 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.414e-06/0.3854, allocations: 4.031 kB / 1.363 GB, free: 13.65 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007249/0.3862, allocations: 0.5052 MB / 1.363 GB, free: 13.09 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.3862, allocations: 3.938 kB / 1.363 GB, free: 13.09 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.706e-05/0.3862, allocations: 19.92 kB / 1.363 GB, free: 13.07 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.395e-06/0.3862, allocations: 0 / 1.363 GB, free: 13.07 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.754e-05/0.3863, allocations: 8 kB / 1.363 GB, free: 13.06 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.3863, allocations: 0 / 1.363 GB, free: 13.06 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.887e-06/0.3863, allocations: 3.938 kB / 1.363 GB, free: 13.06 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003816/0.3867, allocations: 298.8 kB / 1.363 GB, free: 12.75 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 4.134e-05/0.3867, allocations: 23.84 kB / 1.363 GB, free: 12.73 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.977e-05/0.3867, allocations: 0 / 1.363 GB, free: 12.73 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.614e-05/0.3868, allocations: 11.94 kB / 1.363 GB, free: 12.72 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.726e-05/0.3869, allocations: 23.84 kB / 1.363 GB, free: 12.7 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.531e-05/0.3869, allocations: 8 kB / 1.363 GB, free: 12.69 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001641/0.3871, allocations: 148.4 kB / 1.364 GB, free: 12.54 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/0.3871, allocations: 0 / 1.364 GB, free: 12.54 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0004288/0.3875, allocations: 75.88 kB / 1.364 GB, free: 12.47 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.0009726/0.3885, allocations: 0.8345 MB / 1.364 GB, free: 11.61 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0008039/0.3893, allocations: 0.5069 MB / 1.365 GB, free: 11.04 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 5.57e-06/0.3893, allocations: 4 kB / 1.365 GB, free: 11.04 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001655/0.3894, allocations: 69.45 kB / 1.365 GB, free: 10.97 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005276/0.39, allocations: 68.27 kB / 1.365 GB, free: 10.91 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004427/0.3944, allocations: 3.259 MB / 1.368 GB, free: 7.41 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001625/0.3945, allocations: 137.8 kB / 1.368 GB, free: 7.258 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 9.586e-05/0.3946, allocations: 17.95 kB / 1.368 GB, free: 7.242 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000126/0.3948, allocations: 71.41 kB / 1.368 GB, free: 7.172 MB / 1.061 GB Notification: Performance of SimCode: time 1.192e-06/0.3948, allocations: 0 / 1.368 GB, free: 7.172 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03545/0.4302, allocations: 6.969 MB / 1.375 GB, free: 472 kB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.33/11.76, allocations: 10.94 kB / 1.375 GB, free: 464 kB / 1.061 GB " [Timeout remaining time 288] (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: 18.73819936599466]