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.001016/0.001016, allocations: 83.59 kB / 20.45 MB, free: 4.121 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.001841/0.001841, allocations: 165 kB / 23.82 MB, free: 0.7461 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.013/1.013, allocations: 177.1 MB / 204.2 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.89/1.89, allocations: 359 MB / 0.6052 GB, free: 11.04 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 3.686e-06/3.686e-06, allocations: 0 / 0.7871 GB, free: 12.52 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.009e-05/3.377e-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.001541/0.001575, allocations: 0.6869 MB / 0.7877 GB, free: 11.85 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.001269/0.002844, allocations: 1.126 MB / 0.7888 GB, free: 10.71 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.851e-05/0.002893, allocations: 0 / 0.7888 GB, free: 10.71 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 3.162e-05/0.002925, allocations: 3.938 kB / 0.7888 GB, free: 10.71 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 7.362e-05/0.002998, allocations: 9.141 kB / 0.7889 GB, free: 10.7 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003351/0.003333, allocations: 51.7 kB / 0.7889 GB, free: 10.65 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 9.271e-05/0.003426, allocations: 47.84 kB / 0.789 GB, free: 10.6 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001098/0.003536, allocations: 12.61 kB / 0.789 GB, free: 10.59 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 8.277e-05/0.003619, allocations: 23.98 kB / 0.789 GB, free: 10.57 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 4.883e-05/0.003667, allocations: 29.3 kB / 0.789 GB, free: 10.54 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 1.831e-05/0.003686, allocations: 4 kB / 0.789 GB, free: 10.54 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 6.503e-05/0.003751, allocations: 19.98 kB / 0.789 GB, free: 10.52 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 2.107e-05/0.003772, allocations: 4 kB / 0.789 GB, free: 10.51 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 3.407e-05/0.003806, allocations: 24.75 kB / 0.7891 GB, free: 10.49 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0001531/0.003959, allocations: 55.75 kB / 0.7891 GB, free: 10.43 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.003963, allocations: 0.5625 kB / 0.7891 GB, free: 10.43 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.763e-06/0.003964, allocations: 0.6875 kB / 0.7891 GB, free: 10.43 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 5.651e-06/0.00397, allocations: 0 / 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.0005293/0.004499, allocations: 389.4 kB / 0.7895 GB, free: 10.02 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.256e-05/0.004542, allocations: 8.688 kB / 0.7895 GB, free: 10.01 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001202/0.004662, allocations: 16.83 kB / 0.7895 GB, free: 9.992 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.18e-05/0.004754, allocations: 113.3 kB / 0.7896 GB, free: 9.855 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.118e-05/0.004765, allocations: 4.375 kB / 0.7896 GB, free: 9.852 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.553e-05/0.00478, allocations: 10.02 kB / 0.7896 GB, free: 9.844 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001476/0.004928, allocations: 66.88 kB / 0.7897 GB, free: 9.77 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.438e-06/0.004937, allocations: 192 / 0.7897 GB, free: 9.77 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.061e-05/0.004948, allocations: 384 / 0.7897 GB, free: 9.77 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.326e-06/0.004956, allocations: 5.719 kB / 0.7897 GB, free: 9.766 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.634e-05/0.005003, allocations: 15.92 kB / 0.7897 GB, free: 9.75 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003967/0.005399, allocations: 275.7 kB / 0.79 GB, free: 9.445 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 9.616e-05/0.005496, allocations: 48.58 kB / 0.79 GB, free: 9.387 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.677e-05/0.005522, allocations: 11.69 kB / 0.79 GB, free: 9.371 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 2.338e-05/0.005546, allocations: 0 / 0.79 GB, free: 9.371 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.633e-05/0.005642, allocations: 69.73 kB / 0.7901 GB, free: 9.289 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=7): time 1.112e-06/0.005643, allocations: 0 / 0.7901 GB, free: 9.289 MB / 0.7448 GB Notification: Performance of matching and sorting (n=7): time 0.0002052/0.005848, allocations: 85.03 kB / 0.7902 GB, free: 9.203 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.929e-05/0.005888, allocations: 55.41 kB / 0.7902 GB, free: 9.137 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.031e-05/0.005978, allocations: 165.9 kB / 0.7904 GB, free: 8.957 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.518e-05/0.005993, allocations: 33.7 kB / 0.7904 GB, free: 8.918 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 4.729e-05/0.00604, allocations: 130.8 kB / 0.7906 GB, free: 8.785 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 2.178e-05/0.006062, allocations: 19.84 kB / 0.7906 GB, free: 8.766 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.59e-05/0.006098, allocations: 27.36 kB / 0.7906 GB, free: 8.73 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001207/0.006219, allocations: 0.4884 MB / 0.7911 GB, free: 8.23 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.824e-05/0.006247, allocations: 7.984 kB / 0.7911 GB, free: 8.223 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.218e-05/0.006299, allocations: 62.89 kB / 0.7911 GB, free: 8.141 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.318e-05/0.006373, allocations: 71.72 kB / 0.7912 GB, free: 8.051 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.006376, allocations: 4.812 kB / 0.7912 GB, free: 8.047 MB / 0.7448 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001233/0.006499, allocations: 91.41 kB / 0.7913 GB, free: 7.953 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.639e-05/0.006515, allocations: 9.812 kB / 0.7913 GB, free: 7.945 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.051e-06/0.006521, allocations: 4 kB / 0.7913 GB, free: 7.941 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.739e-05/0.006539, allocations: 0 / 0.7913 GB, free: 7.941 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.821e-05/0.006627, allocations: 21.08 kB / 0.7913 GB, free: 7.922 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.322e-06/0.006633, allocations: 0 / 0.7913 GB, free: 7.922 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.991e-05/0.006663, allocations: 4 kB / 0.7913 GB, free: 7.918 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.308e-06/0.006672, allocations: 4.688 kB / 0.7913 GB, free: 7.914 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.103e-05/0.006753, allocations: 161.3 kB / 0.7915 GB, free: 7.746 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.49e-05/0.006768, allocations: 15.88 kB / 0.7915 GB, free: 7.73 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001482/0.006917, allocations: 79.38 kB / 0.7916 GB, free: 7.652 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.638e-06/0.006921, allocations: 7.984 kB / 0.7916 GB, free: 7.645 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.728e-06/0.006925, allocations: 0 / 0.7916 GB, free: 7.645 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.006929, allocations: 0.6875 kB / 0.7916 GB, free: 7.645 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002524/0.007181, allocations: 325.3 kB / 0.7919 GB, free: 7.285 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.007183, allocations: 2.312 kB / 0.7919 GB, free: 7.285 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.698e-05/0.00722, allocations: 11.92 kB / 0.7919 GB, free: 7.273 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.007224, allocations: 48 / 0.7919 GB, free: 7.273 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.208e-06/0.007233, allocations: 7.984 kB / 0.7919 GB, free: 7.266 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.007235, allocations: 0 / 0.7919 GB, free: 7.266 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/0.007237, allocations: 0 / 0.7919 GB, free: 7.266 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001236/0.00736, allocations: 223.1 kB / 0.7921 GB, free: 7.031 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 7.413e-06/0.007368, allocations: 3.984 kB / 0.7921 GB, free: 7.027 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.759e-05/0.007385, allocations: 0 / 0.7921 GB, free: 7.027 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.986e-05/0.007435, allocations: 8 kB / 0.7922 GB, free: 7.02 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.078e-05/0.007476, allocations: 7.984 kB / 0.7922 GB, free: 7.012 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.232e-05/0.007488, allocations: 0 / 0.7922 GB, free: 7.012 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 4.107e-05/0.007529, allocations: 135.4 kB / 0.7923 GB, free: 6.879 MB / 0.7448 GB Notification: Performance of sort global known variables: time 5e-08/0.007529, allocations: 0 / 0.7923 GB, free: 6.879 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0001753/0.007705, allocations: 11.98 kB / 0.7923 GB, free: 6.867 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.0001577/0.007862, allocations: 112.1 kB / 0.7924 GB, free: 6.746 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0001221/0.007985, allocations: 48.66 kB / 0.7925 GB, free: 6.695 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.007986, allocations: 0 / 0.7925 GB, free: 6.695 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 3.624e-05/0.008023, allocations: 24.25 kB / 0.7925 GB, free: 6.668 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002076/0.00823, allocations: 13.11 kB / 0.7925 GB, free: 6.656 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005234/0.008754, allocations: 158.8 kB / 0.7926 GB, free: 6.473 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.055e-05/0.008794, allocations: 62.5 kB / 0.7927 GB, free: 6.395 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 3.091e-05/0.008825, allocations: 7.984 kB / 0.7927 GB, free: 6.387 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.725e-05/0.008852, allocations: 13.78 kB / 0.7927 GB, free: 6.375 MB / 0.7448 GB Notification: Performance of SimCode: time 8.41e-07/0.008853, allocations: 0 / 0.7927 GB, free: 6.375 MB / 0.7448 GB Notification: Performance of Templates: time 0.003297/0.01215, allocations: 0.8689 MB / 0.7936 GB, free: 5.539 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.420884817838669]