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.0009436/0.0009436, 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.0009145/0.0009145, allocations: 165 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.9353/0.9353, allocations: 177.1 MB / 204.2 MB, free: 5.652 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.803/1.803, allocations: 359 MB / 0.6052 GB, free: 11.04 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.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 2.184e-06/2.184e-06, allocations: 0 / 0.7871 GB, free: 12.52 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.744e-05/1.963e-05, allocations: 2.312 kB / 0.7871 GB, free: 12.52 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.003545/0.003564, allocations: 0.684 MB / 0.7877 GB, free: 11.86 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.001343/0.004907, allocations: 1.125 MB / 0.7888 GB, free: 10.72 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.927e-05/0.004956, allocations: 1.406 kB / 0.7888 GB, free: 10.72 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 3.312e-05/0.004989, allocations: 3.938 kB / 0.7888 GB, free: 10.71 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 7.047e-05/0.00506, allocations: 11.88 kB / 0.7889 GB, free: 10.7 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003215/0.005381, allocations: 52.55 kB / 0.7889 GB, free: 10.65 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0001071/0.005488, allocations: 55.83 kB / 0.789 GB, free: 10.6 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 9.86e-05/0.005587, allocations: 4.562 kB / 0.789 GB, free: 10.59 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 9.026e-05/0.005677, allocations: 31.91 kB / 0.789 GB, free: 10.56 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 5.075e-05/0.005728, allocations: 17.22 kB / 0.789 GB, free: 10.55 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 2.056e-05/0.005748, allocations: 4 kB / 0.789 GB, free: 10.54 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 7.084e-05/0.005819, allocations: 19.98 kB / 0.789 GB, free: 10.52 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 2.741e-05/0.005847, allocations: 13.61 kB / 0.789 GB, free: 10.51 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 3.276e-05/0.005879, allocations: 15.92 kB / 0.7891 GB, free: 10.5 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.000157/0.006036, allocations: 59.8 kB / 0.7891 GB, free: 10.44 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 2.053e-06/0.006038, allocations: 0 / 0.7891 GB, free: 10.44 MB / 0.7448 GB Notification: Performance of FrontEnd: time 8.62e-07/0.006039, allocations: 3.938 kB / 0.7891 GB, free: 10.43 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 3.957e-06/0.006043, allocations: 1.219 kB / 0.7891 GB, free: 10.43 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.0005658/0.006609, allocations: 385.2 kB / 0.7895 GB, free: 10.02 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.748e-05/0.006656, allocations: 12.03 kB / 0.7895 GB, free: 10.01 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001163/0.006773, allocations: 17.8 kB / 0.7895 GB, free: 9.992 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.603e-05/0.006869, allocations: 112.6 kB / 0.7896 GB, free: 9.855 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.271e-05/0.006882, allocations: 1.031 kB / 0.7896 GB, free: 9.855 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.125e-05/0.006893, allocations: 4.375 kB / 0.7896 GB, free: 9.852 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001407/0.007033, allocations: 68.52 kB / 0.7897 GB, free: 9.777 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.728e-06/0.007043, allocations: 4.188 kB / 0.7897 GB, free: 9.773 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.17e-05/0.007055, allocations: 8.359 kB / 0.7897 GB, free: 9.766 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.285e-06/0.007063, allocations: 384 / 0.7897 GB, free: 9.766 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.644e-05/0.0071, allocations: 16.59 kB / 0.7897 GB, free: 9.75 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003463/0.007446, allocations: 275.1 kB / 0.79 GB, free: 9.449 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 8.373e-05/0.00753, allocations: 43.05 kB / 0.79 GB, free: 9.395 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.717e-05/0.007557, allocations: 19.8 kB / 0.79 GB, free: 9.371 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 1.8e-05/0.007575, allocations: 4 kB / 0.7901 GB, free: 9.367 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.778e-05/0.007653, allocations: 68.92 kB / 0.7901 GB, free: 9.285 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=7): time 9.21e-07/0.007653, allocations: 0 / 0.7901 GB, free: 9.285 MB / 0.7448 GB Notification: Performance of matching and sorting (n=7): time 0.0001782/0.007832, allocations: 73.69 kB / 0.7902 GB, free: 9.207 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.448e-05/0.007866, allocations: 51.41 kB / 0.7902 GB, free: 9.145 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.265e-05/0.007939, allocations: 166.6 kB / 0.7904 GB, free: 8.965 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.146e-05/0.00795, allocations: 25.7 kB / 0.7904 GB, free: 8.934 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 4.473e-05/0.007995, allocations: 132.5 kB / 0.7905 GB, free: 8.801 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 2.069e-05/0.008016, allocations: 27.89 kB / 0.7906 GB, free: 8.773 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.455e-05/0.00805, allocations: 31.38 kB / 0.7906 GB, free: 8.734 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001139/0.008164, allocations: 496.1 kB / 0.7911 GB, free: 8.238 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.243e-05/0.008187, allocations: 21.22 kB / 0.7911 GB, free: 8.219 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.132e-05/0.008228, allocations: 50.42 kB / 0.7911 GB, free: 8.148 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.884e-05/0.008297, allocations: 76.3 kB / 0.7912 GB, free: 8.055 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.008299, allocations: 0 / 0.7912 GB, free: 8.055 MB / 0.7448 GB Notification: Performance of matching and sorting (n=10) (initialization): time 9.531e-05/0.008394, allocations: 86.8 kB / 0.7913 GB, free: 7.965 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.297e-05/0.008407, allocations: 11.94 kB / 0.7913 GB, free: 7.953 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.521e-06/0.008413, allocations: 3.984 kB / 0.7913 GB, free: 7.949 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.448e-05/0.008427, allocations: 4.656 kB / 0.7913 GB, free: 7.945 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.456e-05/0.008492, allocations: 8 kB / 0.7913 GB, free: 7.938 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.56e-06/0.008497, allocations: 5.406 kB / 0.7913 GB, free: 7.934 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.679e-05/0.008524, allocations: 7.984 kB / 0.7913 GB, free: 7.926 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.025e-05/0.008535, allocations: 8 kB / 0.7913 GB, free: 7.918 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 6.522e-05/0.0086, allocations: 161.7 kB / 0.7915 GB, free: 7.75 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.251e-05/0.008612, allocations: 15.89 kB / 0.7915 GB, free: 7.734 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001023/0.008715, allocations: 70.11 kB / 0.7916 GB, free: 7.664 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-06/0.008716, allocations: 0.5312 kB / 0.7916 GB, free: 7.664 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.00872, allocations: 0.5312 kB / 0.7916 GB, free: 7.664 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.008723, allocations: 0 / 0.7916 GB, free: 7.664 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002004/0.008923, allocations: 330.5 kB / 0.7919 GB, free: 7.301 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.856e-06/0.008926, allocations: 4 kB / 0.7919 GB, free: 7.297 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.549e-05/0.008951, allocations: 8.812 kB / 0.7919 GB, free: 7.289 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.008953, allocations: 0 / 0.7919 GB, free: 7.289 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.262e-06/0.008959, allocations: 0.5312 kB / 0.7919 GB, free: 7.289 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.143e-06/0.00896, allocations: 0 / 0.7919 GB, free: 7.289 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.008962, allocations: 1.844 kB / 0.7919 GB, free: 7.289 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001216/0.009083, allocations: 231.7 kB / 0.7921 GB, free: 7.043 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 7.193e-06/0.009091, allocations: 7.938 kB / 0.7921 GB, free: 7.035 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.533e-05/0.009106, allocations: 5.203 kB / 0.7921 GB, free: 7.031 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.245e-05/0.009148, allocations: 11.97 kB / 0.7922 GB, free: 7.02 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.477e-05/0.009183, allocations: 0 / 0.7922 GB, free: 7.02 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.143e-05/0.009195, allocations: 8.766 kB / 0.7922 GB, free: 7.012 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 3.634e-05/0.009231, allocations: 127.2 kB / 0.7923 GB, free: 6.887 MB / 0.7448 GB Notification: Performance of sort global known variables: time 5e-08/0.009231, allocations: 0.5938 kB / 0.7923 GB, free: 6.887 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0001575/0.009388, allocations: 15.94 kB / 0.7923 GB, free: 6.871 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.000111/0.009499, allocations: 108 kB / 0.7924 GB, free: 6.754 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0001056/0.009605, allocations: 40.73 kB / 0.7924 GB, free: 6.711 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.313e-06/0.009606, allocations: 1.219 kB / 0.7924 GB, free: 6.711 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 3.507e-05/0.009641, allocations: 31.59 kB / 0.7925 GB, free: 6.676 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001774/0.009819, allocations: 18.73 kB / 0.7925 GB, free: 6.66 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000455/0.01027, allocations: 148.4 kB / 0.7926 GB, free: 6.488 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.086e-05/0.01031, allocations: 59.34 kB / 0.7927 GB, free: 6.41 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 2.293e-05/0.01034, allocations: 4 kB / 0.7927 GB, free: 6.406 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.728e-05/0.01037, allocations: 16.5 kB / 0.7927 GB, free: 6.391 MB / 0.7448 GB Notification: Performance of SimCode: time 6.72e-07/0.01037, allocations: 3.406 kB / 0.7927 GB, free: 6.391 MB / 0.7448 GB Notification: Performance of Templates: time 0.002552/0.01292, allocations: 0.942 MB / 0.7936 GB, free: 5.488 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: 4.897151521872729]