Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001111/0.001111, 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.001296/0.001296, allocations: 161 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.9097/0.9097, allocations: 177.2 MB / 204.2 MB, free: 5.59 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.823/1.823, allocations: 377.8 MB / 0.6236 GB, free: 8.543 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.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_12_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_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 3.236e-06/3.236e-06, allocations: 0 / 0.8115 GB, free: 1.742 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.05e-05/3.373e-05, allocations: 3.375 kB / 0.8115 GB, free: 1.738 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.00205/0.002084, allocations: 0.6853 MB / 0.8122 GB, free: 1.074 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001746/0.00383, allocations: 1.127 MB / 0.8133 GB, free: 15.93 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.022e-05/0.003881, allocations: 1.531 kB / 0.8133 GB, free: 15.93 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 3.618e-05/0.003917, allocations: 7.938 kB / 0.8133 GB, free: 15.93 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 7.611e-05/0.003993, allocations: 7.875 kB / 0.8133 GB, free: 15.92 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003345/0.004327, allocations: 47.75 kB / 0.8134 GB, free: 15.87 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0001024/0.00443, allocations: 53.03 kB / 0.8134 GB, free: 15.82 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 9.563e-05/0.004525, allocations: 11.98 kB / 0.8134 GB, free: 15.81 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 8.651e-05/0.004612, allocations: 31.86 kB / 0.8134 GB, free: 15.78 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 5.127e-05/0.004663, allocations: 21.55 kB / 0.8135 GB, free: 15.76 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 1.832e-05/0.004682, allocations: 4 kB / 0.8135 GB, free: 15.75 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 7.252e-05/0.004754, allocations: 19.98 kB / 0.8135 GB, free: 15.73 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 2.468e-05/0.004779, allocations: 11.94 kB / 0.8135 GB, free: 15.72 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 3.89e-05/0.004818, allocations: 16.69 kB / 0.8135 GB, free: 15.71 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0001479/0.004966, allocations: 51.81 kB / 0.8136 GB, free: 15.66 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.004969, allocations: 0.5312 kB / 0.8136 GB, free: 15.66 MB / 0.7761 GB Notification: Performance of FrontEnd: time 1.493e-06/0.00497, allocations: 5.656 kB / 0.8136 GB, free: 15.65 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 4.929e-06/0.004975, allocations: 0 / 0.8136 GB, free: 15.65 MB / 0.7761 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.0005197/0.005495, allocations: 388.5 kB / 0.8139 GB, free: 15.23 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.98e-05/0.005535, allocations: 8.688 kB / 0.814 GB, free: 15.23 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001258/0.005661, allocations: 16.83 kB / 0.814 GB, free: 15.21 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001119/0.005772, allocations: 113.6 kB / 0.8141 GB, free: 15.07 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.526e-05/0.005788, allocations: 4.375 kB / 0.8141 GB, free: 15.07 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.278e-05/0.0058, allocations: 5.531 kB / 0.8141 GB, free: 15.07 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001574/0.005958, allocations: 66.94 kB / 0.8141 GB, free: 14.99 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.736e-06/0.005967, allocations: 192 / 0.8141 GB, free: 14.99 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.164e-05/0.005978, allocations: 1.75 kB / 0.8142 GB, free: 14.99 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.365e-06/0.005987, allocations: 384 / 0.8142 GB, free: 14.99 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.832e-05/0.006035, allocations: 15.92 kB / 0.8142 GB, free: 14.98 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004174/0.006452, allocations: 277.4 kB / 0.8144 GB, free: 14.67 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001088/0.006561, allocations: 47.05 kB / 0.8145 GB, free: 14.61 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.219e-05/0.006593, allocations: 15.81 kB / 0.8145 GB, free: 14.59 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 1.98e-05/0.006613, allocations: 0 / 0.8145 GB, free: 14.59 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001101/0.006723, allocations: 70.92 kB / 0.8146 GB, free: 14.51 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=7): time 1.723e-06/0.006725, allocations: 3.938 kB / 0.8146 GB, free: 14.51 MB / 0.7761 GB Notification: Performance of matching and sorting (n=7): time 0.0002202/0.006945, allocations: 73.62 kB / 0.8146 GB, free: 14.43 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.371e-05/0.006989, allocations: 55.39 kB / 0.8147 GB, free: 14.36 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.23e-05/0.007081, allocations: 161.9 kB / 0.8148 GB, free: 14.19 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 1.594e-05/0.007097, allocations: 26.39 kB / 0.8149 GB, free: 14.16 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 5.525e-05/0.007152, allocations: 142.8 kB / 0.815 GB, free: 14.01 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 2.477e-05/0.007177, allocations: 22.31 kB / 0.815 GB, free: 13.99 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.585e-05/0.007223, allocations: 31.36 kB / 0.8151 GB, free: 13.95 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001243/0.007347, allocations: 0.4884 MB / 0.8155 GB, free: 13.45 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.451e-05/0.007382, allocations: 7.984 kB / 0.8155 GB, free: 13.45 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.925e-05/0.007441, allocations: 62.31 kB / 0.8156 GB, free: 13.36 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.115e-05/0.007532, allocations: 72.23 kB / 0.8157 GB, free: 13.27 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.007535, allocations: 0 / 0.8157 GB, free: 13.27 MB / 0.7761 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001584/0.007693, allocations: 94.52 kB / 0.8158 GB, free: 13.18 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.677e-05/0.00771, allocations: 7.938 kB / 0.8158 GB, free: 13.17 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.641e-06/0.007715, allocations: 1.844 kB / 0.8158 GB, free: 13.17 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.568e-05/0.007731, allocations: 4 kB / 0.8158 GB, free: 13.16 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001022/0.007833, allocations: 16.23 kB / 0.8158 GB, free: 13.15 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.222e-06/0.00784, allocations: 320 / 0.8158 GB, free: 13.15 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.722e-05/0.007887, allocations: 14.53 kB / 0.8158 GB, free: 13.14 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.193e-05/0.007899, allocations: 4 kB / 0.8158 GB, free: 13.13 MB / 0.7761 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.975e-05/0.007988, allocations: 164.5 kB / 0.816 GB, free: 12.96 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.105e-05/0.00801, allocations: 11.89 kB / 0.816 GB, free: 12.95 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001612/0.008171, allocations: 74.09 kB / 0.816 GB, free: 12.87 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.855e-06/0.008174, allocations: 0 / 0.816 GB, free: 12.87 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.008178, allocations: 1.125 kB / 0.816 GB, free: 12.87 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.008184, allocations: 7.984 kB / 0.816 GB, free: 12.86 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002939/0.008478, allocations: 325.3 kB / 0.8164 GB, free: 12.5 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.448e-06/0.008482, allocations: 4.719 kB / 0.8164 GB, free: 12.5 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.265e-05/0.008535, allocations: 4 kB / 0.8164 GB, free: 12.5 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.008538, allocations: 0.625 kB / 0.8164 GB, free: 12.5 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.434e-05/0.008552, allocations: 11.98 kB / 0.8164 GB, free: 12.48 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.653e-06/0.008559, allocations: 0.8438 kB / 0.8164 GB, free: 12.48 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.008561, allocations: 0 / 0.8164 GB, free: 12.48 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001696/0.00873, allocations: 227.4 kB / 0.8166 GB, free: 12.25 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 9.397e-06/0.00874, allocations: 4 kB / 0.8166 GB, free: 12.24 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.136e-05/0.008761, allocations: 3.984 kB / 0.8166 GB, free: 12.24 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.914e-05/0.00884, allocations: 4 kB / 0.8166 GB, free: 12.23 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.256e-05/0.008883, allocations: 11.98 kB / 0.8166 GB, free: 12.22 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.36e-05/0.008896, allocations: 0 / 0.8166 GB, free: 12.22 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 4.781e-05/0.008944, allocations: 123.2 kB / 0.8167 GB, free: 12.1 MB / 0.7761 GB Notification: Performance of sort global known variables: time 9e-08/0.008944, allocations: 0 / 0.8167 GB, free: 12.1 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0002704/0.009215, allocations: 16 kB / 0.8168 GB, free: 12.09 MB / 0.7761 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.0001499/0.009365, allocations: 105.2 kB / 0.8169 GB, free: 11.98 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0001455/0.00951, allocations: 43.61 kB / 0.8169 GB, free: 11.93 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.353e-06/0.009511, allocations: 0 / 0.8169 GB, free: 11.93 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 4.668e-05/0.009558, allocations: 24.59 kB / 0.8169 GB, free: 11.9 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002884/0.009847, allocations: 23.86 kB / 0.8169 GB, free: 11.88 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005734/0.01042, allocations: 148.5 kB / 0.8171 GB, free: 11.71 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.854e-05/0.01047, allocations: 63.22 kB / 0.8171 GB, free: 11.62 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 3.379e-05/0.0105, allocations: 5.047 kB / 0.8171 GB, free: 11.62 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.365e-05/0.01054, allocations: 12.5 kB / 0.8172 GB, free: 11.61 MB / 0.7761 GB Notification: Performance of SimCode: time 1.232e-06/0.01054, allocations: 0 / 0.8172 GB, free: 11.61 MB / 0.7761 GB Notification: Performance of Templates: time 0.004078/0.01461, allocations: 0.9423 MB / 0.8181 GB, free: 10.7 MB / 0.7761 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.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.963361518923193]