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.0007978/0.0007978, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.0008555/0.0008555, allocations: 169.9 kB / 22.46 MB, free: 2.102 MB / 18.57 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 0.8627/0.8627, allocations: 177.2 MB / 202.8 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] 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 1.707/1.707, allocations: 389 MB / 0.633 GB, free: 12.69 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/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: Performance of FrontEnd - loaded program: time 2.334e-06/2.334e-06, allocations: 0 / 0.9997 GB, free: 13.49 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.759e-05/1.993e-05, allocations: 5.094 kB / 0.9997 GB, free: 13.48 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio): time 0.001529/0.001549, allocations: 1.099 MB / 1.001 GB, free: 12.39 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.001309/0.002858, allocations: 1.427 MB / 1.002 GB, free: 10.95 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.502e-05/0.002933, allocations: 0 / 1.002 GB, free: 10.95 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 4.142e-05/0.002974, allocations: 19.69 kB / 1.002 GB, free: 10.93 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 0.0001154/0.00309, allocations: 55.58 kB / 1.002 GB, free: 10.87 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005862/0.003676, allocations: 384.5 kB / 1.003 GB, free: 10.5 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0003067/0.003983, allocations: 475 kB / 1.003 GB, free: 10.04 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001384/0.004121, allocations: 71.64 kB / 1.003 GB, free: 9.969 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001838/0.004305, allocations: 255.6 kB / 1.003 GB, free: 9.719 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001545/0.004459, allocations: 127.7 kB / 1.003 GB, free: 9.594 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 4.378e-05/0.004503, allocations: 51.94 kB / 1.004 GB, free: 9.543 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 7.283e-05/0.004576, allocations: 55.98 kB / 1.004 GB, free: 9.488 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 3.599e-05/0.004612, allocations: 51.77 kB / 1.004 GB, free: 9.438 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 9.702e-05/0.004709, allocations: 143.7 kB / 1.004 GB, free: 9.297 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0003631/0.005072, allocations: 0.5414 MB / 1.004 GB, free: 8.754 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 2.414e-06/0.005074, allocations: 0 / 1.004 GB, free: 8.754 MB / 0.9636 GB Notification: Performance of FrontEnd: time 1.302e-06/0.005076, allocations: 0 / 1.004 GB, free: 8.754 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 4.529e-06/0.00508, allocations: 4 kB / 1.004 GB, free: 8.75 MB / 0.9636 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.0005753/0.005656, allocations: 0.5412 MB / 1.005 GB, free: 8.156 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.654e-05/0.005692, allocations: 9.344 kB / 1.005 GB, free: 8.148 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.38e-05/0.005726, allocations: 50.73 kB / 1.005 GB, free: 8.09 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.399e-05/0.00578, allocations: 28.8 kB / 1.005 GB, free: 8.062 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002332/0.006013, allocations: 229.3 kB / 1.005 GB, free: 7.812 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.047e-05/0.006034, allocations: 20.38 kB / 1.005 GB, free: 7.793 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.417e-05/0.006068, allocations: 32.36 kB / 1.005 GB, free: 7.762 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001716/0.006239, allocations: 135.7 kB / 1.005 GB, free: 7.625 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.505e-06/0.006247, allocations: 192 / 1.005 GB, free: 7.625 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.178e-05/0.006259, allocations: 4.375 kB / 1.005 GB, free: 7.621 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.823e-06/0.006266, allocations: 7.938 kB / 1.005 GB, free: 7.613 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001205/0.006386, allocations: 99.75 kB / 1.005 GB, free: 7.516 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007862/0.007172, allocations: 0.5656 MB / 1.006 GB, free: 6.906 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001396/0.007312, allocations: 102.5 kB / 1.006 GB, free: 6.797 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.219e-05/0.007374, allocations: 56.78 kB / 1.006 GB, free: 6.738 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 2.04e-05/0.007394, allocations: 4 kB / 1.006 GB, free: 6.734 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001923/0.007587, allocations: 141.8 kB / 1.006 GB, free: 6.586 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=20): time 1.523e-06/0.007588, allocations: 0 / 1.006 GB, free: 6.586 MB / 0.9636 GB Notification: Performance of matching and sorting (n=20): time 0.0003372/0.007925, allocations: 257.4 kB / 1.006 GB, free: 6.328 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.506e-05/0.007961, allocations: 55.41 kB / 1.007 GB, free: 6.262 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001414/0.008102, allocations: 215 kB / 1.007 GB, free: 6.039 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 3.165e-05/0.008134, allocations: 37.69 kB / 1.007 GB, free: 5.996 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 7.872e-05/0.008212, allocations: 148.5 kB / 1.007 GB, free: 5.848 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 3.193e-05/0.008244, allocations: 51.55 kB / 1.007 GB, free: 5.797 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.963e-05/0.008344, allocations: 93.59 kB / 1.007 GB, free: 5.699 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 8.138e-05/0.008425, allocations: 330.8 kB / 1.007 GB, free: 5.367 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002159/0.008641, allocations: 229 kB / 1.008 GB, free: 5.125 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002268/0.008868, allocations: 298.5 kB / 1.008 GB, free: 4.781 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002713/0.009139, allocations: 342.3 kB / 1.008 GB, free: 4.395 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.009142, allocations: 0 / 1.008 GB, free: 4.395 MB / 0.9636 GB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005406/0.009682, allocations: 0.5853 MB / 1.009 GB, free: 3.766 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 5.431e-05/0.009737, allocations: 109 kB / 1.009 GB, free: 3.641 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.022e-06/0.009743, allocations: 4 kB / 1.009 GB, free: 3.637 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.274e-05/0.009755, allocations: 7.938 kB / 1.009 GB, free: 3.629 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.983e-05/0.009835, allocations: 24.03 kB / 1.009 GB, free: 3.605 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.496e-06/0.009844, allocations: 12.19 kB / 1.009 GB, free: 3.594 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002345/0.01008, allocations: 91.73 kB / 1.009 GB, free: 3.504 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.829e-05/0.01011, allocations: 19.98 kB / 1.009 GB, free: 3.484 MB / 0.9636 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.0001058/0.01021, allocations: 155.1 kB / 1.009 GB, free: 3.324 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.032e-05/0.01023, allocations: 31.8 kB / 1.009 GB, free: 3.293 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002353/0.01047, allocations: 204.9 kB / 1.009 GB, free: 3.086 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.336e-06/0.01047, allocations: 4 kB / 1.009 GB, free: 3.082 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.928e-06/0.01048, allocations: 0 / 1.009 GB, free: 3.082 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.01048, allocations: 0 / 1.009 GB, free: 3.082 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004049/0.01088, allocations: 0.5189 MB / 1.01 GB, free: 2.516 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.01088, allocations: 0 / 1.01 GB, free: 2.516 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.501e-05/0.01092, allocations: 11.98 kB / 1.01 GB, free: 2.504 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.336e-06/0.01092, allocations: 4 kB / 1.01 GB, free: 2.5 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.117e-06/0.01093, allocations: 4 kB / 1.01 GB, free: 2.496 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.01093, allocations: 0 / 1.01 GB, free: 2.496 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.01093, allocations: 8 kB / 1.01 GB, free: 2.488 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001972/0.01113, allocations: 299.2 kB / 1.01 GB, free: 2.18 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 1.655e-05/0.01115, allocations: 15.89 kB / 1.01 GB, free: 2.164 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.826e-05/0.01117, allocations: 12 kB / 1.01 GB, free: 2.152 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.444e-05/0.01121, allocations: 0 / 1.01 GB, free: 2.152 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.39e-05/0.01125, allocations: 15.97 kB / 1.01 GB, free: 2.137 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.947e-06/0.01125, allocations: 12 kB / 1.01 GB, free: 2.125 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 8.183e-05/0.01134, allocations: 147 kB / 1.01 GB, free: 1.98 MB / 0.9636 GB Notification: Performance of sort global known variables: time 5e-08/0.01134, allocations: 0 / 1.01 GB, free: 1.98 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0002274/0.01156, allocations: 83.81 kB / 1.011 GB, free: 1.898 MB / 0.9636 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.0004187/0.01198, allocations: 0.8428 MB / 1.011 GB, free: 1.031 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0004624/0.01244, allocations: 0.4952 MB / 1.012 GB, free: 492 kB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.01245, allocations: 0 / 1.012 GB, free: 492 kB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 7.262e-05/0.01252, allocations: 74.09 kB / 1.012 GB, free: 420 kB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003107/0.01283, allocations: 60.39 kB / 1.012 GB, free: 360 kB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002734/0.01556, allocations: 3.269 MB / 1.015 GB, free: 12.84 MB / 0.9792 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.81e-05/0.01564, allocations: 129.9 kB / 1.015 GB, free: 12.69 MB / 0.9792 GB Notification: Performance of simCode: alias equations: time 5.594e-05/0.0157, allocations: 21.95 kB / 1.015 GB, free: 12.67 MB / 0.9792 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.445e-05/0.01577, allocations: 72.47 kB / 1.015 GB, free: 12.6 MB / 0.9792 GB Notification: Performance of SimCode: time 8.21e-07/0.01577, allocations: 4 kB / 1.015 GB, free: 12.59 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01915/0.03493, allocations: 7.054 MB / 1.022 GB, free: 5.836 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.642/6.677, allocations: 6.375 kB / 1.022 GB, free: 5.832 MB / 0.9792 GB " [Timeout remaining time 293] (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/jenkins/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: 10.534036422148347]