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.0009218/0.0009218, allocations: 80.94 kB / 19.94 MB, free: 4.543 MB / 18.57 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.0009105/0.0009105, allocations: 177 kB / 23.36 MB, free: 1.129 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.9879/0.9879, allocations: 177.1 MB / 203.8 MB, free: 5.473 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 2.407/2.407, allocations: 438.8 MB / 0.6827 GB, free: 13.58 MB / 0.6511 GB " [Timeout remaining time 177] Using package Buildings with version 14.1.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: 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_latest_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_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.673e-06/1.673e-06, allocations: 0 / 0.8386 GB, free: 14.2 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.19e-05/2.357e-05, allocations: 2.312 kB / 0.8386 GB, free: 14.19 MB / 0.8073 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio): time 0.001867/0.001891, allocations: 1.132 MB / 0.8397 GB, free: 13.06 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.00153/0.003421, allocations: 1.462 MB / 0.8411 GB, free: 11.58 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.961e-05/0.00351, allocations: 4 kB / 0.8411 GB, free: 11.58 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 4.429e-05/0.003555, allocations: 23.67 kB / 0.8411 GB, free: 11.55 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 0.0001334/0.003688, allocations: 67.5 kB / 0.8412 GB, free: 11.49 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005946/0.004283, allocations: 363.2 kB / 0.8416 GB, free: 11.13 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 0.0003504/0.004633, allocations: 471 kB / 0.842 GB, free: 10.67 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000131/0.004764, allocations: 70.28 kB / 0.8421 GB, free: 10.61 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002106/0.004975, allocations: 255.6 kB / 0.8423 GB, free: 10.36 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001499/0.005125, allocations: 123.6 kB / 0.8424 GB, free: 10.23 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 4.55e-05/0.00517, allocations: 48 kB / 0.8425 GB, free: 10.19 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 8.843e-05/0.005259, allocations: 59.97 kB / 0.8425 GB, free: 10.13 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 4.406e-05/0.005303, allocations: 51.77 kB / 0.8426 GB, free: 10.08 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 9.82e-05/0.005401, allocations: 135.8 kB / 0.8427 GB, free: 9.945 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0002939/0.005695, allocations: 327 kB / 0.843 GB, free: 9.625 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 2.815e-06/0.005698, allocations: 0 / 0.843 GB, free: 9.625 MB / 0.8073 GB Notification: Performance of FrontEnd: time 1.262e-06/0.005699, allocations: 0 / 0.843 GB, free: 9.625 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 4.579e-06/0.005703, allocations: 0 / 0.843 GB, free: 9.625 MB / 0.8073 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.0005911/0.006295, allocations: 0.5202 MB / 0.8435 GB, free: 9.059 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.227e-05/0.006327, allocations: 12.56 kB / 0.8436 GB, free: 9.047 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.738e-05/0.006384, allocations: 40.89 kB / 0.8436 GB, free: 9.008 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001928/0.006577, allocations: 173.4 kB / 0.8438 GB, free: 8.812 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.304e-05/0.0066, allocations: 16.38 kB / 0.8438 GB, free: 8.797 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.393e-05/0.006634, allocations: 24.38 kB / 0.8438 GB, free: 8.773 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001292/0.006763, allocations: 124.3 kB / 0.8439 GB, free: 8.645 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.486e-06/0.006772, allocations: 192 / 0.8439 GB, free: 8.645 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.255e-05/0.006784, allocations: 8.375 kB / 0.8439 GB, free: 8.637 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.404e-06/0.006792, allocations: 4.375 kB / 0.8439 GB, free: 8.633 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.863e-05/0.00684, allocations: 40.23 kB / 0.844 GB, free: 8.594 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005248/0.007365, allocations: 363.6 kB / 0.8443 GB, free: 8.223 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001075/0.007473, allocations: 70.55 kB / 0.8444 GB, free: 8.145 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.887e-05/0.007501, allocations: 20.86 kB / 0.8444 GB, free: 8.121 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.895e-05/0.00752, allocations: 11.98 kB / 0.8444 GB, free: 8.109 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000129/0.007649, allocations: 123.2 kB / 0.8445 GB, free: 7.977 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=20): time 1.703e-06/0.007651, allocations: 0 / 0.8445 GB, free: 7.977 MB / 0.8073 GB Notification: Performance of matching and sorting (n=20): time 0.0001877/0.007839, allocations: 142.9 kB / 0.8447 GB, free: 7.832 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.62e-05/0.007875, allocations: 59.34 kB / 0.8447 GB, free: 7.762 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001126/0.007988, allocations: 206.1 kB / 0.8449 GB, free: 7.547 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 2.923e-05/0.008017, allocations: 33.7 kB / 0.8449 GB, free: 7.508 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 6.451e-05/0.008081, allocations: 136.5 kB / 0.8451 GB, free: 7.371 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 3.292e-05/0.008114, allocations: 51.58 kB / 0.8451 GB, free: 7.32 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.433e-05/0.008209, allocations: 77.62 kB / 0.8452 GB, free: 7.238 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 8.764e-05/0.008296, allocations: 346.8 kB / 0.8455 GB, free: 6.891 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001211/0.008417, allocations: 153.1 kB / 0.8457 GB, free: 6.723 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000149/0.008566, allocations: 238.4 kB / 0.8459 GB, free: 6.438 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001951/0.008761, allocations: 270.2 kB / 0.8462 GB, free: 6.121 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/0.008764, allocations: 4 kB / 0.8462 GB, free: 6.117 MB / 0.8073 GB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0003492/0.009114, allocations: 431.5 kB / 0.8466 GB, free: 5.652 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 6.117e-05/0.009175, allocations: 109 kB / 0.8467 GB, free: 5.527 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-06/0.009182, allocations: 4 kB / 0.8467 GB, free: 5.523 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.867e-05/0.0092, allocations: 7.938 kB / 0.8467 GB, free: 5.516 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.479e-05/0.009285, allocations: 23.98 kB / 0.8467 GB, free: 5.492 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.286e-06/0.009294, allocations: 12.17 kB / 0.8467 GB, free: 5.48 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001757/0.009469, allocations: 67.84 kB / 0.8468 GB, free: 5.414 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.688e-05/0.009496, allocations: 19.98 kB / 0.8468 GB, free: 5.395 MB / 0.8073 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 9.13e-05/0.009587, allocations: 133.8 kB / 0.8469 GB, free: 5.254 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.857e-05/0.009606, allocations: 15.98 kB / 0.847 GB, free: 5.238 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001418/0.009748, allocations: 121.4 kB / 0.8471 GB, free: 5.117 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.009751, allocations: 8 kB / 0.8471 GB, free: 5.109 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.774e-06/0.009753, allocations: 0 / 0.8471 GB, free: 5.109 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.009756, allocations: 0 / 0.8471 GB, free: 5.109 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002786/0.01003, allocations: 314.3 kB / 0.8474 GB, free: 4.777 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.01004, allocations: 0 / 0.8474 GB, free: 4.777 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.161e-05/0.01008, allocations: 15.98 kB / 0.8474 GB, free: 4.762 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.888e-06/0.01008, allocations: 3.938 kB / 0.8474 GB, free: 4.758 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.975e-06/0.01009, allocations: 4 kB / 0.8474 GB, free: 4.754 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.01009, allocations: 0 / 0.8474 GB, free: 4.754 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.01009, allocations: 0 / 0.8474 GB, free: 4.754 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001242/0.01022, allocations: 213.6 kB / 0.8476 GB, free: 4.531 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 1.743e-05/0.01023, allocations: 23.86 kB / 0.8476 GB, free: 4.508 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.74e-05/0.01025, allocations: 15.97 kB / 0.8476 GB, free: 4.492 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.81e-05/0.01029, allocations: 3.984 kB / 0.8476 GB, free: 4.488 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.167e-05/0.01032, allocations: 15.97 kB / 0.8477 GB, free: 4.473 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.352e-06/0.01033, allocations: 4 kB / 0.8477 GB, free: 4.469 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 4.666e-05/0.01037, allocations: 65.94 kB / 0.8477 GB, free: 4.402 MB / 0.8073 GB Notification: Performance of sort global known variables: time 5e-08/0.01037, allocations: 3.938 kB / 0.8477 GB, free: 4.398 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0002033/0.01058, allocations: 71.89 kB / 0.8478 GB, free: 4.328 MB / 0.8073 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.0001363/0.01071, allocations: 100.3 kB / 0.8479 GB, free: 4.223 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0003103/0.01102, allocations: 431.9 kB / 0.8483 GB, free: 3.742 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.01103, allocations: 0 / 0.8483 GB, free: 3.742 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 5.25e-05/0.01108, allocations: 48.78 kB / 0.8484 GB, free: 3.691 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002368/0.01132, allocations: 71.64 kB / 0.8484 GB, free: 3.625 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004194/0.01174, allocations: 349 kB / 0.8488 GB, free: 3.258 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.967e-05/0.01179, allocations: 79.97 kB / 0.8488 GB, free: 3.16 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 5.242e-05/0.01184, allocations: 21.95 kB / 0.8489 GB, free: 3.141 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001716/0.01201, allocations: 115.3 kB / 0.849 GB, free: 3.027 MB / 0.8073 GB Notification: Performance of SimCode: time 9.92e-07/0.01201, allocations: 4 kB / 0.849 GB, free: 3.023 MB / 0.8073 GB Notification: Performance of Templates: time 0.006459/0.01847, allocations: 4.752 MB / 0.8536 GB, free: 14.42 MB / 0.823 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio.makefile [Timeout 300] (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 & ./Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.503519932739437]