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.00104/0.00104, allocations: 81.86 kB / 20.68 MB, free: 3.816 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.001042/0.001042, allocations: 185 kB / 24.09 MB, free: 420 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 0.9984/0.9984, allocations: 177.1 MB / 204.5 MB, free: 5.512 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.928/1.928, allocations: 377.9 MB / 0.624 GB, free: 8.398 MB / 0.5886 GB " [Timeout remaining time 177] 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 2.524e-06/2.524e-06, allocations: 0 / 0.812 GB, free: 1.477 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.395e-05/2.647e-05, allocations: 6.25 kB / 0.812 GB, free: 1.469 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.001419/0.001446, allocations: 0.6861 MB / 0.8127 GB, free: 0.8047 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001115/0.002561, allocations: 1.123 MB / 0.8138 GB, free: 15.67 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.236e-05/0.002613, allocations: 0.6562 kB / 0.8138 GB, free: 15.67 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 2.768e-05/0.002641, allocations: 3.938 kB / 0.8138 GB, free: 15.66 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 6.581e-05/0.002707, allocations: 12.98 kB / 0.8138 GB, free: 15.65 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002695/0.002976, allocations: 47.75 kB / 0.8138 GB, free: 15.61 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 8.236e-05/0.003058, allocations: 52.3 kB / 0.8139 GB, free: 15.55 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 8.095e-05/0.003139, allocations: 13.27 kB / 0.8139 GB, free: 15.54 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 8.542e-05/0.003225, allocations: 27.97 kB / 0.8139 GB, free: 15.52 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 4.789e-05/0.003273, allocations: 23.91 kB / 0.8139 GB, free: 15.49 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 1.477e-05/0.003287, allocations: 7.938 kB / 0.8139 GB, free: 15.48 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 6.103e-05/0.003348, allocations: 13.94 kB / 0.8139 GB, free: 15.47 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 2.443e-05/0.003373, allocations: 15.97 kB / 0.814 GB, free: 15.46 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 2.455e-05/0.003397, allocations: 19.92 kB / 0.814 GB, free: 15.44 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0001228/0.00352, allocations: 47.88 kB / 0.814 GB, free: 15.39 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 2.154e-06/0.003522, allocations: 0 / 0.814 GB, free: 15.39 MB / 0.7761 GB Notification: Performance of FrontEnd: time 6.61e-07/0.003523, allocations: 1.375 kB / 0.814 GB, free: 15.39 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 3.607e-06/0.003527, allocations: 0 / 0.814 GB, free: 15.39 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.0004463/0.003973, allocations: 390 kB / 0.8144 GB, free: 14.97 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 6.189e-05/0.004035, allocations: 12.03 kB / 0.8144 GB, free: 14.96 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001487/0.004184, allocations: 16.77 kB / 0.8144 GB, free: 14.95 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.492e-05/0.004258, allocations: 120.5 kB / 0.8145 GB, free: 14.8 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.949e-06/0.004268, allocations: 1.719 kB / 0.8145 GB, free: 14.8 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.654e-06/0.004276, allocations: 4.375 kB / 0.8145 GB, free: 14.8 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001408/0.004417, allocations: 62.94 kB / 0.8146 GB, free: 14.73 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.108e-05/0.004428, allocations: 2.125 kB / 0.8146 GB, free: 14.73 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.846e-06/0.004437, allocations: 384 / 0.8146 GB, free: 14.73 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.085e-05/0.004448, allocations: 384 / 0.8146 GB, free: 14.73 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.746e-05/0.004505, allocations: 15.92 kB / 0.8146 GB, free: 14.71 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000365/0.00487, allocations: 252.4 kB / 0.8149 GB, free: 14.44 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 8.382e-05/0.004954, allocations: 49.16 kB / 0.8149 GB, free: 14.38 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.999e-05/0.004974, allocations: 15.67 kB / 0.8149 GB, free: 14.36 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 2.53e-05/0.004999, allocations: 0 / 0.8149 GB, free: 14.36 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.83e-05/0.005088, allocations: 61.19 kB / 0.815 GB, free: 14.29 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=7): time 1.543e-06/0.005089, allocations: 0.5312 kB / 0.815 GB, free: 14.29 MB / 0.7761 GB Notification: Performance of matching and sorting (n=7): time 0.0001819/0.005271, allocations: 78.25 kB / 0.8151 GB, free: 14.2 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3e-05/0.005301, allocations: 55.41 kB / 0.8151 GB, free: 14.14 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.594e-05/0.005367, allocations: 166.4 kB / 0.8153 GB, free: 13.96 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 1.139e-05/0.005378, allocations: 29.7 kB / 0.8153 GB, free: 13.92 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 4.301e-05/0.005421, allocations: 132.4 kB / 0.8154 GB, free: 13.79 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 1.962e-05/0.005441, allocations: 23.81 kB / 0.8154 GB, free: 13.77 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.386e-05/0.005475, allocations: 31.38 kB / 0.8155 GB, free: 13.73 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001677/0.005642, allocations: 0.4884 MB / 0.816 GB, free: 13.23 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.833e-05/0.005661, allocations: 4.531 kB / 0.816 GB, free: 13.22 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.933e-05/0.0057, allocations: 63.61 kB / 0.816 GB, free: 13.14 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.933e-05/0.005759, allocations: 75.48 kB / 0.8161 GB, free: 13.05 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.005762, allocations: 0 / 0.8161 GB, free: 13.05 MB / 0.7761 GB Notification: Performance of matching and sorting (n=10) (initialization): time 9.821e-05/0.00586, allocations: 78.55 kB / 0.8162 GB, free: 12.96 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.496e-05/0.005875, allocations: 7.062 kB / 0.8162 GB, free: 12.96 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.803e-06/0.005882, allocations: 4.188 kB / 0.8162 GB, free: 12.96 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.194e-05/0.005894, allocations: 9 kB / 0.8162 GB, free: 12.95 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.195e-05/0.005966, allocations: 19.98 kB / 0.8162 GB, free: 12.93 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.477e-06/0.005969, allocations: 1.156 kB / 0.8162 GB, free: 12.93 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.991e-05/0.005999, allocations: 7.984 kB / 0.8162 GB, free: 12.92 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.679e-06/0.006009, allocations: 8 kB / 0.8162 GB, free: 12.91 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 7.01e-05/0.006079, allocations: 158.1 kB / 0.8164 GB, free: 12.75 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.33e-05/0.006092, allocations: 15.83 kB / 0.8164 GB, free: 12.73 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001168/0.006209, allocations: 82.03 kB / 0.8165 GB, free: 12.65 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/0.006212, allocations: 1.031 kB / 0.8165 GB, free: 12.65 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.044e-06/0.006214, allocations: 0 / 0.8165 GB, free: 12.65 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.925e-06/0.006217, allocations: 0 / 0.8165 GB, free: 12.65 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002054/0.006422, allocations: 304 kB / 0.8168 GB, free: 12.32 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.006424, allocations: 0 / 0.8168 GB, free: 12.32 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.215e-05/0.006456, allocations: 11.98 kB / 0.8168 GB, free: 12.31 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.006459, allocations: 3.938 kB / 0.8168 GB, free: 12.3 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.731e-06/0.006464, allocations: 0 / 0.8168 GB, free: 12.3 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.085e-06/0.006467, allocations: 6.312 kB / 0.8168 GB, free: 12.3 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.006468, allocations: 0 / 0.8168 GB, free: 12.3 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001056/0.006574, allocations: 215.9 kB / 0.817 GB, free: 12.07 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 9.157e-06/0.006583, allocations: 3.984 kB / 0.817 GB, free: 12.07 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.455e-05/0.006598, allocations: 7.938 kB / 0.817 GB, free: 12.06 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.292e-05/0.006641, allocations: 4 kB / 0.817 GB, free: 12.05 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.694e-05/0.006668, allocations: 12.42 kB / 0.817 GB, free: 12.04 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.157e-06/0.006677, allocations: 4.531 kB / 0.817 GB, free: 12.04 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 3.233e-05/0.006709, allocations: 127.2 kB / 0.8171 GB, free: 11.91 MB / 0.7761 GB Notification: Performance of sort global known variables: time 5e-08/0.006709, allocations: 1.344 kB / 0.8171 GB, free: 11.91 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0001638/0.006873, allocations: 16 kB / 0.8172 GB, free: 11.9 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.0001194/0.006992, allocations: 95.88 kB / 0.8172 GB, free: 11.8 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 8.597e-05/0.007078, allocations: 44.23 kB / 0.8173 GB, free: 11.75 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.007081, allocations: 4.656 kB / 0.8173 GB, free: 11.75 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 3.001e-05/0.007111, allocations: 15.69 kB / 0.8173 GB, free: 11.73 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000192/0.007303, allocations: 15.3 kB / 0.8173 GB, free: 11.71 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000387/0.00769, allocations: 154.1 kB / 0.8175 GB, free: 11.54 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.355e-05/0.007723, allocations: 59.22 kB / 0.8175 GB, free: 11.46 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 2.61e-05/0.007749, allocations: 7.984 kB / 0.8175 GB, free: 11.45 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000126/0.007875, allocations: 76.52 kB / 0.8176 GB, free: 11.38 MB / 0.7761 GB Notification: Performance of SimCode: time 5.31e-07/0.007876, allocations: 0 / 0.8176 GB, free: 11.38 MB / 0.7761 GB Notification: Performance of Templates: time 0.002576/0.01045, allocations: 0.9795 MB / 0.8186 GB, free: 10.43 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: 5.090485882945359]