Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001319/0.001319, allocations: 81.17 kB / 19.87 MB, free: 4.621 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.001476/0.001476, allocations: 169 kB / 23.27 MB, free: 1.223 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.9948/0.9948, allocations: 177.2 MB / 203.7 MB, free: 5.52 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.415/2.415, allocations: 438.1 MB / 0.682 GB, free: 14.14 MB / 0.6511 GB " [Timeout remaining time 177] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_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_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.673e-06/1.673e-06, allocations: 0 / 0.8897 GB, free: 9.754 MB / 0.8542 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.33e-05/1.497e-05, allocations: 2.312 kB / 0.8897 GB, free: 9.75 MB / 0.8542 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.001192/0.001207, allocations: 0.6855 MB / 0.8904 GB, free: 9.066 MB / 0.8542 GB Notification: Performance of NFInst.instExpressions: time 0.001048/0.002255, allocations: 1.112 MB / 0.8915 GB, free: 7.941 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.943e-05/0.002294, allocations: 0 / 0.8915 GB, free: 7.941 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 2.554e-05/0.00232, allocations: 7.875 kB / 0.8915 GB, free: 7.934 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 6.223e-05/0.002382, allocations: 7.984 kB / 0.8915 GB, free: 7.926 MB / 0.8542 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002479/0.00263, allocations: 47.7 kB / 0.8916 GB, free: 7.879 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 7.776e-05/0.002708, allocations: 55.8 kB / 0.8916 GB, free: 7.824 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 8.449e-05/0.002792, allocations: 7.969 kB / 0.8916 GB, free: 7.816 MB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 8.281e-05/0.002875, allocations: 27.98 kB / 0.8916 GB, free: 7.789 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 4.332e-05/0.002918, allocations: 23.91 kB / 0.8917 GB, free: 7.766 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 1.33e-05/0.002932, allocations: 4 kB / 0.8917 GB, free: 7.762 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 5.655e-05/0.002988, allocations: 23.97 kB / 0.8917 GB, free: 7.738 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 1.966e-05/0.003008, allocations: 8 kB / 0.8917 GB, free: 7.73 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 2.088e-05/0.003029, allocations: 15.92 kB / 0.8917 GB, free: 7.715 MB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 0.0001132/0.003142, allocations: 55.81 kB / 0.8918 GB, free: 7.66 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 2.064e-06/0.003144, allocations: 0 / 0.8918 GB, free: 7.66 MB / 0.8542 GB Notification: Performance of FrontEnd: time 6.22e-07/0.003145, allocations: 0 / 0.8918 GB, free: 7.66 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 3.437e-06/0.003148, allocations: 0 / 0.8918 GB, free: 7.66 MB / 0.8542 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.0003703/0.003519, allocations: 392.4 kB / 0.8921 GB, free: 7.238 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 3.397e-05/0.003552, allocations: 15.97 kB / 0.8922 GB, free: 7.223 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.22e-05/0.003625, allocations: 16.86 kB / 0.8922 GB, free: 7.207 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.216e-05/0.003687, allocations: 116.6 kB / 0.8923 GB, free: 7.066 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.839e-06/0.003697, allocations: 8.375 kB / 0.8923 GB, free: 7.059 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.157e-06/0.003706, allocations: 8.312 kB / 0.8923 GB, free: 7.051 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.035e-05/0.003796, allocations: 66.92 kB / 0.8924 GB, free: 6.977 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.05e-06/0.003801, allocations: 192 / 0.8924 GB, free: 6.977 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.313e-06/0.003809, allocations: 384 / 0.8924 GB, free: 6.977 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.16e-06/0.003814, allocations: 4.375 kB / 0.8924 GB, free: 6.973 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.555e-05/0.003839, allocations: 11.92 kB / 0.8924 GB, free: 6.961 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002391/0.004078, allocations: 248.4 kB / 0.8926 GB, free: 6.691 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 5.898e-05/0.004137, allocations: 47 kB / 0.8927 GB, free: 6.633 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.725e-05/0.004155, allocations: 15.67 kB / 0.8927 GB, free: 6.613 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 1.884e-05/0.004173, allocations: 4 kB / 0.8927 GB, free: 6.609 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.05e-05/0.004234, allocations: 61.23 kB / 0.8927 GB, free: 6.535 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=7): time 9.92e-07/0.004235, allocations: 0 / 0.8927 GB, free: 6.535 MB / 0.8542 GB Notification: Performance of matching and sorting (n=7): time 0.0001468/0.004382, allocations: 81.52 kB / 0.8928 GB, free: 6.449 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.888e-05/0.004411, allocations: 51.41 kB / 0.8929 GB, free: 6.387 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.509e-05/0.004476, allocations: 165.9 kB / 0.893 GB, free: 6.207 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 1.106e-05/0.004487, allocations: 29.7 kB / 0.8931 GB, free: 6.172 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 3.948e-05/0.004526, allocations: 134.9 kB / 0.8932 GB, free: 6.035 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 1.887e-05/0.004545, allocations: 23.78 kB / 0.8932 GB, free: 6.012 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.256e-05/0.004578, allocations: 31.36 kB / 0.8932 GB, free: 5.973 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001074/0.004685, allocations: 496.1 kB / 0.8937 GB, free: 5.477 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.479e-05/0.0047, allocations: 8 kB / 0.8937 GB, free: 5.469 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.623e-05/0.004736, allocations: 58.41 kB / 0.8938 GB, free: 5.391 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.631e-05/0.004792, allocations: 66.36 kB / 0.8938 GB, free: 5.305 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.004794, allocations: 4 kB / 0.8938 GB, free: 5.301 MB / 0.8542 GB Notification: Performance of matching and sorting (n=10) (initialization): time 8.837e-05/0.004882, allocations: 81.52 kB / 0.8939 GB, free: 5.215 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.142e-05/0.004894, allocations: 7.984 kB / 0.8939 GB, free: 5.207 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.336e-06/0.004902, allocations: 7.938 kB / 0.8939 GB, free: 5.199 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.765e-06/0.00491, allocations: 0 / 0.8939 GB, free: 5.199 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.009e-05/0.00497, allocations: 15.94 kB / 0.8939 GB, free: 5.184 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.096e-06/0.004973, allocations: 0 / 0.8939 GB, free: 5.184 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.716e-05/0.005, allocations: 7.984 kB / 0.894 GB, free: 5.176 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.572e-06/0.005007, allocations: 4.125 kB / 0.894 GB, free: 5.172 MB / 0.8542 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 7.198e-05/0.005079, allocations: 170.4 kB / 0.8941 GB, free: 4.996 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.496e-06/0.005087, allocations: 4 kB / 0.8941 GB, free: 4.992 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001058/0.005193, allocations: 85.92 kB / 0.8942 GB, free: 4.902 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.253e-06/0.005194, allocations: 0 / 0.8942 GB, free: 4.902 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.074e-06/0.005196, allocations: 0 / 0.8942 GB, free: 4.902 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.127e-06/0.005201, allocations: 4.031 kB / 0.8942 GB, free: 4.898 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002028/0.005403, allocations: 302 kB / 0.8945 GB, free: 4.57 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.005405, allocations: 4.188 kB / 0.8945 GB, free: 4.566 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.832e-05/0.005433, allocations: 11.98 kB / 0.8945 GB, free: 4.555 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.975e-06/0.005436, allocations: 3.938 kB / 0.8945 GB, free: 4.551 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.501e-06/0.005442, allocations: 8 kB / 0.8945 GB, free: 4.543 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.11e-07/0.005442, allocations: 0 / 0.8945 GB, free: 4.543 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.005443, allocations: 480 / 0.8945 GB, free: 4.543 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.924e-05/0.005543, allocations: 219.9 kB / 0.8947 GB, free: 4.309 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 8.246e-06/0.005551, allocations: 11.95 kB / 0.8947 GB, free: 4.297 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.436e-05/0.005565, allocations: 3.938 kB / 0.8948 GB, free: 4.293 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.084e-05/0.005606, allocations: 4 kB / 0.8948 GB, free: 4.289 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.445e-05/0.005631, allocations: 7.984 kB / 0.8948 GB, free: 4.281 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.674e-06/0.005638, allocations: 4 kB / 0.8948 GB, free: 4.277 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 3.08e-05/0.005669, allocations: 127.2 kB / 0.8949 GB, free: 4.152 MB / 0.8542 GB Notification: Performance of sort global known variables: time 5e-08/0.005669, allocations: 7.938 kB / 0.8949 GB, free: 4.145 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0001569/0.005826, allocations: 12 kB / 0.8949 GB, free: 4.133 MB / 0.8542 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 8.676e-05/0.005913, allocations: 99.25 kB / 0.895 GB, free: 4.027 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 7.414e-05/0.005987, allocations: 43.58 kB / 0.895 GB, free: 3.98 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.252e-06/0.005988, allocations: 0 / 0.895 GB, free: 3.98 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 2.608e-05/0.006014, allocations: 19.69 kB / 0.8951 GB, free: 3.957 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000162/0.006176, allocations: 11.98 kB / 0.8951 GB, free: 3.945 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004246/0.006601, allocations: 166.2 kB / 0.8952 GB, free: 3.754 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.359e-05/0.006634, allocations: 59.34 kB / 0.8953 GB, free: 3.676 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 2.123e-05/0.006656, allocations: 4 kB / 0.8953 GB, free: 3.672 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.887e-05/0.006705, allocations: 74.2 kB / 0.8954 GB, free: 3.598 MB / 0.8542 GB Notification: Performance of SimCode: time 4.31e-07/0.006705, allocations: 0 / 0.8954 GB, free: 3.598 MB / 0.8542 GB Notification: Performance of Templates: time 0.002226/0.008931, allocations: 0.9806 MB / 0.8963 GB, free: 2.629 MB / 0.8542 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/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.333179971203208]