Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.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.001107/0.001107, allocations: 71.75 kB / 20.97 MB, free: 3.578 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.00147/0.00147, allocations: 169 kB / 24.28 MB, free: 276 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.032/1.032, allocations: 177.1 MB / 204.6 MB, free: 5.621 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.876/1.876, allocations: 359 MB / 0.6055 GB, free: 11.05 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.ZeroOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|zerOrdHol.u|zerOrdHol.y",fileNamePrefix="Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|zerOrdHol.u|zerOrdHol.y",fileNamePrefix="Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 4.158e-06/4.158e-06, allocations: 0 / 0.7871 GB, free: 12.84 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.895e-05/4.311e-05, allocations: 5.406 kB / 0.7871 GB, free: 12.83 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.001913/0.001957, allocations: 0.6861 MB / 0.7877 GB, free: 12.16 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.001391/0.003347, allocations: 1.118 MB / 0.7888 GB, free: 11.04 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.765e-05/0.003425, allocations: 0 / 0.7888 GB, free: 11.04 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 3.879e-05/0.003464, allocations: 3.938 kB / 0.7888 GB, free: 11.03 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 9.375e-05/0.003557, allocations: 16.91 kB / 0.7889 GB, free: 11.02 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.000425/0.003982, allocations: 47.72 kB / 0.7889 GB, free: 10.97 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0001263/0.004109, allocations: 51.83 kB / 0.789 GB, free: 10.92 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001458/0.004254, allocations: 9.562 kB / 0.789 GB, free: 10.91 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001101/0.004365, allocations: 27.97 kB / 0.789 GB, free: 10.88 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 5.39e-05/0.004418, allocations: 23.91 kB / 0.789 GB, free: 10.86 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 1.839e-05/0.004437, allocations: 4 kB / 0.789 GB, free: 10.86 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 7.176e-05/0.004509, allocations: 21.55 kB / 0.789 GB, free: 10.84 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 2.579e-05/0.004534, allocations: 4 kB / 0.789 GB, free: 10.83 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 3.747e-05/0.004572, allocations: 23.91 kB / 0.7891 GB, free: 10.81 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.000149/0.004721, allocations: 51.81 kB / 0.7891 GB, free: 10.76 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 2.605e-06/0.004723, allocations: 1.062 kB / 0.7891 GB, free: 10.76 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.393e-06/0.004725, allocations: 0 / 0.7891 GB, free: 10.76 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 5.59e-06/0.00473, allocations: 0 / 0.7891 GB, free: 10.76 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005202/0.005251, allocations: 394.2 kB / 0.7895 GB, free: 10.34 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.603e-05/0.005297, allocations: 8.031 kB / 0.7895 GB, free: 10.33 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001316/0.005428, allocations: 20.81 kB / 0.7895 GB, free: 10.31 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.652e-05/0.005525, allocations: 110.8 kB / 0.7896 GB, free: 10.18 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.522e-05/0.00554, allocations: 8.375 kB / 0.7896 GB, free: 10.17 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.255e-05/0.005553, allocations: 4.375 kB / 0.7896 GB, free: 10.16 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001497/0.005702, allocations: 62.94 kB / 0.7897 GB, free: 10.09 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.223e-06/0.00571, allocations: 192 / 0.7897 GB, free: 10.09 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.103e-05/0.005721, allocations: 2.406 kB / 0.7897 GB, free: 10.09 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.288e-06/0.00573, allocations: 384 / 0.7897 GB, free: 10.09 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.456e-05/0.005774, allocations: 19.86 kB / 0.7897 GB, free: 10.07 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004201/0.006195, allocations: 275.7 kB / 0.79 GB, free: 9.77 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001007/0.006295, allocations: 47.77 kB / 0.79 GB, free: 9.711 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.377e-05/0.006329, allocations: 11.69 kB / 0.79 GB, free: 9.695 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 2.027e-05/0.006349, allocations: 0.5312 kB / 0.79 GB, free: 9.695 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.893e-05/0.006448, allocations: 74.7 kB / 0.7901 GB, free: 9.609 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=7): time 1.954e-06/0.00645, allocations: 0 / 0.7901 GB, free: 9.609 MB / 0.7448 GB Notification: Performance of matching and sorting (n=7): time 0.0002143/0.006664, allocations: 77.66 kB / 0.7902 GB, free: 9.527 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.541e-05/0.00671, allocations: 51.41 kB / 0.7902 GB, free: 9.465 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.744e-05/0.006797, allocations: 165.9 kB / 0.7904 GB, free: 9.285 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.373e-05/0.006811, allocations: 30.36 kB / 0.7904 GB, free: 9.25 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 4.882e-05/0.00686, allocations: 135.9 kB / 0.7905 GB, free: 9.113 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 2.78e-05/0.006888, allocations: 23.91 kB / 0.7906 GB, free: 9.09 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.651e-05/0.006924, allocations: 27.36 kB / 0.7906 GB, free: 9.055 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001173/0.007041, allocations: 0.4895 MB / 0.7911 GB, free: 8.555 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.728e-05/0.007069, allocations: 11.92 kB / 0.7911 GB, free: 8.543 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.369e-05/0.007122, allocations: 58.42 kB / 0.7911 GB, free: 8.465 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001831/0.007306, allocations: 67.75 kB / 0.7912 GB, free: 8.379 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.058e-06/0.00731, allocations: 5.75 kB / 0.7912 GB, free: 8.375 MB / 0.7448 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001221/0.007432, allocations: 89.44 kB / 0.7913 GB, free: 8.281 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.597e-05/0.007448, allocations: 9.25 kB / 0.7913 GB, free: 8.273 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.007454, allocations: 4 kB / 0.7913 GB, free: 8.27 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.829e-05/0.007472, allocations: 0 / 0.7913 GB, free: 8.27 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.796e-05/0.00757, allocations: 23.02 kB / 0.7913 GB, free: 8.25 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.402e-06/0.007577, allocations: 0 / 0.7913 GB, free: 8.25 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.859e-05/0.007605, allocations: 4 kB / 0.7913 GB, free: 8.246 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.076e-05/0.007616, allocations: 4 kB / 0.7913 GB, free: 8.242 MB / 0.7448 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 (zerOrdHol.firstTrigger,$PRE.zerOrdHol.firstTrigger,zerOrdHol.sampleTrigger,$whenCondition1,$PRE.zerOrdHol.ySample,zerOrdHol.ySample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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 8.23e-05/0.007698, allocations: 168.5 kB / 0.7915 GB, free: 8.066 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.243e-05/0.007711, allocations: 11.94 kB / 0.7915 GB, free: 8.055 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001334/0.007844, allocations: 78.09 kB / 0.7916 GB, free: 7.977 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.474e-06/0.007847, allocations: 0 / 0.7916 GB, free: 7.977 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.00785, allocations: 4.5 kB / 0.7916 GB, free: 7.973 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.117e-06/0.007854, allocations: 1.938 kB / 0.7916 GB, free: 7.973 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002424/0.008097, allocations: 329.3 kB / 0.7919 GB, free: 7.609 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.008098, allocations: 0 / 0.7919 GB, free: 7.609 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.469e-05/0.008133, allocations: 8.234 kB / 0.7919 GB, free: 7.602 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.945e-06/0.008136, allocations: 0 / 0.7919 GB, free: 7.602 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.07e-05/0.008146, allocations: 10.59 kB / 0.7919 GB, free: 7.594 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.008148, allocations: 0 / 0.7919 GB, free: 7.594 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.008149, allocations: 0 / 0.7919 GB, free: 7.594 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001317/0.00828, allocations: 223.8 kB / 0.7921 GB, free: 7.355 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 6.652e-06/0.008287, allocations: 4 kB / 0.7921 GB, free: 7.352 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.894e-05/0.008306, allocations: 0 / 0.7921 GB, free: 7.352 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.395e-05/0.00835, allocations: 8 kB / 0.7921 GB, free: 7.344 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.208e-05/0.008392, allocations: 8.828 kB / 0.7922 GB, free: 7.336 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.3e-05/0.008405, allocations: 0 / 0.7922 GB, free: 7.336 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 4.004e-05/0.008445, allocations: 132 kB / 0.7923 GB, free: 7.207 MB / 0.7448 GB Notification: Performance of sort global known variables: time 7e-08/0.008445, allocations: 0 / 0.7923 GB, free: 7.207 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0001693/0.008615, allocations: 12 kB / 0.7923 GB, free: 7.195 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: 4 (zerOrdHol.sampleTrigger,$whenCondition1,zerOrdHol.ySample,zerOrdHol.firstTrigger) * Number of discrete states: 1 (zerOrdHol.ySample) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * 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.0001456/0.00876, allocations: 100.5 kB / 0.7924 GB, free: 7.086 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0001142/0.008874, allocations: 52.61 kB / 0.7924 GB, free: 7.031 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.008876, allocations: 3.938 kB / 0.7924 GB, free: 7.027 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 3.678e-05/0.008913, allocations: 28.62 kB / 0.7925 GB, free: 6.996 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002125/0.009125, allocations: 19.19 kB / 0.7925 GB, free: 6.98 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005097/0.009635, allocations: 156.2 kB / 0.7926 GB, free: 6.801 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.919e-05/0.009674, allocations: 55.36 kB / 0.7927 GB, free: 6.727 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 2.71e-05/0.009701, allocations: 7.984 kB / 0.7927 GB, free: 6.719 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.75e-05/0.009729, allocations: 12.5 kB / 0.7927 GB, free: 6.707 MB / 0.7448 GB Notification: Performance of SimCode: time 7.71e-07/0.00973, allocations: 0 / 0.7927 GB, free: 6.707 MB / 0.7448 GB Notification: Performance of Templates: time 0.002643/0.01237, allocations: 0.8858 MB / 0.7936 GB, free: 5.855 MB / 0.7448 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold.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.3326160970609635]