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.001324/0.001324, 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.001449/0.001449, 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.9647/0.9647, allocations: 177.2 MB / 203.8 MB, free: 5.484 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.464/2.464, allocations: 438.8 MB / 0.6827 GB, free: 13.57 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.545e-06/2.545e-06, allocations: 0 / 0.8385 GB, free: 14.21 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.231e-05/2.486e-05, allocations: 10.19 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.001464/0.001489, allocations: 0.675 MB / 0.8392 GB, free: 13.53 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.001154/0.002643, allocations: 1.123 MB / 0.8403 GB, free: 12.39 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.386e-05/0.002687, allocations: 0 / 0.8403 GB, free: 12.39 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 2.741e-05/0.002714, allocations: 3.938 kB / 0.8403 GB, free: 12.39 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 6.852e-05/0.002783, allocations: 11.92 kB / 0.8403 GB, free: 12.38 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002496/0.003032, allocations: 47.7 kB / 0.8404 GB, free: 12.33 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 8.645e-05/0.003119, allocations: 51.84 kB / 0.8404 GB, free: 12.28 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 7.105e-05/0.00319, allocations: 7.984 kB / 0.8404 GB, free: 12.27 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 7.305e-05/0.003263, allocations: 23.98 kB / 0.8405 GB, free: 12.25 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 4.261e-05/0.003306, allocations: 23.91 kB / 0.8405 GB, free: 12.22 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 1.374e-05/0.003319, allocations: 4 kB / 0.8405 GB, free: 12.22 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 5.371e-05/0.003373, allocations: 15.98 kB / 0.8405 GB, free: 12.2 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 1.879e-05/0.003392, allocations: 7.984 kB / 0.8405 GB, free: 12.2 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 2.239e-05/0.003414, allocations: 19.92 kB / 0.8405 GB, free: 12.18 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0001068/0.003521, allocations: 51.81 kB / 0.8406 GB, free: 12.12 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 2.224e-06/0.003523, allocations: 0 / 0.8406 GB, free: 12.12 MB / 0.8073 GB Notification: Performance of FrontEnd: time 7.32e-07/0.003524, allocations: 0 / 0.8406 GB, free: 12.12 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 3.567e-06/0.003527, allocations: 0 / 0.8406 GB, free: 12.12 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.0003334/0.003861, allocations: 268.7 kB / 0.8408 GB, free: 11.84 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.337e-05/0.003894, allocations: 12.62 kB / 0.8408 GB, free: 11.82 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.189e-05/0.003976, allocations: 4.938 kB / 0.8408 GB, free: 11.82 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.441e-05/0.004051, allocations: 109.7 kB / 0.841 GB, free: 11.69 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.057e-05/0.004061, allocations: 4.375 kB / 0.841 GB, free: 11.68 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.413e-05/0.004075, allocations: 8.359 kB / 0.841 GB, free: 11.68 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.158e-05/0.004167, allocations: 62.94 kB / 0.841 GB, free: 11.61 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.334e-06/0.004174, allocations: 192 / 0.841 GB, free: 11.61 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.524e-06/0.004182, allocations: 4.359 kB / 0.841 GB, free: 11.6 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.671e-06/0.004187, allocations: 8.312 kB / 0.841 GB, free: 11.59 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.27e-05/0.00421, allocations: 11.92 kB / 0.841 GB, free: 11.58 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002433/0.004453, allocations: 168.2 kB / 0.8412 GB, free: 11.4 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 6.978e-05/0.004523, allocations: 34.56 kB / 0.8412 GB, free: 11.36 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.383e-05/0.004537, allocations: 8.859 kB / 0.8412 GB, free: 11.35 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.422e-05/0.004551, allocations: 4 kB / 0.8413 GB, free: 11.34 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.509e-05/0.004616, allocations: 67.52 kB / 0.8413 GB, free: 11.27 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=6): time 1.072e-06/0.004617, allocations: 0 / 0.8413 GB, free: 11.27 MB / 0.8073 GB Notification: Performance of matching and sorting (n=6): time 0.0001064/0.004724, allocations: 53.62 kB / 0.8414 GB, free: 11.21 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.643e-05/0.00476, allocations: 55.41 kB / 0.8414 GB, free: 11.14 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.445e-05/0.004815, allocations: 110.7 kB / 0.8415 GB, free: 11.02 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.133e-05/0.004826, allocations: 33.64 kB / 0.8416 GB, free: 10.98 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 3.025e-05/0.004856, allocations: 88.09 kB / 0.8416 GB, free: 10.89 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 1.659e-05/0.004873, allocations: 19.81 kB / 0.8417 GB, free: 10.87 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.974e-05/0.004903, allocations: 21.72 kB / 0.8417 GB, free: 10.84 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 7.846e-05/0.004981, allocations: 322.8 kB / 0.842 GB, free: 10.52 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.403e-05/0.004995, allocations: 8 kB / 0.842 GB, free: 10.51 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.032e-05/0.005025, allocations: 44.27 kB / 0.842 GB, free: 10.45 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.657e-05/0.005072, allocations: 48.22 kB / 0.8421 GB, free: 10.39 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.005074, allocations: 0 / 0.8421 GB, free: 10.39 MB / 0.8073 GB Notification: Performance of matching and sorting (n=9) (initialization): time 7.173e-05/0.005146, allocations: 69.64 kB / 0.8422 GB, free: 10.32 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.332e-05/0.005159, allocations: 10.34 kB / 0.8422 GB, free: 10.31 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.138e-06/0.005163, allocations: 0 / 0.8422 GB, free: 10.31 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.451e-05/0.005178, allocations: 7.938 kB / 0.8422 GB, free: 10.3 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.949e-05/0.005247, allocations: 19.98 kB / 0.8422 GB, free: 10.28 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.788e-06/0.005251, allocations: 3.938 kB / 0.8422 GB, free: 10.28 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.507e-05/0.005276, allocations: 4 kB / 0.8422 GB, free: 10.27 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.283e-06/0.005283, allocations: 7.938 kB / 0.8422 GB, free: 10.27 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 5.811e-05/0.005341, allocations: 113.8 kB / 0.8423 GB, free: 10.14 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.666e-06/0.00535, allocations: 7.984 kB / 0.8423 GB, free: 10.14 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.646e-05/0.005426, allocations: 54.19 kB / 0.8424 GB, free: 10.08 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.447e-06/0.00543, allocations: 3.938 kB / 0.8424 GB, free: 10.08 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.763e-06/0.005432, allocations: 0 / 0.8424 GB, free: 10.08 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.005435, allocations: 3.984 kB / 0.8424 GB, free: 10.07 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001503/0.005586, allocations: 202.8 kB / 0.8426 GB, free: 9.852 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.005587, allocations: 0 / 0.8426 GB, free: 9.852 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.47e-05/0.005611, allocations: 8.375 kB / 0.8426 GB, free: 9.844 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.005614, allocations: 0 / 0.8426 GB, free: 9.844 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.199e-06/0.005619, allocations: 3.938 kB / 0.8426 GB, free: 9.84 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.464e-06/0.005621, allocations: 4 kB / 0.8426 GB, free: 9.836 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.005623, allocations: 0 / 0.8426 GB, free: 9.836 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.66e-05/0.005699, allocations: 155.5 kB / 0.8427 GB, free: 9.668 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 6.843e-06/0.005706, allocations: 7.891 kB / 0.8427 GB, free: 9.66 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.444e-05/0.00572, allocations: 11.94 kB / 0.8428 GB, free: 9.648 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.07e-05/0.005751, allocations: 3.984 kB / 0.8428 GB, free: 9.645 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.444e-05/0.005776, allocations: 4 kB / 0.8428 GB, free: 9.641 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.617e-06/0.005779, allocations: 0 / 0.8428 GB, free: 9.641 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 1.379e-05/0.005793, allocations: 12.84 kB / 0.8428 GB, free: 9.625 MB / 0.8073 GB Notification: Performance of sort global known variables: time 5e-08/0.005793, allocations: 0 / 0.8428 GB, free: 9.625 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001355/0.005928, allocations: 16 kB / 0.8428 GB, free: 9.609 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.0001181/0.006047, allocations: 84.41 kB / 0.8429 GB, free: 9.516 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 6.813e-05/0.006115, allocations: 32.8 kB / 0.8429 GB, free: 9.48 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.006117, allocations: 0 / 0.8429 GB, free: 9.48 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 2.743e-05/0.006145, allocations: 28.77 kB / 0.8429 GB, free: 9.449 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001325/0.006277, allocations: 6.062 kB / 0.8429 GB, free: 9.445 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003404/0.006618, allocations: 136.9 kB / 0.8431 GB, free: 9.285 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.026e-05/0.006648, allocations: 63.34 kB / 0.8431 GB, free: 9.203 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 1.931e-05/0.006667, allocations: 7.75 kB / 0.8431 GB, free: 9.195 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.5e-05/0.006712, allocations: 59.36 kB / 0.8432 GB, free: 9.137 MB / 0.8073 GB Notification: Performance of SimCode: time 7.12e-07/0.006713, allocations: 0 / 0.8432 GB, free: 9.137 MB / 0.8073 GB Notification: Performance of Templates: time 0.002519/0.009231, allocations: 0.8867 MB / 0.8441 GB, free: 8.27 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 -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.454580476041883]