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.001775/0.001775, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.00241/0.00241, allocations: 216.6 kB / 22.25 MB, free: 5.125 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.58/1.58, allocations: 230.6 MB / 256 MB, free: 7.973 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.239/3.239, allocations: 0.49 GB / 0.7951 GB, free: 33.34 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: translateModel(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|tOn.y|tOff.y|halPerRat.rho",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio") translateModel(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|tOn.y|tOff.y|halPerRat.rho",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio") [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.0021/0.0021, allocations: 68.41 kB / 1.154 GB, free: 25.45 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4166/0.4187, allocations: 176.1 MB / 1.326 GB, free: 1.438 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio): time 0.002702/0.4214, allocations: 1.185 MB / 1.328 GB, free: 264 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002208/0.4236, allocations: 1.451 MB / 1.329 GB, free: 14.79 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001185/0.4237, allocations: 0 / 1.329 GB, free: 14.79 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 6.48e-05/0.4238, allocations: 19.73 kB / 1.329 GB, free: 14.77 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0001752/0.424, allocations: 59.56 kB / 1.329 GB, free: 14.71 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.001005/0.425, allocations: 388.4 kB / 1.329 GB, free: 14.34 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0005247/0.4255, allocations: 459.2 kB / 1.33 GB, free: 13.89 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001907/0.4257, allocations: 77.11 kB / 1.33 GB, free: 13.82 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002181/0.4259, allocations: 175.5 kB / 1.33 GB, free: 13.64 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002584/0.4262, allocations: 167.4 kB / 1.33 GB, free: 13.48 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 6.787e-05/0.4262, allocations: 48 kB / 1.33 GB, free: 13.43 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001199/0.4263, allocations: 63.98 kB / 1.33 GB, free: 13.37 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 5.299e-05/0.4264, allocations: 47.84 kB / 1.33 GB, free: 13.32 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001874/0.4266, allocations: 171.3 kB / 1.331 GB, free: 13.16 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0005643/0.4271, allocations: 498.3 kB / 1.331 GB, free: 12.67 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 6.693e-06/0.4272, allocations: 4 kB / 1.331 GB, free: 12.66 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.694e-06/0.4272, allocations: 0 / 1.331 GB, free: 12.66 MB / 1.029 GB Notification: Performance of Transformations before backend: time 7.854e-06/0.4272, allocations: 3.938 kB / 1.331 GB, free: 12.66 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.0008875/0.428, allocations: 0.549 MB / 1.332 GB, free: 12.06 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.122e-05/0.4281, allocations: 12.03 kB / 1.332 GB, free: 12.05 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.832e-05/0.4282, allocations: 32.75 kB / 1.332 GB, free: 12.02 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003548/0.4285, allocations: 222.3 kB / 1.332 GB, free: 11.77 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.312e-05/0.4286, allocations: 16.38 kB / 1.332 GB, free: 11.76 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.884e-05/0.4286, allocations: 28.38 kB / 1.332 GB, free: 11.73 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002676/0.4289, allocations: 146 kB / 1.332 GB, free: 11.58 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.283e-05/0.4289, allocations: 3.938 kB / 1.332 GB, free: 11.58 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.79e-05/0.4289, allocations: 8 kB / 1.332 GB, free: 11.57 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.057e-05/0.4289, allocations: 4 kB / 1.332 GB, free: 11.57 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001739/0.4291, allocations: 95.89 kB / 1.332 GB, free: 11.47 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00109/0.4302, allocations: 0.659 MB / 1.333 GB, free: 10.77 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002155/0.4304, allocations: 102.5 kB / 1.333 GB, free: 10.66 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001043/0.4305, allocations: 60.78 kB / 1.333 GB, free: 10.6 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.239e-05/0.4306, allocations: 0 / 1.333 GB, free: 10.6 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002632/0.4308, allocations: 140.8 kB / 1.333 GB, free: 10.45 MB / 1.029 GB Notification: Performance of pre-optimization done (n=20): time 1.153e-06/0.4308, allocations: 0 / 1.333 GB, free: 10.45 MB / 1.029 GB Notification: Performance of matching and sorting (n=20): time 0.0005016/0.4313, allocations: 254.9 kB / 1.333 GB, free: 10.2 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.128e-05/0.4314, allocations: 55.41 kB / 1.333 GB, free: 10.13 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002539/0.4316, allocations: 222.7 kB / 1.334 GB, free: 9.898 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 6.771e-05/0.4317, allocations: 37.7 kB / 1.334 GB, free: 9.855 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001339/0.4318, allocations: 140.5 kB / 1.334 GB, free: 9.715 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 6.219e-05/0.4319, allocations: 59.53 kB / 1.334 GB, free: 9.656 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001522/0.432, allocations: 85.66 kB / 1.334 GB, free: 9.566 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001581/0.4322, allocations: 338.8 kB / 1.334 GB, free: 9.227 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002684/0.4325, allocations: 127.9 kB / 1.334 GB, free: 9.102 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003394/0.4328, allocations: 213.8 kB / 1.334 GB, free: 8.859 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004636/0.4333, allocations: 338.3 kB / 1.335 GB, free: 8.477 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.4333, allocations: 0 / 1.335 GB, free: 8.477 MB / 1.029 GB Notification: Performance of matching and sorting (n=32) (initialization): time 0.000838/0.4341, allocations: 0.4984 MB / 1.335 GB, free: 7.953 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 9.294e-05/0.4342, allocations: 101.1 kB / 1.335 GB, free: 7.836 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.996e-06/0.4342, allocations: 4 kB / 1.335 GB, free: 7.832 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.001e-05/0.4342, allocations: 4 kB / 1.335 GB, free: 7.828 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001279/0.4344, allocations: 27.92 kB / 1.335 GB, free: 7.801 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.06e-05/0.4344, allocations: 4 kB / 1.335 GB, free: 7.797 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004829/0.4349, allocations: 91.89 kB / 1.336 GB, free: 7.707 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.093e-05/0.4349, allocations: 27.97 kB / 1.336 GB, free: 7.68 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.0001724/0.4351, allocations: 147.5 kB / 1.336 GB, free: 7.527 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.305e-05/0.4351, allocations: 19.86 kB / 1.336 GB, free: 7.508 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003589/0.4355, allocations: 207.3 kB / 1.336 GB, free: 7.297 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.4355, allocations: 3.938 kB / 1.336 GB, free: 7.293 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.4355, allocations: 4 kB / 1.336 GB, free: 7.289 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.384e-05/0.4355, allocations: 3.984 kB / 1.336 GB, free: 7.285 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007075/0.4362, allocations: 0.5336 MB / 1.336 GB, free: 6.703 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.4362, allocations: 0 / 1.336 GB, free: 6.703 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.96e-05/0.4363, allocations: 12 kB / 1.336 GB, free: 6.691 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.073e-06/0.4363, allocations: 0 / 1.336 GB, free: 6.691 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.168e-05/0.4363, allocations: 15.98 kB / 1.336 GB, free: 6.676 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.4363, allocations: 0 / 1.336 GB, free: 6.676 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.978e-06/0.4363, allocations: 3.938 kB / 1.336 GB, free: 6.672 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003594/0.4367, allocations: 301.5 kB / 1.337 GB, free: 6.363 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.73e-05/0.4367, allocations: 11.91 kB / 1.337 GB, free: 6.352 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.251e-05/0.4367, allocations: 8 kB / 1.337 GB, free: 6.344 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.496e-05/0.4368, allocations: 3.984 kB / 1.337 GB, free: 6.34 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.404e-05/0.4368, allocations: 23.88 kB / 1.337 GB, free: 6.316 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.62e-05/0.4369, allocations: 11.98 kB / 1.337 GB, free: 6.305 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001502/0.437, allocations: 148.4 kB / 1.337 GB, free: 6.16 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.437, allocations: 0 / 1.337 GB, free: 6.16 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003619/0.4374, allocations: 75.94 kB / 1.337 GB, free: 6.086 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.0001839/0.4376, allocations: 107.2 kB / 1.337 GB, free: 5.969 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0006502/0.4382, allocations: 429.8 kB / 1.338 GB, free: 5.512 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.4382, allocations: 0 / 1.338 GB, free: 5.512 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001151/0.4383, allocations: 67.91 kB / 1.338 GB, free: 5.445 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004808/0.4388, allocations: 61.89 kB / 1.338 GB, free: 5.387 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007647/0.4396, allocations: 377.7 kB / 1.338 GB, free: 4.996 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003959/0.44, allocations: 0.7359 MB / 1.339 GB, free: 4.234 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 6.696e-05/0.44, allocations: 21.95 kB / 1.339 GB, free: 4.215 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.673e-05/0.4401, allocations: 23.44 kB / 1.339 GB, free: 4.191 MB / 1.029 GB Notification: Performance of SimCode: time 3.01e-07/0.4401, allocations: 0 / 1.339 GB, free: 4.191 MB / 1.029 GB Notification: Performance of Templates: time 0.009006/0.4491, allocations: 4.109 MB / 1.343 GB, free: 172 kB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio.makefile [Timeout 300] (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 & ./Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio.pipe 2>&1) [Timeout 400] 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/jenkins/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: 9.682294994592667]