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.0009848/0.0009848, allocations: 93.06 kB / 19.65 MB, free: 280 kB / 13.93 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.0009365/0.0009365, allocations: 169.3 kB / 23.02 MB, free: 1.547 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 1.047/1.047, allocations: 177.1 MB / 203.4 MB, free: 5.641 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.177/2.177, allocations: 429.5 MB / 0.6732 GB, free: 4.043 MB / 0.6355 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 3.016e-06/3.016e-06, allocations: 0 / 0.8781 GB, free: 6.359 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.208e-05/3.51e-05, allocations: 2.312 kB / 0.8781 GB, free: 6.355 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.002766/0.002802, allocations: 0.6975 MB / 0.8788 GB, free: 5.68 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001705/0.004506, allocations: 1.103 MB / 0.8799 GB, free: 4.566 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.412e-05/0.00457, allocations: 3.938 kB / 0.8799 GB, free: 4.562 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 4.908e-05/0.00462, allocations: 8.859 kB / 0.8799 GB, free: 4.555 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 0.0001122/0.004732, allocations: 11.92 kB / 0.8799 GB, free: 4.543 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004187/0.00515, allocations: 44.81 kB / 0.88 GB, free: 4.5 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0001272/0.005278, allocations: 51.84 kB / 0.88 GB, free: 4.449 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001243/0.005402, allocations: 8.953 kB / 0.88 GB, free: 4.441 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001081/0.00551, allocations: 27.92 kB / 0.8801 GB, free: 4.414 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 5.961e-05/0.00557, allocations: 15.97 kB / 0.8801 GB, free: 4.398 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 2.506e-05/0.005595, allocations: 4.75 kB / 0.8801 GB, free: 4.395 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 9.682e-05/0.005692, allocations: 19.98 kB / 0.8801 GB, free: 4.375 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 3.146e-05/0.005723, allocations: 12.45 kB / 0.8801 GB, free: 4.363 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 4.563e-05/0.005769, allocations: 19.42 kB / 0.8801 GB, free: 4.348 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0001952/0.005964, allocations: 47.81 kB / 0.8802 GB, free: 4.301 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.005968, allocations: 0 / 0.8802 GB, free: 4.301 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.703e-06/0.005969, allocations: 0 / 0.8802 GB, free: 4.301 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 9.718e-06/0.005979, allocations: 4 kB / 0.8802 GB, free: 4.297 MB / 0.8386 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.0006808/0.00666, allocations: 388.5 kB / 0.8805 GB, free: 3.879 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.882e-05/0.006719, allocations: 12.03 kB / 0.8806 GB, free: 3.867 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001565/0.006875, allocations: 4.938 kB / 0.8806 GB, free: 3.863 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001264/0.007002, allocations: 124.5 kB / 0.8807 GB, free: 3.715 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.686e-05/0.007019, allocations: 0.9688 kB / 0.8807 GB, free: 3.715 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.869e-05/0.007037, allocations: 4.375 kB / 0.8807 GB, free: 3.711 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001901/0.007227, allocations: 63.53 kB / 0.8807 GB, free: 3.641 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.287e-05/0.00724, allocations: 1.094 kB / 0.8807 GB, free: 3.641 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.268e-05/0.007253, allocations: 384 / 0.8807 GB, free: 3.641 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.289e-05/0.007266, allocations: 4.375 kB / 0.8807 GB, free: 3.637 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.472e-05/0.007321, allocations: 12.67 kB / 0.8808 GB, free: 3.625 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005702/0.007891, allocations: 281.2 kB / 0.881 GB, free: 3.316 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001335/0.008024, allocations: 43.05 kB / 0.8811 GB, free: 3.262 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.802e-05/0.008062, allocations: 15.69 kB / 0.8811 GB, free: 3.242 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.748e-05/0.00809, allocations: 7.984 kB / 0.8811 GB, free: 3.234 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001182/0.008208, allocations: 69.02 kB / 0.8812 GB, free: 3.152 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=6): time 1.873e-06/0.00821, allocations: 0 / 0.8812 GB, free: 3.152 MB / 0.8386 GB Notification: Performance of matching and sorting (n=6): time 0.0002555/0.008465, allocations: 77.61 kB / 0.8812 GB, free: 3.07 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.595e-05/0.008511, allocations: 51.41 kB / 0.8813 GB, free: 3.008 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001268/0.008638, allocations: 169.9 kB / 0.8814 GB, free: 2.824 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.037e-05/0.008658, allocations: 29.7 kB / 0.8815 GB, free: 2.789 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.368e-05/0.008732, allocations: 134.8 kB / 0.8816 GB, free: 2.652 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.509e-05/0.008757, allocations: 15.84 kB / 0.8816 GB, free: 2.637 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.807e-05/0.008815, allocations: 31.36 kB / 0.8816 GB, free: 2.598 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001585/0.008974, allocations: 0.4884 MB / 0.8821 GB, free: 2.098 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.001e-05/0.009014, allocations: 11.98 kB / 0.8821 GB, free: 2.086 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.563e-05/0.009079, allocations: 54.31 kB / 0.8822 GB, free: 2.012 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000107/0.009186, allocations: 74.36 kB / 0.8823 GB, free: 1.918 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.00919, allocations: 0 / 0.8823 GB, free: 1.918 MB / 0.8386 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001694/0.009359, allocations: 81.56 kB / 0.8823 GB, free: 1.832 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.33e-05/0.009382, allocations: 7.938 kB / 0.8823 GB, free: 1.824 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.114e-06/0.009389, allocations: 0 / 0.8823 GB, free: 1.824 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.567e-05/0.009415, allocations: 7.984 kB / 0.8823 GB, free: 1.816 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001418/0.009557, allocations: 12 kB / 0.8824 GB, free: 1.805 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.957e-06/0.009566, allocations: 0 / 0.8824 GB, free: 1.805 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.559e-05/0.009621, allocations: 15.94 kB / 0.8824 GB, free: 1.789 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.406e-05/0.009636, allocations: 4.25 kB / 0.8824 GB, free: 1.785 MB / 0.8386 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.0001089/0.009744, allocations: 164.5 kB / 0.8825 GB, free: 1.613 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.034e-05/0.009765, allocations: 12.09 kB / 0.8825 GB, free: 1.602 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001865/0.009951, allocations: 74.11 kB / 0.8826 GB, free: 1.52 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.116e-06/0.009954, allocations: 0 / 0.8826 GB, free: 1.52 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.009959, allocations: 0 / 0.8826 GB, free: 1.52 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.009963, allocations: 0 / 0.8826 GB, free: 1.52 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003372/0.0103, allocations: 321.3 kB / 0.8829 GB, free: 1.164 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.0103, allocations: 0 / 0.8829 GB, free: 1.164 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.57e-05/0.01036, allocations: 11.98 kB / 0.8829 GB, free: 1.152 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.078e-06/0.01036, allocations: 0 / 0.8829 GB, free: 1.152 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.102e-05/0.01037, allocations: 4 kB / 0.8829 GB, free: 1.148 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.01038, allocations: 0 / 0.8829 GB, free: 1.148 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.01038, allocations: 4.312 kB / 0.8829 GB, free: 1.145 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001932/0.01057, allocations: 219.8 kB / 0.8832 GB, free: 0.9102 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 1.418e-05/0.01059, allocations: 15.83 kB / 0.8832 GB, free: 0.8945 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.604e-05/0.01061, allocations: 3.984 kB / 0.8832 GB, free: 0.8906 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.879e-05/0.01068, allocations: 4 kB / 0.8832 GB, free: 0.8867 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.076e-05/0.01073, allocations: 7.984 kB / 0.8832 GB, free: 0.8789 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.055e-06/0.01074, allocations: 0 / 0.8832 GB, free: 0.8789 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 5.592e-05/0.01079, allocations: 131.2 kB / 0.8833 GB, free: 0.75 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1e-07/0.01079, allocations: 0 / 0.8833 GB, free: 0.75 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003155/0.01111, allocations: 12 kB / 0.8833 GB, free: 0.7383 MB / 0.8386 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.0001819/0.01129, allocations: 111.3 kB / 0.8834 GB, free: 0.6211 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001672/0.01146, allocations: 39.61 kB / 0.8835 GB, free: 0.5781 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.01146, allocations: 0 / 0.8835 GB, free: 0.5781 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 4.986e-05/0.01151, allocations: 23.67 kB / 0.8835 GB, free: 0.5508 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000332/0.01184, allocations: 12.94 kB / 0.8835 GB, free: 0.5391 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006945/0.01254, allocations: 154.4 kB / 0.8836 GB, free: 368 kB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.136e-05/0.01259, allocations: 63.34 kB / 0.8837 GB, free: 284 kB / 0.8386 GB Notification: Performance of simCode: alias equations: time 3.409e-05/0.01262, allocations: 4 kB / 0.8837 GB, free: 280 kB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.683e-05/0.01266, allocations: 12.5 kB / 0.8837 GB, free: 268 kB / 0.8386 GB Notification: Performance of SimCode: time 7.81e-07/0.01266, allocations: 0 / 0.8837 GB, free: 268 kB / 0.8386 GB Notification: Performance of Templates: time 0.003809/0.01647, allocations: 0.8516 MB / 0.8846 GB, free: 15.43 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.735676744952798]