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.001379/0.001379, allocations: 80.3 kB / 21.47 MB, free: 3.027 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.001025/0.001025, allocations: 172.1 kB / 24.87 MB, free: 8.879 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.009/1.009, allocations: 177.1 MB / 205.3 MB, free: 5.527 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.95/1.95, allocations: 377.9 MB / 0.6247 GB, free: 8.406 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.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 4.659e-06/4.659e-06, allocations: 0.6562 kB / 0.8128 GB, free: 1.473 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 4.91e-05/5.376e-05, allocations: 6.25 kB / 0.8128 GB, free: 1.465 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.002567/0.002621, allocations: 0.7015 MB / 0.8134 GB, free: 0.7852 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001697/0.004318, allocations: 1.124 MB / 0.8145 GB, free: 15.65 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.368e-05/0.004381, allocations: 0.625 kB / 0.8145 GB, free: 15.65 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 3.308e-05/0.004414, allocations: 5.344 kB / 0.8145 GB, free: 15.64 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 9.196e-05/0.004506, allocations: 15.84 kB / 0.8146 GB, free: 15.63 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003455/0.004852, allocations: 51.77 kB / 0.8146 GB, free: 15.58 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.000132/0.004984, allocations: 72.92 kB / 0.8147 GB, free: 15.51 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 9.636e-05/0.00508, allocations: 7.984 kB / 0.8147 GB, free: 15.5 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001102/0.00519, allocations: 43.91 kB / 0.8147 GB, free: 15.46 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 6.4e-05/0.005254, allocations: 28.58 kB / 0.8148 GB, free: 15.43 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 2.117e-05/0.005276, allocations: 8 kB / 0.8148 GB, free: 15.42 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 7.908e-05/0.005355, allocations: 20.89 kB / 0.8148 GB, free: 15.4 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 3.021e-05/0.005385, allocations: 15.97 kB / 0.8148 GB, free: 15.39 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 3.687e-05/0.005422, allocations: 23.92 kB / 0.8148 GB, free: 15.36 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0001633/0.005585, allocations: 64.44 kB / 0.8149 GB, free: 15.3 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 2.955e-06/0.005588, allocations: 1.25 kB / 0.8149 GB, free: 15.3 MB / 0.7761 GB Notification: Performance of FrontEnd: time 1.062e-06/0.005589, allocations: 0 / 0.8149 GB, free: 15.3 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 4.679e-06/0.005594, allocations: 0 / 0.8149 GB, free: 15.3 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.0005618/0.006156, allocations: 409.4 kB / 0.8153 GB, free: 14.86 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 4.384e-05/0.006199, allocations: 8.781 kB / 0.8153 GB, free: 14.86 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001252/0.006325, allocations: 12.89 kB / 0.8153 GB, free: 14.84 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.863e-05/0.006423, allocations: 117.4 kB / 0.8154 GB, free: 14.7 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.232e-05/0.006446, allocations: 8.375 kB / 0.8154 GB, free: 14.7 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.426e-05/0.00646, allocations: 4.375 kB / 0.8154 GB, free: 14.69 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001653/0.006625, allocations: 72.17 kB / 0.8155 GB, free: 14.61 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.109e-05/0.006636, allocations: 4.172 kB / 0.8155 GB, free: 14.61 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.195e-05/0.006648, allocations: 4.375 kB / 0.8155 GB, free: 14.61 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.811e-06/0.006654, allocations: 2.344 kB / 0.8155 GB, free: 14.61 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.481e-05/0.006699, allocations: 15.92 kB / 0.8155 GB, free: 14.59 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004139/0.007113, allocations: 284.2 kB / 0.8158 GB, free: 14.29 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001156/0.007228, allocations: 60.02 kB / 0.8158 GB, free: 14.21 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.035e-05/0.007259, allocations: 15.69 kB / 0.8159 GB, free: 14.2 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 1.85e-05/0.007277, allocations: 4.531 kB / 0.8159 GB, free: 14.19 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001103/0.007387, allocations: 77.94 kB / 0.8159 GB, free: 14.1 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=10): time 2.254e-06/0.00739, allocations: 0 / 0.8159 GB, free: 14.1 MB / 0.7761 GB Notification: Performance of matching and sorting (n=10): time 0.0002509/0.007641, allocations: 111.2 kB / 0.816 GB, free: 13.99 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.382e-05/0.007684, allocations: 59.39 kB / 0.8161 GB, free: 13.92 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.461e-05/0.007779, allocations: 169.9 kB / 0.8163 GB, free: 13.73 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 2.005e-05/0.007799, allocations: 29.7 kB / 0.8163 GB, free: 13.7 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 6.134e-05/0.00786, allocations: 135.1 kB / 0.8164 GB, free: 13.56 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 3.295e-05/0.007893, allocations: 33.3 kB / 0.8165 GB, free: 13.53 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.615e-05/0.007949, allocations: 31.36 kB / 0.8165 GB, free: 13.49 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001494/0.008099, allocations: 0.4923 MB / 0.817 GB, free: 12.98 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.22e-05/0.008131, allocations: 11.98 kB / 0.817 GB, free: 12.97 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.766e-05/0.008189, allocations: 48.62 kB / 0.817 GB, free: 12.91 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.839e-05/0.008277, allocations: 62.97 kB / 0.8171 GB, free: 12.84 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.00828, allocations: 0 / 0.8171 GB, free: 12.84 MB / 0.7761 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001683/0.008448, allocations: 102.5 kB / 0.8172 GB, free: 12.73 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.61e-05/0.008464, allocations: 5.688 kB / 0.8172 GB, free: 12.73 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.488e-06/0.008474, allocations: 7.922 kB / 0.8172 GB, free: 12.72 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.253e-05/0.008486, allocations: 4 kB / 0.8172 GB, free: 12.72 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001015/0.008588, allocations: 19.94 kB / 0.8172 GB, free: 12.7 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.781e-06/0.008593, allocations: 8.609 kB / 0.8172 GB, free: 12.69 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.399e-05/0.008627, allocations: 8 kB / 0.8172 GB, free: 12.68 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.316e-06/0.008636, allocations: 0.6875 kB / 0.8172 GB, free: 12.68 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 0.0002938/0.00893, allocations: 165.2 kB / 0.8174 GB, free: 12.51 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.557e-05/0.008945, allocations: 13.02 kB / 0.8174 GB, free: 12.5 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001711/0.009116, allocations: 110.2 kB / 0.8175 GB, free: 12.39 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.969e-06/0.009121, allocations: 4 kB / 0.8175 GB, free: 12.38 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.009126, allocations: 4.531 kB / 0.8175 GB, free: 12.38 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.74e-06/0.009131, allocations: 0 / 0.8175 GB, free: 12.38 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003478/0.009479, allocations: 343.2 kB / 0.8178 GB, free: 12.01 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.995e-06/0.009482, allocations: 0 / 0.8178 GB, free: 12.01 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.14e-05/0.009524, allocations: 8 kB / 0.8179 GB, free: 12 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.098e-06/0.009528, allocations: 5.094 kB / 0.8179 GB, free: 12 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.124e-05/0.009539, allocations: 3.984 kB / 0.8179 GB, free: 12 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.879e-06/0.009544, allocations: 4 kB / 0.8179 GB, free: 11.99 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.009545, allocations: 0.8125 kB / 0.8179 GB, free: 11.99 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000173/0.009718, allocations: 247.8 kB / 0.8181 GB, free: 11.73 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 9.478e-06/0.009727, allocations: 4.891 kB / 0.8181 GB, free: 11.73 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.053e-05/0.009748, allocations: 11.94 kB / 0.8181 GB, free: 11.71 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.294e-05/0.009801, allocations: 13.27 kB / 0.8181 GB, free: 11.7 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.232e-05/0.009843, allocations: 3.984 kB / 0.8181 GB, free: 11.7 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.156e-05/0.009855, allocations: 4 kB / 0.8181 GB, free: 11.7 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 5.201e-05/0.009907, allocations: 131.2 kB / 0.8183 GB, free: 11.57 MB / 0.7761 GB Notification: Performance of sort global known variables: time 5e-08/0.009907, allocations: 0.75 kB / 0.8183 GB, free: 11.57 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0001821/0.01009, allocations: 16 kB / 0.8183 GB, free: 11.55 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.000166/0.01025, allocations: 109.1 kB / 0.8184 GB, free: 11.44 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0001477/0.0104, allocations: 63.56 kB / 0.8184 GB, free: 11.37 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.0104, allocations: 0 / 0.8184 GB, free: 11.37 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 4.26e-05/0.01045, allocations: 28.48 kB / 0.8185 GB, free: 11.34 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002425/0.01069, allocations: 20.23 kB / 0.8185 GB, free: 11.32 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005547/0.01124, allocations: 166.8 kB / 0.8186 GB, free: 11.13 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.164e-05/0.0113, allocations: 63.22 kB / 0.8187 GB, free: 11.05 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 3.583e-05/0.01133, allocations: 8.484 kB / 0.8187 GB, free: 11.04 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.064e-05/0.0114, allocations: 82.19 kB / 0.8188 GB, free: 10.96 MB / 0.7761 GB Notification: Performance of SimCode: time 1.122e-06/0.0114, allocations: 0.625 kB / 0.8188 GB, free: 10.96 MB / 0.7761 GB Notification: Performance of Templates: time 0.003889/0.01529, allocations: 1.198 MB / 0.82 GB, free: 9.805 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.243606600910425]