Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.0008103/0.0008103, allocations: 87.58 kB / 20.45 MB, free: 4.117 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.000989/0.000989, allocations: 161 kB / 23.82 MB, free: 0.75 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.9925/0.9925, allocations: 177.1 MB / 204.2 MB, free: 5.641 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.868/1.868, allocations: 359 MB / 0.6052 GB, free: 11 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.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_11_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_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.372e-06/1.372e-06, allocations: 0 / 0.7871 GB, free: 12.49 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.488e-05/1.625e-05, allocations: 5.672 kB / 0.7871 GB, free: 12.49 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.001104/0.00112, allocations: 0.6755 MB / 0.7877 GB, free: 11.83 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.0009282/0.002048, allocations: 1.106 MB / 0.7888 GB, free: 10.71 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.961e-05/0.002078, allocations: 4.844 kB / 0.7888 GB, free: 10.71 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 2.401e-05/0.002102, allocations: 3.938 kB / 0.7888 GB, free: 10.7 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 4.013e-05/0.002142, allocations: 8.672 kB / 0.7888 GB, free: 10.7 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001716/0.002314, allocations: 47.72 kB / 0.7889 GB, free: 10.65 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 5.519e-05/0.002369, allocations: 44.59 kB / 0.7889 GB, free: 10.61 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 6.051e-05/0.002429, allocations: 7.984 kB / 0.7889 GB, free: 10.6 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 4.687e-05/0.002476, allocations: 24.53 kB / 0.789 GB, free: 10.57 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 3.011e-05/0.002506, allocations: 24.53 kB / 0.789 GB, free: 10.55 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 1.101e-05/0.002517, allocations: 4 kB / 0.789 GB, free: 10.55 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 4.339e-05/0.002561, allocations: 21.39 kB / 0.789 GB, free: 10.53 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 1.246e-05/0.002573, allocations: 7.938 kB / 0.789 GB, free: 10.52 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 1.983e-05/0.002593, allocations: 15.97 kB / 0.789 GB, free: 10.5 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 8.324e-05/0.002676, allocations: 47.81 kB / 0.7891 GB, free: 10.46 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 2.184e-06/0.002678, allocations: 5 kB / 0.7891 GB, free: 10.45 MB / 0.7448 GB Notification: Performance of FrontEnd: time 4.31e-07/0.002679, allocations: 0 / 0.7891 GB, free: 10.45 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 3.106e-06/0.002682, allocations: 0 / 0.7891 GB, free: 10.45 MB / 0.7448 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0002716/0.002954, allocations: 377.8 kB / 0.7894 GB, free: 10.05 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 2.972e-05/0.002983, allocations: 12.03 kB / 0.7895 GB, free: 10.04 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.044e-05/0.003054, allocations: 8.891 kB / 0.7895 GB, free: 10.03 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.574e-05/0.003119, allocations: 118 kB / 0.7896 GB, free: 9.887 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.981e-06/0.003125, allocations: 384 / 0.7896 GB, free: 9.887 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.087e-06/0.003134, allocations: 4.375 kB / 0.7896 GB, free: 9.883 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.961e-05/0.003224, allocations: 68.06 kB / 0.7896 GB, free: 9.809 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.991e-06/0.00323, allocations: 4.188 kB / 0.7896 GB, free: 9.805 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.352e-06/0.003236, allocations: 384 / 0.7896 GB, free: 9.805 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.498e-06/0.003241, allocations: 1.281 kB / 0.7896 GB, free: 9.805 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.948e-05/0.00327, allocations: 7.938 kB / 0.7897 GB, free: 9.797 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002488/0.003519, allocations: 276.8 kB / 0.7899 GB, free: 9.492 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 4.321e-05/0.003562, allocations: 42.98 kB / 0.79 GB, free: 9.438 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.666e-05/0.003579, allocations: 8.188 kB / 0.79 GB, free: 9.426 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 1.354e-05/0.003593, allocations: 4 kB / 0.79 GB, free: 9.422 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.148e-05/0.003644, allocations: 66.67 kB / 0.79 GB, free: 9.344 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=5): time 7.82e-07/0.003645, allocations: 0 / 0.79 GB, free: 9.344 MB / 0.7448 GB Notification: Performance of matching and sorting (n=5): time 0.000107/0.003752, allocations: 61.62 kB / 0.7901 GB, free: 9.277 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.415e-05/0.003776, allocations: 55.41 kB / 0.7901 GB, free: 9.211 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.25e-05/0.003838, allocations: 167.2 kB / 0.7903 GB, free: 9.031 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.125e-05/0.00385, allocations: 25.7 kB / 0.7903 GB, free: 9 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 3.973e-05/0.003889, allocations: 134.8 kB / 0.7905 GB, free: 8.863 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 1.415e-05/0.003904, allocations: 22.89 kB / 0.7905 GB, free: 8.844 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.901e-05/0.003933, allocations: 27.36 kB / 0.7905 GB, free: 8.809 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001019/0.004035, allocations: 496.1 kB / 0.791 GB, free: 8.312 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.116e-05/0.004056, allocations: 7.984 kB / 0.791 GB, free: 8.305 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.221e-05/0.004088, allocations: 43.06 kB / 0.791 GB, free: 8.246 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.895e-05/0.004137, allocations: 55.39 kB / 0.7911 GB, free: 8.176 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.042e-06/0.004138, allocations: 0 / 0.7911 GB, free: 8.176 MB / 0.7448 GB Notification: Performance of matching and sorting (n=7) (initialization): time 7.266e-05/0.004211, allocations: 67.28 kB / 0.7911 GB, free: 8.105 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 9.748e-06/0.00422, allocations: 11.94 kB / 0.7912 GB, free: 8.094 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.385e-06/0.004223, allocations: 5.688 kB / 0.7912 GB, free: 8.09 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.735e-06/0.00423, allocations: 0 / 0.7912 GB, free: 8.09 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.81e-05/0.004289, allocations: 15.98 kB / 0.7912 GB, free: 8.074 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.747e-06/0.004292, allocations: 4.141 kB / 0.7912 GB, free: 8.07 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.302e-05/0.004315, allocations: 9.125 kB / 0.7912 GB, free: 8.062 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.053e-06/0.004322, allocations: 8 kB / 0.7912 GB, free: 8.055 MB / 0.7448 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (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 (7): * Single equations (assignments): 7 * 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.054e-05/0.004373, allocations: 152.6 kB / 0.7913 GB, free: 7.895 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.778e-06/0.004383, allocations: 13.58 kB / 0.7914 GB, free: 7.883 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.236e-05/0.004465, allocations: 65.73 kB / 0.7914 GB, free: 7.816 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.263e-06/0.004466, allocations: 0 / 0.7914 GB, free: 7.816 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.715e-06/0.004469, allocations: 320 / 0.7914 GB, free: 7.816 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.004472, allocations: 4 kB / 0.7914 GB, free: 7.812 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00017/0.004642, allocations: 310.3 kB / 0.7917 GB, free: 7.469 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.72e-07/0.004642, allocations: 0 / 0.7917 GB, free: 7.469 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.133e-05/0.004664, allocations: 8.469 kB / 0.7917 GB, free: 7.461 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.004666, allocations: 4.656 kB / 0.7917 GB, free: 7.457 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.699e-06/0.00467, allocations: 3.938 kB / 0.7917 GB, free: 7.453 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.51e-07/0.004671, allocations: 0.5312 kB / 0.7917 GB, free: 7.453 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.91e-07/0.004671, allocations: 1.312 kB / 0.7917 GB, free: 7.453 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000369/0.005041, allocations: 211.8 kB / 0.7919 GB, free: 7.227 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 6.041e-06/0.005047, allocations: 4 kB / 0.7919 GB, free: 7.223 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.129e-05/0.005058, allocations: 0 / 0.7919 GB, free: 7.223 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.065e-05/0.005098, allocations: 4.531 kB / 0.7919 GB, free: 7.219 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.259e-05/0.005121, allocations: 13.34 kB / 0.792 GB, free: 7.207 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.627e-06/0.005125, allocations: 0 / 0.792 GB, free: 7.207 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 3.053e-05/0.005155, allocations: 127.2 kB / 0.7921 GB, free: 7.082 MB / 0.7448 GB Notification: Performance of sort global known variables: time 5e-08/0.005155, allocations: 0 / 0.7921 GB, free: 7.082 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0001472/0.005303, allocations: 17.14 kB / 0.7921 GB, free: 7.066 MB / 0.7448 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (unitDelay1.sampleTrigger,$whenCondition1,unitDelay1.y) * Number of discrete states: 1 (unitDelay1.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 7.596e-05/0.005378, allocations: 108.2 kB / 0.7922 GB, free: 6.953 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 6.578e-05/0.005444, allocations: 31.67 kB / 0.7922 GB, free: 6.918 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 8.82e-07/0.005445, allocations: 0.8125 kB / 0.7922 GB, free: 6.918 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 2.47e-05/0.00547, allocations: 19.62 kB / 0.7923 GB, free: 6.895 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000152/0.005622, allocations: 20.8 kB / 0.7923 GB, free: 6.875 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003278/0.00595, allocations: 139.5 kB / 0.7924 GB, free: 6.711 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.65e-05/0.005976, allocations: 55.36 kB / 0.7925 GB, free: 6.637 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 1.629e-05/0.005992, allocations: 4.859 kB / 0.7925 GB, free: 6.633 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.969e-05/0.006012, allocations: 14.59 kB / 0.7925 GB, free: 6.621 MB / 0.7448 GB Notification: Performance of SimCode: time 5.31e-07/0.006013, allocations: 0 / 0.7925 GB, free: 6.621 MB / 0.7448 GB Notification: Performance of Templates: time 0.001864/0.007877, allocations: 0.8094 MB / 0.7933 GB, free: 5.855 MB / 0.7448 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.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: 5.172262832056731]