Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.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.001283/0.001283, allocations: 83.59 kB / 20.45 MB, free: 4.113 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.001552/0.001552, allocations: 165 kB / 23.82 MB, free: 0.7422 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.9569/0.9569, allocations: 177.1 MB / 204.2 MB, free: 5.598 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.873/1.873, allocations: 377.9 MB / 0.6236 GB, free: 8.496 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.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|firOrdHol.u|firOrdHol.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|firOrdHol.u|firOrdHol.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.384e-06/2.384e-06, allocations: 0.9844 kB / 0.8115 GB, free: 1.703 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.105e-05/2.343e-05, allocations: 2.312 kB / 0.8115 GB, free: 1.699 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.001872/0.001895, allocations: 0.7023 MB / 0.8122 GB, free: 1.02 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001551/0.003446, allocations: 1.128 MB / 0.8133 GB, free: 15.88 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.7e-05/0.003493, allocations: 0.7812 kB / 0.8133 GB, free: 15.88 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 3.038e-05/0.003524, allocations: 3.938 kB / 0.8133 GB, free: 15.88 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 7.42e-05/0.003598, allocations: 17.53 kB / 0.8133 GB, free: 15.86 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002943/0.003892, allocations: 47.77 kB / 0.8134 GB, free: 15.81 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0001169/0.004009, allocations: 71.77 kB / 0.8135 GB, free: 15.74 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 7.218e-05/0.004081, allocations: 11.98 kB / 0.8135 GB, free: 15.73 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 8.291e-05/0.004164, allocations: 33.5 kB / 0.8135 GB, free: 15.7 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 5.207e-05/0.004216, allocations: 31.89 kB / 0.8135 GB, free: 15.67 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 1.707e-05/0.004233, allocations: 7.938 kB / 0.8135 GB, free: 15.66 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 6.572e-05/0.004299, allocations: 23.98 kB / 0.8136 GB, free: 15.64 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 2.445e-05/0.004324, allocations: 20.47 kB / 0.8136 GB, free: 15.62 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 3.43e-05/0.004358, allocations: 21.67 kB / 0.8136 GB, free: 15.6 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.000148/0.004506, allocations: 67.78 kB / 0.8137 GB, free: 15.53 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 1.874e-06/0.004508, allocations: 0 / 0.8137 GB, free: 15.53 MB / 0.7761 GB Notification: Performance of FrontEnd: time 8.42e-07/0.004509, allocations: 0 / 0.8137 GB, free: 15.53 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 3.948e-06/0.004513, allocations: 0 / 0.8137 GB, free: 15.53 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0005526/0.005065, allocations: 402 kB / 0.814 GB, free: 15.1 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 4.301e-05/0.005108, allocations: 8.031 kB / 0.8141 GB, free: 15.09 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001354/0.005244, allocations: 17.44 kB / 0.8141 GB, free: 15.08 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001022/0.005346, allocations: 121.9 kB / 0.8142 GB, free: 14.93 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.966e-05/0.005365, allocations: 384 / 0.8142 GB, free: 14.93 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.79e-05/0.005383, allocations: 12.38 kB / 0.8142 GB, free: 14.92 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000169/0.005552, allocations: 70.92 kB / 0.8143 GB, free: 14.84 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.028e-05/0.005563, allocations: 2.75 kB / 0.8143 GB, free: 14.84 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.335e-05/0.005576, allocations: 8.359 kB / 0.8143 GB, free: 14.84 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.724e-06/0.005584, allocations: 384 / 0.8143 GB, free: 14.84 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.671e-05/0.00565, allocations: 23.92 kB / 0.8143 GB, free: 14.81 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004175/0.006068, allocations: 295.6 kB / 0.8146 GB, free: 14.49 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001225/0.00619, allocations: 59.56 kB / 0.8146 GB, free: 14.42 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.259e-05/0.006233, allocations: 20.41 kB / 0.8147 GB, free: 14.39 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 1.707e-05/0.00625, allocations: 0 / 0.8147 GB, free: 14.39 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001099/0.00636, allocations: 89.56 kB / 0.8147 GB, free: 14.29 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=10): time 1.272e-06/0.006361, allocations: 1.625 kB / 0.8147 GB, free: 14.29 MB / 0.7761 GB Notification: Performance of matching and sorting (n=10): time 0.0002654/0.006627, allocations: 121.5 kB / 0.8149 GB, free: 14.17 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.242e-05/0.006669, allocations: 55.41 kB / 0.8149 GB, free: 14.1 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.031e-05/0.006759, allocations: 165.9 kB / 0.8151 GB, free: 13.92 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 1.917e-05/0.006779, allocations: 30.3 kB / 0.8151 GB, free: 13.89 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 5.499e-05/0.006834, allocations: 139.1 kB / 0.8152 GB, free: 13.74 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 3.012e-05/0.006864, allocations: 32.36 kB / 0.8153 GB, free: 13.71 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.409e-05/0.006918, allocations: 40.14 kB / 0.8153 GB, free: 13.66 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001382/0.007056, allocations: 496.1 kB / 0.8158 GB, free: 13.17 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.327e-05/0.007099, allocations: 17.11 kB / 0.8158 GB, free: 13.15 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.182e-05/0.007161, allocations: 47.05 kB / 0.8158 GB, free: 13.09 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001057/0.007267, allocations: 72.3 kB / 0.8159 GB, free: 13.01 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.007269, allocations: 0 / 0.8159 GB, free: 13.01 MB / 0.7761 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001816/0.00745, allocations: 110.4 kB / 0.816 GB, free: 12.9 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.442e-05/0.007465, allocations: 11.94 kB / 0.816 GB, free: 12.89 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.639e-06/0.007469, allocations: 1 kB / 0.816 GB, free: 12.89 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.161e-05/0.007481, allocations: 0 / 0.816 GB, free: 12.89 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001149/0.007596, allocations: 27.92 kB / 0.816 GB, free: 12.86 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.169e-06/0.007601, allocations: 1.156 kB / 0.816 GB, free: 12.86 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.108e-05/0.007642, allocations: 8 kB / 0.8161 GB, free: 12.85 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.241e-05/0.007654, allocations: 4 kB / 0.8161 GB, free: 12.85 MB / 0.7761 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 12 (firOrdHol.firstTrigger,$PRE.firOrdHol.firstTrigger,firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.c,$PRE.firOrdHol.c,firOrdHol.pre_uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.uSample,$PRE.firOrdHol.uSample,firOrdHol.tSample,$PRE.firOrdHol.tSample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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.769e-05/0.007742, allocations: 165.4 kB / 0.8162 GB, free: 12.68 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.302e-05/0.007765, allocations: 26.09 kB / 0.8162 GB, free: 12.65 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003424/0.008108, allocations: 106 kB / 0.8163 GB, free: 12.54 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.00811, allocations: 0 / 0.8163 GB, free: 12.54 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.008115, allocations: 4.25 kB / 0.8163 GB, free: 12.54 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-06/0.00812, allocations: 3.984 kB / 0.8164 GB, free: 12.54 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003417/0.008462, allocations: 365.3 kB / 0.8167 GB, free: 12.14 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.008463, allocations: 2.844 kB / 0.8167 GB, free: 12.14 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.052e-05/0.008514, allocations: 15.92 kB / 0.8167 GB, free: 12.12 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/0.008516, allocations: 0 / 0.8167 GB, free: 12.12 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.877e-06/0.008525, allocations: 0 / 0.8167 GB, free: 12.12 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.008527, allocations: 0 / 0.8167 GB, free: 12.12 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.008528, allocations: 0 / 0.8167 GB, free: 12.12 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002096/0.008738, allocations: 259.8 kB / 0.817 GB, free: 11.85 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 1.016e-05/0.008748, allocations: 7.953 kB / 0.817 GB, free: 11.84 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.044e-05/0.008769, allocations: 5.531 kB / 0.817 GB, free: 11.84 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.897e-05/0.008848, allocations: 7.984 kB / 0.817 GB, free: 11.83 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.38e-05/0.008881, allocations: 4 kB / 0.817 GB, free: 11.82 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.428e-06/0.008891, allocations: 4.609 kB / 0.817 GB, free: 11.82 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 4.771e-05/0.008938, allocations: 131.2 kB / 0.8171 GB, free: 11.69 MB / 0.7761 GB Notification: Performance of sort global known variables: time 1.01e-07/0.008939, allocations: 4.5 kB / 0.8171 GB, free: 11.69 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.000277/0.009216, allocations: 16 kB / 0.8171 GB, free: 11.67 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: 7 (firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.firstTrigger,firOrdHol.tSample,firOrdHol.uSample,firOrdHol.pre_uSample,firOrdHol.c) * Number of discrete states: 2 (firOrdHol.uSample,firOrdHol.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001396/0.009355, allocations: 109.1 kB / 0.8172 GB, free: 11.56 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0001376/0.009493, allocations: 67.59 kB / 0.8173 GB, free: 11.49 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.253e-06/0.009494, allocations: 1.094 kB / 0.8173 GB, free: 11.49 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 4.227e-05/0.009536, allocations: 31.61 kB / 0.8173 GB, free: 11.45 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001799/0.009716, allocations: 25.41 kB / 0.8174 GB, free: 11.43 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003996/0.01012, allocations: 167.4 kB / 0.8175 GB, free: 11.24 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.456e-05/0.01015, allocations: 63.2 kB / 0.8176 GB, free: 11.16 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 2.507e-05/0.01018, allocations: 8.484 kB / 0.8176 GB, free: 11.15 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.474e-05/0.0102, allocations: 12.5 kB / 0.8176 GB, free: 11.14 MB / 0.7761 GB Notification: Performance of SimCode: time 5.71e-07/0.0102, allocations: 0 / 0.8176 GB, free: 11.14 MB / 0.7761 GB Notification: Performance of Templates: time 0.002617/0.01282, allocations: 1.154 MB / 0.8187 GB, free: 10.02 MB / 0.7761 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.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.046227500773966]