Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.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.001002/0.001002, allocations: 80.75 kB / 19.94 MB, free: 4.547 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.001008/0.001008, allocations: 181 kB / 23.36 MB, free: 1.133 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.9826/0.9826, allocations: 177.1 MB / 203.8 MB, free: 5.465 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.533/2.533, allocations: 438.8 MB / 0.6827 GB, free: 13.63 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.CDL.Discrete.Validation.UnitDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|unitDelay1.u|unitDelay1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|unitDelay1.u|unitDelay1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.204e-06/2.204e-06, allocations: 0 / 0.8386 GB, free: 14.21 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.062e-05/2.282e-05, allocations: 8.422 kB / 0.8386 GB, free: 14.2 MB / 0.8073 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.001458/0.001481, allocations: 0.7249 MB / 0.8393 GB, free: 13.48 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.001114/0.002595, allocations: 1.115 MB / 0.8404 GB, free: 12.35 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.261e-05/0.002638, allocations: 0 / 0.8404 GB, free: 12.35 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 2.601e-05/0.002664, allocations: 3.938 kB / 0.8404 GB, free: 12.34 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 6.466e-05/0.002729, allocations: 7.938 kB / 0.8404 GB, free: 12.34 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002326/0.002961, allocations: 51.7 kB / 0.8405 GB, free: 12.29 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 7.706e-05/0.003038, allocations: 55.83 kB / 0.8405 GB, free: 12.23 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 6.847e-05/0.003107, allocations: 7.938 kB / 0.8405 GB, free: 12.22 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 7.052e-05/0.003177, allocations: 27.97 kB / 0.8406 GB, free: 12.2 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 3.731e-05/0.003215, allocations: 15.97 kB / 0.8406 GB, free: 12.18 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 1.434e-05/0.003229, allocations: 4 kB / 0.8406 GB, free: 12.18 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 7.09e-05/0.0033, allocations: 23.92 kB / 0.8406 GB, free: 12.15 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 1.405e-05/0.003314, allocations: 4 kB / 0.8406 GB, free: 12.15 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 2.794e-05/0.003342, allocations: 19.97 kB / 0.8406 GB, free: 12.13 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0001018/0.003444, allocations: 47.81 kB / 0.8407 GB, free: 12.08 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 1.994e-06/0.003446, allocations: 0 / 0.8407 GB, free: 12.08 MB / 0.8073 GB Notification: Performance of FrontEnd: time 7.71e-07/0.003447, allocations: 4 kB / 0.8407 GB, free: 12.08 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 4.438e-06/0.003451, allocations: 4 kB / 0.8407 GB, free: 12.07 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0002846/0.003736, allocations: 248.8 kB / 0.8409 GB, free: 11.8 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.338e-05/0.003769, allocations: 12.62 kB / 0.8409 GB, free: 11.79 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.838e-05/0.003847, allocations: 16.91 kB / 0.8409 GB, free: 11.78 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.303e-05/0.00392, allocations: 113.7 kB / 0.8411 GB, free: 11.64 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.868e-06/0.00393, allocations: 4.375 kB / 0.8411 GB, free: 11.64 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.713e-06/0.003937, allocations: 384 / 0.8411 GB, free: 11.64 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.567e-05/0.004033, allocations: 66.92 kB / 0.8411 GB, free: 11.56 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.934e-06/0.00404, allocations: 192 / 0.8411 GB, free: 11.56 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.124e-06/0.004047, allocations: 8.359 kB / 0.8411 GB, free: 11.55 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.679e-06/0.004051, allocations: 4.375 kB / 0.8411 GB, free: 11.55 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.204e-05/0.004073, allocations: 7.938 kB / 0.8411 GB, free: 11.54 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000252/0.004325, allocations: 176.1 kB / 0.8413 GB, free: 11.36 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 5.922e-05/0.004385, allocations: 26.58 kB / 0.8413 GB, free: 11.32 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.65e-05/0.004401, allocations: 16.97 kB / 0.8414 GB, free: 11.3 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.319e-05/0.004414, allocations: 0 / 0.8414 GB, free: 11.3 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.094e-05/0.004475, allocations: 51.47 kB / 0.8414 GB, free: 11.24 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=6): time 9.92e-07/0.004476, allocations: 0 / 0.8414 GB, free: 11.24 MB / 0.8073 GB Notification: Performance of matching and sorting (n=6): time 0.0001077/0.004584, allocations: 69.73 kB / 0.8415 GB, free: 11.16 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.15e-05/0.004615, allocations: 55.41 kB / 0.8415 GB, free: 11.1 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.909e-05/0.004675, allocations: 110.7 kB / 0.8416 GB, free: 10.98 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.242e-05/0.004687, allocations: 29.7 kB / 0.8417 GB, free: 10.94 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 3.047e-05/0.004717, allocations: 88.09 kB / 0.8417 GB, free: 10.85 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 1.972e-05/0.004737, allocations: 19.81 kB / 0.8418 GB, free: 10.83 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.351e-05/0.004771, allocations: 21.72 kB / 0.8418 GB, free: 10.8 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 8.144e-05/0.004852, allocations: 322.8 kB / 0.8421 GB, free: 10.48 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.379e-05/0.004866, allocations: 4.062 kB / 0.8421 GB, free: 10.48 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.311e-05/0.004899, allocations: 40.23 kB / 0.8421 GB, free: 10.42 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.81e-05/0.004957, allocations: 64.19 kB / 0.8422 GB, free: 10.34 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.704e-06/0.004959, allocations: 0 / 0.8422 GB, free: 10.34 MB / 0.8073 GB Notification: Performance of matching and sorting (n=9) (initialization): time 8.266e-05/0.005041, allocations: 69.55 kB / 0.8423 GB, free: 10.27 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.205e-05/0.005054, allocations: 4 kB / 0.8423 GB, free: 10.27 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.109e-06/0.005059, allocations: 160 / 0.8423 GB, free: 10.27 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.262e-05/0.005071, allocations: 11.94 kB / 0.8423 GB, free: 10.25 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.908e-05/0.00515, allocations: 15.98 kB / 0.8423 GB, free: 10.24 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.208e-06/0.005155, allocations: 4 kB / 0.8423 GB, free: 10.23 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.032e-05/0.005185, allocations: 4 kB / 0.8423 GB, free: 10.23 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.323e-06/0.005192, allocations: 4 kB / 0.8423 GB, free: 10.23 MB / 0.8073 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 6 (unitDelay1.u_internal,$PRE.unitDelay1.u_internal,unitDelay1.y,$PRE.unitDelay1.y,unitDelay1.sampleTrigger,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * 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 7.143e-05/0.005264, allocations: 116.2 kB / 0.8424 GB, free: 10.11 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.091e-05/0.005275, allocations: 11.98 kB / 0.8424 GB, free: 10.09 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.918e-05/0.005354, allocations: 50.12 kB / 0.8425 GB, free: 10.04 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.889e-06/0.005359, allocations: 7.922 kB / 0.8425 GB, free: 10.04 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.495e-06/0.005361, allocations: 8 kB / 0.8425 GB, free: 10.03 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.367e-06/0.005364, allocations: 0 / 0.8425 GB, free: 10.03 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001676/0.005532, allocations: 202.8 kB / 0.8427 GB, free: 9.805 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.005534, allocations: 0 / 0.8427 GB, free: 9.805 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.884e-05/0.005563, allocations: 4 kB / 0.8427 GB, free: 9.801 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.005565, allocations: 0 / 0.8427 GB, free: 9.801 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.727e-06/0.005573, allocations: 11.88 kB / 0.8427 GB, free: 9.789 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.525e-06/0.005576, allocations: 4 kB / 0.8427 GB, free: 9.785 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.005577, allocations: 0 / 0.8427 GB, free: 9.785 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.014e-05/0.005657, allocations: 147.6 kB / 0.8428 GB, free: 9.625 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 1.012e-05/0.005667, allocations: 15.89 kB / 0.8428 GB, free: 9.609 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.331e-05/0.00568, allocations: 7.938 kB / 0.8429 GB, free: 9.602 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.769e-05/0.005718, allocations: 11.98 kB / 0.8429 GB, free: 9.59 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.751e-05/0.005745, allocations: 0 / 0.8429 GB, free: 9.59 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.587e-06/0.005749, allocations: 0 / 0.8429 GB, free: 9.59 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 1.503e-05/0.005764, allocations: 16.84 kB / 0.8429 GB, free: 9.57 MB / 0.8073 GB Notification: Performance of sort global known variables: time 5e-08/0.005764, allocations: 0 / 0.8429 GB, free: 9.57 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001415/0.005906, allocations: 12 kB / 0.8429 GB, free: 9.559 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: 4 (unitDelay1.sampleTrigger,$whenCondition1,unitDelay1.y,unitDelay1.u_internal) * Number of discrete states: 1 (unitDelay1.u_internal) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001005/0.006006, allocations: 80.42 kB / 0.843 GB, free: 9.469 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 7.035e-05/0.006076, allocations: 37.03 kB / 0.843 GB, free: 9.43 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.006081, allocations: 4 kB / 0.843 GB, free: 9.426 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 2.458e-05/0.006105, allocations: 20.83 kB / 0.843 GB, free: 9.402 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001462/0.006252, allocations: 7.938 kB / 0.843 GB, free: 9.395 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003782/0.00663, allocations: 136.6 kB / 0.8432 GB, free: 9.234 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.427e-05/0.006664, allocations: 61.38 kB / 0.8432 GB, free: 9.156 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 2.375e-05/0.006688, allocations: 7.75 kB / 0.8432 GB, free: 9.148 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.319e-05/0.006741, allocations: 67.42 kB / 0.8433 GB, free: 9.082 MB / 0.8073 GB Notification: Performance of SimCode: time 6.01e-07/0.006742, allocations: 0 / 0.8433 GB, free: 9.082 MB / 0.8073 GB Notification: Performance of Templates: time 0.002514/0.009255, allocations: 0.8649 MB / 0.8441 GB, free: 8.23 MB / 0.8073 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay.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.381271808873862]