Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001435/0.001435, allocations: 82.64 kB / 20.68 MB, free: 3.816 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.001682/0.001682, allocations: 185 kB / 24.09 MB, free: 416 kB / 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 1.034/1.034, allocations: 177.1 MB / 204.5 MB, free: 5.527 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.848/1.848, allocations: 377.9 MB / 0.624 GB, free: 8.387 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-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.CDL.Discrete.Validation.UnitDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|unitDelay1.u|unitDelay1.y",fileNamePrefix="Buildings_12_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_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.613e-06/1.613e-06, allocations: 0 / 0.812 GB, free: 332 kB / 0.7136 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.588e-05/1.749e-05, allocations: 4.25 kB / 0.812 GB, free: 328 kB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.001349/0.001367, allocations: 0.6803 MB / 0.8126 GB, free: 15.66 MB / 0.7292 GB Notification: Performance of NFInst.instExpressions: time 0.001064/0.00243, allocations: 1.107 MB / 0.8137 GB, free: 14.54 MB / 0.7292 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.72e-05/0.002477, allocations: 0 / 0.8137 GB, free: 14.54 MB / 0.7292 GB Notification: Performance of NFTyping.typeComponents: time 2.564e-05/0.002503, allocations: 8.5 kB / 0.8137 GB, free: 14.53 MB / 0.7292 GB Notification: Performance of NFTyping.typeBindings: time 6.553e-05/0.002569, allocations: 8.531 kB / 0.8137 GB, free: 14.52 MB / 0.7292 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002871/0.002856, allocations: 49.02 kB / 0.8138 GB, free: 14.48 MB / 0.7292 GB Notification: Performance of NFFlatten.flatten: time 8.391e-05/0.00294, allocations: 47.78 kB / 0.8138 GB, free: 14.43 MB / 0.7292 GB Notification: Performance of NFFlatten.resolveConnections: time 8.438e-05/0.003024, allocations: 15.98 kB / 0.8139 GB, free: 14.41 MB / 0.7292 GB Notification: Performance of NFEvalConstants.evaluate: time 7.824e-05/0.003102, allocations: 33.44 kB / 0.8139 GB, free: 14.38 MB / 0.7292 GB Notification: Performance of NFSimplifyModel.simplify: time 3.63e-05/0.003138, allocations: 11.98 kB / 0.8139 GB, free: 14.37 MB / 0.7292 GB Notification: Performance of NFPackage.collectConstants: time 1.43e-05/0.003153, allocations: 4 kB / 0.8139 GB, free: 14.37 MB / 0.7292 GB Notification: Performance of NFFlatten.collectFunctions: time 5.518e-05/0.003208, allocations: 23.97 kB / 0.8139 GB, free: 14.34 MB / 0.7292 GB Notification: Performance of NFScalarize.scalarize: time 1.85e-05/0.003226, allocations: 13.16 kB / 0.8139 GB, free: 14.33 MB / 0.7292 GB Notification: Performance of NFVerifyModel.verify: time 2.109e-05/0.003248, allocations: 11.98 kB / 0.8139 GB, free: 14.32 MB / 0.7292 GB Notification: Performance of NFConvertDAE.convert: time 9.756e-05/0.003345, allocations: 51.81 kB / 0.814 GB, free: 14.27 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 2.094e-06/0.003347, allocations: 0.625 kB / 0.814 GB, free: 14.27 MB / 0.7292 GB Notification: Performance of FrontEnd: time 9.61e-07/0.003348, allocations: 0 / 0.814 GB, free: 14.27 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 3.196e-06/0.003351, allocations: 1.406 kB / 0.814 GB, free: 14.27 MB / 0.7292 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.0003486/0.0037, allocations: 380.5 kB / 0.8144 GB, free: 13.86 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 3.214e-05/0.003732, allocations: 8.031 kB / 0.8144 GB, free: 13.85 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.587e-05/0.003808, allocations: 13.77 kB / 0.8144 GB, free: 13.84 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.044e-05/0.003878, allocations: 116.5 kB / 0.8145 GB, free: 13.7 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.073e-05/0.003889, allocations: 8.906 kB / 0.8145 GB, free: 13.69 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.434e-06/0.003897, allocations: 4.375 kB / 0.8145 GB, free: 13.69 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.359e-05/0.00399, allocations: 67.61 kB / 0.8146 GB, free: 13.61 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.021e-06/0.003996, allocations: 1.094 kB / 0.8146 GB, free: 13.61 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.533e-06/0.004003, allocations: 384 / 0.8146 GB, free: 13.61 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.911e-06/0.004009, allocations: 384 / 0.8146 GB, free: 13.61 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.388e-05/0.004032, allocations: 8.594 kB / 0.8146 GB, free: 13.61 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000269/0.004301, allocations: 265.2 kB / 0.8148 GB, free: 13.32 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 6.59e-05/0.004367, allocations: 40.31 kB / 0.8149 GB, free: 13.27 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.563e-05/0.004383, allocations: 15.67 kB / 0.8149 GB, free: 13.25 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 1.95e-05/0.004402, allocations: 5.656 kB / 0.8149 GB, free: 13.25 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.394e-05/0.004466, allocations: 57.19 kB / 0.8149 GB, free: 13.18 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=6): time 1.172e-06/0.004468, allocations: 0 / 0.8149 GB, free: 13.18 MB / 0.7292 GB Notification: Performance of matching and sorting (n=6): time 0.0001378/0.004605, allocations: 77.53 kB / 0.815 GB, free: 13.09 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.712e-05/0.004643, allocations: 51.41 kB / 0.8151 GB, free: 13.03 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.381e-05/0.004716, allocations: 179.1 kB / 0.8152 GB, free: 12.84 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 1.273e-05/0.004729, allocations: 29.7 kB / 0.8153 GB, free: 12.8 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 4.404e-05/0.004773, allocations: 134.8 kB / 0.8154 GB, free: 12.67 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 1.678e-05/0.00479, allocations: 16.66 kB / 0.8154 GB, free: 12.65 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.27e-05/0.004823, allocations: 39.28 kB / 0.8154 GB, free: 12.61 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.00011/0.004933, allocations: 0.4893 MB / 0.8159 GB, free: 12.11 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.623e-05/0.004949, allocations: 7.984 kB / 0.8159 GB, free: 12.1 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.136e-05/0.00499, allocations: 58.3 kB / 0.816 GB, free: 12.02 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.092e-05/0.005051, allocations: 69.33 kB / 0.8161 GB, free: 11.93 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.005053, allocations: 256 / 0.8161 GB, free: 11.93 MB / 0.7292 GB Notification: Performance of matching and sorting (n=9) (initialization): time 8.972e-05/0.005143, allocations: 78.39 kB / 0.8161 GB, free: 11.85 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.344e-05/0.005156, allocations: 8.594 kB / 0.8161 GB, free: 11.84 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.264e-06/0.005164, allocations: 11.92 kB / 0.8161 GB, free: 11.83 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.465e-05/0.005178, allocations: 1.156 kB / 0.8162 GB, free: 11.83 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.732e-05/0.005246, allocations: 12 kB / 0.8162 GB, free: 11.82 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.879e-06/0.00525, allocations: 4 kB / 0.8162 GB, free: 11.82 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.845e-05/0.005279, allocations: 9.797 kB / 0.8162 GB, free: 11.81 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.705e-06/0.005287, allocations: 4 kB / 0.8162 GB, free: 11.8 MB / 0.7292 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 0.0003485/0.005635, allocations: 163.2 kB / 0.8163 GB, free: 11.64 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.668e-06/0.005645, allocations: 7.953 kB / 0.8163 GB, free: 11.63 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001004/0.005745, allocations: 75.58 kB / 0.8164 GB, free: 11.55 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/0.005748, allocations: 0 / 0.8164 GB, free: 11.55 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.322e-06/0.005749, allocations: 0 / 0.8164 GB, free: 11.55 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.005753, allocations: 0 / 0.8164 GB, free: 11.55 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001911/0.005944, allocations: 301.5 kB / 0.8167 GB, free: 11.23 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.774e-06/0.005946, allocations: 0 / 0.8167 GB, free: 11.23 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.33e-05/0.005969, allocations: 4 kB / 0.8167 GB, free: 11.22 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.876e-06/0.005972, allocations: 3.938 kB / 0.8167 GB, free: 11.22 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5e-06/0.005977, allocations: 0 / 0.8167 GB, free: 11.22 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.525e-06/0.005979, allocations: 7.984 kB / 0.8167 GB, free: 11.21 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.005981, allocations: 0 / 0.8167 GB, free: 11.21 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001032/0.006084, allocations: 211.8 kB / 0.8169 GB, free: 10.98 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 7.133e-06/0.006091, allocations: 7.938 kB / 0.8169 GB, free: 10.98 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.328e-05/0.006104, allocations: 4.469 kB / 0.8169 GB, free: 10.97 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.418e-05/0.006139, allocations: 8.484 kB / 0.8169 GB, free: 10.96 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.792e-05/0.006167, allocations: 192 / 0.8169 GB, free: 10.96 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.335e-06/0.006175, allocations: 8.562 kB / 0.8169 GB, free: 10.96 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 3.773e-05/0.006213, allocations: 135.7 kB / 0.8171 GB, free: 10.82 MB / 0.7292 GB Notification: Performance of sort global known variables: time 5e-08/0.006213, allocations: 0 / 0.8171 GB, free: 10.82 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0001642/0.006377, allocations: 9.406 kB / 0.8171 GB, free: 10.82 MB / 0.7292 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.0001008/0.006478, allocations: 107.2 kB / 0.8172 GB, free: 10.7 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 8.62e-05/0.006564, allocations: 40.77 kB / 0.8172 GB, free: 10.66 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 1.202e-06/0.006565, allocations: 0 / 0.8172 GB, free: 10.66 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 2.521e-05/0.00659, allocations: 17.66 kB / 0.8172 GB, free: 10.64 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001704/0.006761, allocations: 11.98 kB / 0.8173 GB, free: 10.63 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003489/0.00711, allocations: 158.6 kB / 0.8174 GB, free: 10.45 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.037e-05/0.00714, allocations: 56.08 kB / 0.8175 GB, free: 10.37 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 2.067e-05/0.007161, allocations: 4.797 kB / 0.8175 GB, free: 10.37 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.733e-05/0.007208, allocations: 74.2 kB / 0.8175 GB, free: 10.29 MB / 0.7292 GB Notification: Performance of SimCode: time 4.91e-07/0.007208, allocations: 0.9375 kB / 0.8175 GB, free: 10.29 MB / 0.7292 GB Notification: Performance of Templates: time 0.002457/0.009665, allocations: 0.9258 MB / 0.8184 GB, free: 9.414 MB / 0.7292 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/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: 4.967643981799483]