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.0008742/0.0008742, allocations: 81.95 kB / 19.87 MB, free: 4.621 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.0008949/0.0008949, allocations: 169.7 kB / 23.28 MB, free: 1.219 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.956/0.956, allocations: 177.2 MB / 203.7 MB, free: 5.5 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.408/2.408, allocations: 438.1 MB / 0.682 GB, free: 14.2 MB / 0.6511 GB " [Timeout remaining time 177] Using package Buildings with version 14.0.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 1.803e-06/1.803e-06, allocations: 0 / 0.8897 GB, free: 9.824 MB / 0.8542 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.628e-05/2.808e-05, allocations: 6.25 kB / 0.8897 GB, free: 9.816 MB / 0.8542 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.001467/0.001495, allocations: 0.6933 MB / 0.8904 GB, free: 9.125 MB / 0.8542 GB Notification: Performance of NFInst.instExpressions: time 0.001117/0.002612, allocations: 1.096 MB / 0.8915 GB, free: 8.016 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.575e-05/0.002658, allocations: 0 / 0.8915 GB, free: 8.016 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 2.565e-05/0.002683, allocations: 7.938 kB / 0.8915 GB, free: 8.008 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 6.573e-05/0.002749, allocations: 11.86 kB / 0.8915 GB, free: 7.996 MB / 0.8542 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002439/0.002993, allocations: 51.77 kB / 0.8915 GB, free: 7.945 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 7.293e-05/0.003066, allocations: 39.86 kB / 0.8916 GB, free: 7.906 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 7.909e-05/0.003145, allocations: 15.92 kB / 0.8916 GB, free: 7.891 MB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 7.875e-05/0.003224, allocations: 31.91 kB / 0.8916 GB, free: 7.859 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 3.947e-05/0.003263, allocations: 11.98 kB / 0.8916 GB, free: 7.848 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 1.451e-05/0.003278, allocations: 4 kB / 0.8916 GB, free: 7.844 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 6.273e-05/0.00334, allocations: 23.97 kB / 0.8917 GB, free: 7.82 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 2.21e-05/0.003363, allocations: 15.92 kB / 0.8917 GB, free: 7.805 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 2.154e-05/0.003384, allocations: 8 kB / 0.8917 GB, free: 7.797 MB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 0.0001056/0.00349, allocations: 51.81 kB / 0.8917 GB, free: 7.746 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 2.014e-06/0.003492, allocations: 0 / 0.8917 GB, free: 7.746 MB / 0.8542 GB Notification: Performance of FrontEnd: time 1.072e-06/0.003493, allocations: 4 kB / 0.8917 GB, free: 7.742 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 2.845e-06/0.003496, allocations: 0 / 0.8917 GB, free: 7.742 MB / 0.8542 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.0005874/0.004083, allocations: 388.5 kB / 0.8921 GB, free: 7.324 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 4.21e-05/0.004125, allocations: 12.61 kB / 0.8921 GB, free: 7.312 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.03e-05/0.004205, allocations: 12.89 kB / 0.8921 GB, free: 7.301 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.539e-05/0.004281, allocations: 116.5 kB / 0.8922 GB, free: 7.16 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.838e-06/0.004291, allocations: 4.375 kB / 0.8922 GB, free: 7.156 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.355e-06/0.004299, allocations: 4.375 kB / 0.8922 GB, free: 7.152 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001018/0.004401, allocations: 62.94 kB / 0.8923 GB, free: 7.082 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.161e-06/0.004407, allocations: 192 / 0.8923 GB, free: 7.082 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.981e-06/0.004413, allocations: 4.375 kB / 0.8923 GB, free: 7.078 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.178e-06/0.004417, allocations: 384 / 0.8923 GB, free: 7.078 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.373e-05/0.004441, allocations: 15.91 kB / 0.8923 GB, free: 7.062 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002787/0.004719, allocations: 260.4 kB / 0.8926 GB, free: 6.781 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 6.377e-05/0.004783, allocations: 43.05 kB / 0.8926 GB, free: 6.727 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.441e-05/0.004798, allocations: 11.69 kB / 0.8926 GB, free: 6.711 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 1.911e-05/0.004817, allocations: 4 kB / 0.8926 GB, free: 6.707 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.47e-05/0.004881, allocations: 65.17 kB / 0.8927 GB, free: 6.629 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=6): time 1.764e-06/0.004883, allocations: 7.984 kB / 0.8927 GB, free: 6.621 MB / 0.8542 GB Notification: Performance of matching and sorting (n=6): time 0.0001349/0.005018, allocations: 73.5 kB / 0.8928 GB, free: 6.543 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.98e-05/0.005048, allocations: 51.41 kB / 0.8928 GB, free: 6.48 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.852e-05/0.005116, allocations: 173.9 kB / 0.893 GB, free: 6.293 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 1.046e-05/0.005127, allocations: 25.7 kB / 0.893 GB, free: 6.262 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 4.381e-05/0.005171, allocations: 138.8 kB / 0.8931 GB, free: 6.121 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 1.588e-05/0.005187, allocations: 15.84 kB / 0.8932 GB, free: 6.105 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.837e-05/0.005225, allocations: 31.36 kB / 0.8932 GB, free: 6.066 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001033/0.005328, allocations: 0.4923 MB / 0.8937 GB, free: 5.562 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.471e-05/0.005343, allocations: 4 kB / 0.8937 GB, free: 5.559 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.385e-05/0.005377, allocations: 58.36 kB / 0.8937 GB, free: 5.48 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.486e-05/0.005432, allocations: 66.36 kB / 0.8938 GB, free: 5.395 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.005433, allocations: 0 / 0.8938 GB, free: 5.395 MB / 0.8542 GB Notification: Performance of matching and sorting (n=9) (initialization): time 8.316e-05/0.005517, allocations: 77.55 kB / 0.8939 GB, free: 5.312 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.224e-05/0.005529, allocations: 6.656 kB / 0.8939 GB, free: 5.309 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.087e-05/0.00554, allocations: 11.94 kB / 0.8939 GB, free: 5.297 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.01e-05/0.00555, allocations: 0 / 0.8939 GB, free: 5.297 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.06e-05/0.00562, allocations: 15.98 kB / 0.8939 GB, free: 5.281 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.068e-06/0.005624, allocations: 4 kB / 0.8939 GB, free: 5.277 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.525e-05/0.00565, allocations: 7.953 kB / 0.8939 GB, free: 5.27 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.811e-06/0.005656, allocations: 0 / 0.8939 GB, free: 5.27 MB / 0.8542 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 6.086e-05/0.005716, allocations: 163.5 kB / 0.8941 GB, free: 5.102 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.897e-06/0.005725, allocations: 11.92 kB / 0.8941 GB, free: 5.09 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.136e-05/0.005817, allocations: 70.06 kB / 0.8941 GB, free: 5.016 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.005818, allocations: 4 kB / 0.8941 GB, free: 5.012 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.442e-06/0.00582, allocations: 0 / 0.8941 GB, free: 5.012 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.995e-06/0.005823, allocations: 0 / 0.8941 GB, free: 5.012 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001759/0.005999, allocations: 302.4 kB / 0.8944 GB, free: 4.684 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.006, allocations: 0 / 0.8944 GB, free: 4.684 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.586e-05/0.006026, allocations: 11.98 kB / 0.8944 GB, free: 4.672 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.125e-06/0.006029, allocations: 3.938 kB / 0.8945 GB, free: 4.668 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.318e-06/0.006033, allocations: 0 / 0.8945 GB, free: 4.668 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.784e-06/0.006035, allocations: 4 kB / 0.8945 GB, free: 4.664 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.006036, allocations: 0 / 0.8945 GB, free: 4.664 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.49e-05/0.006131, allocations: 203.9 kB / 0.8946 GB, free: 4.445 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 1.195e-05/0.006143, allocations: 27.81 kB / 0.8947 GB, free: 4.418 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.365e-05/0.006157, allocations: 3.938 kB / 0.8947 GB, free: 4.414 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.284e-05/0.00619, allocations: 7.938 kB / 0.8947 GB, free: 4.406 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.625e-05/0.006216, allocations: 7.984 kB / 0.8947 GB, free: 4.398 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.366e-06/0.006219, allocations: 0 / 0.8947 GB, free: 4.398 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 3.444e-05/0.006254, allocations: 131.2 kB / 0.8948 GB, free: 4.27 MB / 0.8542 GB Notification: Performance of sort global known variables: time 4e-08/0.006254, allocations: 0 / 0.8948 GB, free: 4.27 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0001502/0.006404, allocations: 8 kB / 0.8948 GB, free: 4.262 MB / 0.8542 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.0001029/0.006507, allocations: 103.2 kB / 0.8949 GB, free: 4.152 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 7.084e-05/0.006578, allocations: 39.61 kB / 0.895 GB, free: 4.109 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.212e-06/0.006579, allocations: 0 / 0.895 GB, free: 4.109 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 2.595e-05/0.006605, allocations: 23.67 kB / 0.895 GB, free: 4.082 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001712/0.006776, allocations: 8 kB / 0.895 GB, free: 4.074 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003679/0.007144, allocations: 154 kB / 0.8951 GB, free: 3.895 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.382e-05/0.007178, allocations: 59.34 kB / 0.8952 GB, free: 3.816 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 2.486e-05/0.007202, allocations: 8.312 kB / 0.8952 GB, free: 3.809 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.051e-05/0.007253, allocations: 78.19 kB / 0.8953 GB, free: 3.73 MB / 0.8542 GB Notification: Performance of SimCode: time 6.61e-07/0.007254, allocations: 0 / 0.8953 GB, free: 3.73 MB / 0.8542 GB Notification: Performance of Templates: time 0.002323/0.009577, allocations: 0.9355 MB / 0.8962 GB, free: 2.809 MB / 0.8542 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.182354347780347]