Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.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.0008585/0.0008585, allocations: 79.73 kB / 20.98 MB, free: 3.555 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.00173/0.00173, allocations: 165 kB / 24.28 MB, free: 264 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.045/1.045, allocations: 177.1 MB / 204.6 MB, free: 5.625 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.928/1.928, allocations: 359 MB / 0.6055 GB, free: 11.03 MB / 0.573 GB " [Timeout remaining time 177] 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.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|firOrdHol.u|firOrdHol.y",fileNamePrefix="Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|firOrdHol.u|firOrdHol.y",fileNamePrefix="Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.814e-06/1.814e-06, allocations: 0 / 0.7871 GB, free: 12.82 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.51e-05/1.691e-05, allocations: 3.188 kB / 0.7871 GB, free: 12.82 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.001123/0.00114, allocations: 0.6876 MB / 0.7878 GB, free: 12.14 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.001055/0.002195, allocations: 1.133 MB / 0.7889 GB, free: 11 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.985e-05/0.002244, allocations: 0.6562 kB / 0.7889 GB, free: 11 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 2.681e-05/0.002271, allocations: 3.938 kB / 0.7889 GB, free: 11 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 6.735e-05/0.002339, allocations: 13.25 kB / 0.7889 GB, free: 10.98 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002666/0.002605, allocations: 47.77 kB / 0.7889 GB, free: 10.94 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 9.769e-05/0.002703, allocations: 67.78 kB / 0.789 GB, free: 10.87 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 9.63e-05/0.002799, allocations: 21.44 kB / 0.789 GB, free: 10.85 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 8.101e-05/0.00288, allocations: 31.97 kB / 0.789 GB, free: 10.82 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 4.981e-05/0.00293, allocations: 31.89 kB / 0.7891 GB, free: 10.79 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 1.569e-05/0.002946, allocations: 8 kB / 0.7891 GB, free: 10.78 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 5.833e-05/0.003004, allocations: 21.45 kB / 0.7891 GB, free: 10.76 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 2.237e-05/0.003026, allocations: 15.97 kB / 0.7891 GB, free: 10.75 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 3.182e-05/0.003058, allocations: 19.94 kB / 0.7891 GB, free: 10.73 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0001277/0.003186, allocations: 63.78 kB / 0.7892 GB, free: 10.66 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 1.773e-06/0.003188, allocations: 3.25 kB / 0.7892 GB, free: 10.66 MB / 0.7448 GB Notification: Performance of FrontEnd: time 8.02e-07/0.003188, allocations: 0 / 0.7892 GB, free: 10.66 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 3.316e-06/0.003192, allocations: 4 kB / 0.7892 GB, free: 10.66 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0004674/0.003659, allocations: 396.4 kB / 0.7896 GB, free: 10.23 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.406e-05/0.003703, allocations: 12.03 kB / 0.7896 GB, free: 10.22 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001096/0.003813, allocations: 16.88 kB / 0.7896 GB, free: 10.21 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.942e-05/0.003902, allocations: 121.5 kB / 0.7897 GB, free: 10.06 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.011e-05/0.003922, allocations: 8.375 kB / 0.7897 GB, free: 10.05 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.155e-05/0.003934, allocations: 8.375 kB / 0.7897 GB, free: 10.05 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001373/0.004071, allocations: 75.52 kB / 0.7898 GB, free: 9.965 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.612e-06/0.004078, allocations: 0.9062 kB / 0.7898 GB, free: 9.965 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.005e-05/0.004088, allocations: 4.359 kB / 0.7898 GB, free: 9.961 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.915e-06/0.004096, allocations: 5.875 kB / 0.7898 GB, free: 9.957 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.134e-05/0.004147, allocations: 23.88 kB / 0.7898 GB, free: 9.934 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003908/0.004538, allocations: 291.6 kB / 0.7901 GB, free: 9.613 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001132/0.004651, allocations: 63.66 kB / 0.7902 GB, free: 9.539 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.454e-05/0.004696, allocations: 24.66 kB / 0.7902 GB, free: 9.512 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 2.12e-05/0.004717, allocations: 0 / 0.7902 GB, free: 9.512 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001061/0.004823, allocations: 85.78 kB / 0.7903 GB, free: 9.414 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=10): time 1.242e-06/0.004824, allocations: 0 / 0.7903 GB, free: 9.414 MB / 0.7448 GB Notification: Performance of matching and sorting (n=10): time 0.0002447/0.005069, allocations: 122.1 kB / 0.7904 GB, free: 9.289 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.334e-05/0.005112, allocations: 56.75 kB / 0.7905 GB, free: 9.223 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.363e-05/0.005206, allocations: 165.9 kB / 0.7906 GB, free: 9.043 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.665e-05/0.005223, allocations: 29.7 kB / 0.7906 GB, free: 9.008 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 5.706e-05/0.00528, allocations: 139.1 kB / 0.7908 GB, free: 8.863 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 2.687e-05/0.005306, allocations: 29.31 kB / 0.7908 GB, free: 8.836 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.279e-05/0.005349, allocations: 35.36 kB / 0.7908 GB, free: 8.793 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001133/0.005463, allocations: 0.4884 MB / 0.7913 GB, free: 8.293 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.002e-05/0.005493, allocations: 15.98 kB / 0.7913 GB, free: 8.277 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.638e-05/0.005539, allocations: 54.72 kB / 0.7914 GB, free: 8.215 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.88e-05/0.005618, allocations: 73.62 kB / 0.7915 GB, free: 8.133 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.00562, allocations: 0 / 0.7915 GB, free: 8.133 MB / 0.7448 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001285/0.005749, allocations: 105.6 kB / 0.7916 GB, free: 8.023 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.478e-05/0.005763, allocations: 13.66 kB / 0.7916 GB, free: 8.012 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.00577, allocations: 0 / 0.7916 GB, free: 8.012 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.203e-05/0.005782, allocations: 1.688 kB / 0.7916 GB, free: 8.012 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.726e-05/0.005879, allocations: 31.92 kB / 0.7916 GB, free: 7.98 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.111e-06/0.005885, allocations: 0 / 0.7916 GB, free: 7.98 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.792e-05/0.005913, allocations: 4 kB / 0.7916 GB, free: 7.977 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.398e-06/0.005922, allocations: 4.5 kB / 0.7916 GB, free: 7.973 MB / 0.7448 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 12 (firOrdHol.firstTrigger,$PRE.firOrdHol.firstTrigger,firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.c,$PRE.firOrdHol.c,firOrdHol.pre_uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.uSample,$PRE.firOrdHol.uSample,firOrdHol.tSample,$PRE.firOrdHol.tSample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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 7.887e-05/0.006001, allocations: 165.1 kB / 0.7918 GB, free: 7.801 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.513e-05/0.006016, allocations: 25.41 kB / 0.7918 GB, free: 7.777 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001364/0.006153, allocations: 102 kB / 0.7919 GB, free: 7.676 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.394e-06/0.006155, allocations: 0 / 0.7919 GB, free: 7.676 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.006159, allocations: 0 / 0.7919 GB, free: 7.676 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.489e-06/0.006163, allocations: 4.516 kB / 0.7919 GB, free: 7.672 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002557/0.006419, allocations: 371.3 kB / 0.7922 GB, free: 7.27 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.006422, allocations: 3.984 kB / 0.7922 GB, free: 7.266 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.544e-05/0.006457, allocations: 8.234 kB / 0.7923 GB, free: 7.258 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.925e-06/0.00646, allocations: 4 kB / 0.7923 GB, free: 7.254 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.077e-06/0.006469, allocations: 4 kB / 0.7923 GB, free: 7.25 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.31e-07/0.00647, allocations: 0 / 0.7923 GB, free: 7.25 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.006471, allocations: 0.5312 kB / 0.7923 GB, free: 7.25 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001591/0.00663, allocations: 260.8 kB / 0.7925 GB, free: 6.977 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 7.504e-06/0.006637, allocations: 7.953 kB / 0.7925 GB, free: 6.969 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.521e-05/0.006652, allocations: 7.938 kB / 0.7925 GB, free: 6.961 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.601e-05/0.006698, allocations: 4.875 kB / 0.7925 GB, free: 6.957 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.079e-05/0.006739, allocations: 7.984 kB / 0.7925 GB, free: 6.949 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.546e-06/0.006748, allocations: 8.828 kB / 0.7925 GB, free: 6.941 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 3.923e-05/0.006787, allocations: 123.2 kB / 0.7927 GB, free: 6.82 MB / 0.7448 GB Notification: Performance of sort global known variables: time 7e-08/0.006787, allocations: 2.125 kB / 0.7927 GB, free: 6.82 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0001594/0.006946, allocations: 20 kB / 0.7927 GB, free: 6.801 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: 7 (firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.firstTrigger,firOrdHol.tSample,firOrdHol.uSample,firOrdHol.pre_uSample,firOrdHol.c) * Number of discrete states: 2 (firOrdHol.uSample,firOrdHol.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001207/0.007067, allocations: 107.2 kB / 0.7928 GB, free: 6.684 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0001304/0.007198, allocations: 72.44 kB / 0.7929 GB, free: 6.609 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.0072, allocations: 0 / 0.7929 GB, free: 6.609 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 4.311e-05/0.007243, allocations: 27.67 kB / 0.7929 GB, free: 6.578 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001934/0.007436, allocations: 23.7 kB / 0.7929 GB, free: 6.559 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005254/0.007962, allocations: 163.6 kB / 0.7931 GB, free: 6.371 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.772e-05/0.008009, allocations: 63.34 kB / 0.7931 GB, free: 6.289 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 3.062e-05/0.00804, allocations: 8.484 kB / 0.7931 GB, free: 6.281 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.147e-05/0.008071, allocations: 16.5 kB / 0.7931 GB, free: 6.262 MB / 0.7448 GB Notification: Performance of SimCode: time 9.31e-07/0.008072, allocations: 1.156 kB / 0.7931 GB, free: 6.262 MB / 0.7448 GB Notification: Performance of Templates: time 0.002907/0.01098, allocations: 1.091 MB / 0.7942 GB, free: 5.211 MB / 0.7448 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.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.5435662739910185]