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.002515/0.002515, allocations: 83.69 kB / 20.23 MB, free: 4.191 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.003209/0.003209, allocations: 157.3 kB / 23.55 MB, free: 0.875 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.587/1.587, allocations: 177.1 MB / 203.9 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 178] 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 3.048/3.048, allocations: 377.8 MB / 0.6232 GB, free: 8.555 MB / 0.5886 GB " [Timeout remaining time 176] 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 1.844e-06/1.844e-06, allocations: 0 / 0.8108 GB, free: 2.137 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.601e-05/2.785e-05, allocations: 3.406 kB / 0.8108 GB, free: 2.133 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.002054/0.002082, allocations: 0.6904 MB / 0.8115 GB, free: 1.469 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001643/0.003725, allocations: 1.105 MB / 0.8125 GB, free: 360 kB / 0.7605 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.363e-05/0.003778, allocations: 4 kB / 0.8125 GB, free: 356 kB / 0.7605 GB Notification: Performance of NFTyping.typeComponents: time 2.819e-05/0.003807, allocations: 4.844 kB / 0.8125 GB, free: 352 kB / 0.7605 GB Notification: Performance of NFTyping.typeBindings: time 9.299e-05/0.003899, allocations: 11.86 kB / 0.8126 GB, free: 340 kB / 0.7605 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003058/0.004205, allocations: 52.41 kB / 0.8126 GB, free: 288 kB / 0.7605 GB Notification: Performance of NFFlatten.flatten: time 0.0001359/0.004341, allocations: 76.64 kB / 0.8127 GB, free: 212 kB / 0.7605 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001053/0.004446, allocations: 4 kB / 0.8127 GB, free: 208 kB / 0.7605 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001084/0.004555, allocations: 35.97 kB / 0.8127 GB, free: 172 kB / 0.7605 GB Notification: Performance of NFSimplifyModel.simplify: time 9.177e-05/0.004647, allocations: 33.03 kB / 0.8128 GB, free: 140 kB / 0.7605 GB Notification: Performance of NFPackage.collectConstants: time 2.59e-05/0.004673, allocations: 8 kB / 0.8128 GB, free: 132 kB / 0.7605 GB Notification: Performance of NFFlatten.collectFunctions: time 7.558e-05/0.004748, allocations: 19.94 kB / 0.8128 GB, free: 112 kB / 0.7605 GB Notification: Performance of NFScalarize.scalarize: time 3.144e-05/0.00478, allocations: 17.47 kB / 0.8128 GB, free: 96 kB / 0.7605 GB Notification: Performance of NFVerifyModel.verify: time 4.687e-05/0.004826, allocations: 23.92 kB / 0.8128 GB, free: 72 kB / 0.7605 GB Notification: Performance of NFConvertDAE.convert: time 0.000217/0.005043, allocations: 91.66 kB / 0.8129 GB, free: 15.98 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.005046, allocations: 0 / 0.8129 GB, free: 15.98 MB / 0.7761 GB Notification: Performance of FrontEnd: time 9.42e-07/0.005047, allocations: 1.531 kB / 0.8129 GB, free: 15.98 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 4.939e-06/0.005052, allocations: 0 / 0.8129 GB, free: 15.98 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.0007396/0.005792, allocations: 410 kB / 0.8133 GB, free: 15.54 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.799e-05/0.00583, allocations: 8.031 kB / 0.8133 GB, free: 15.54 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001247/0.005955, allocations: 16.83 kB / 0.8133 GB, free: 15.52 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001308/0.006086, allocations: 108.6 kB / 0.8134 GB, free: 15.39 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.566e-05/0.006111, allocations: 8.375 kB / 0.8134 GB, free: 15.38 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.842e-05/0.00613, allocations: 9.672 kB / 0.8134 GB, free: 15.37 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002128/0.006342, allocations: 74.17 kB / 0.8135 GB, free: 15.29 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.454e-05/0.006357, allocations: 4.172 kB / 0.8135 GB, free: 15.29 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.369e-05/0.006371, allocations: 4.906 kB / 0.8135 GB, free: 15.29 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.158e-06/0.006375, allocations: 1.562 kB / 0.8135 GB, free: 15.29 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001585/0.006533, allocations: 43.86 kB / 0.8136 GB, free: 15.24 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006017/0.007135, allocations: 304.2 kB / 0.8139 GB, free: 14.91 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002171/0.007352, allocations: 81.06 kB / 0.8139 GB, free: 14.82 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001047/0.007457, allocations: 35.8 kB / 0.814 GB, free: 14.78 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 2.548e-05/0.007482, allocations: 4 kB / 0.814 GB, free: 14.78 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001984/0.007681, allocations: 97.44 kB / 0.8141 GB, free: 14.67 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=10): time 1.193e-06/0.007682, allocations: 0 / 0.8141 GB, free: 14.67 MB / 0.7761 GB Notification: Performance of matching and sorting (n=10): time 0.0004723/0.008154, allocations: 162.2 kB / 0.8142 GB, free: 14.5 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.479e-05/0.008219, allocations: 52.84 kB / 0.8143 GB, free: 14.44 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001532/0.008372, allocations: 173.9 kB / 0.8144 GB, free: 14.25 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 3.036e-05/0.008403, allocations: 29.7 kB / 0.8145 GB, free: 14.22 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 9.954e-05/0.008502, allocations: 143.7 kB / 0.8146 GB, free: 14.07 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 3.766e-05/0.00854, allocations: 23.84 kB / 0.8146 GB, free: 14.05 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.631e-05/0.008616, allocations: 48.33 kB / 0.8147 GB, free: 13.99 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0002734/0.008889, allocations: 0.4923 MB / 0.8151 GB, free: 13.49 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001035/0.008993, allocations: 35.92 kB / 0.8152 GB, free: 13.45 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001448/0.009138, allocations: 67.78 kB / 0.8152 GB, free: 13.38 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002149/0.009353, allocations: 93.02 kB / 0.8153 GB, free: 13.27 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.009355, allocations: 0 / 0.8153 GB, free: 13.27 MB / 0.7761 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003075/0.009662, allocations: 146.3 kB / 0.8155 GB, free: 13.12 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.697e-05/0.009679, allocations: 7.938 kB / 0.8155 GB, free: 13.12 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.326e-06/0.009688, allocations: 4.938 kB / 0.8155 GB, free: 13.11 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.765e-05/0.009705, allocations: 0 / 0.8155 GB, free: 13.11 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001353/0.009841, allocations: 21.33 kB / 0.8155 GB, free: 13.09 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.161e-06/0.009847, allocations: 4 kB / 0.8155 GB, free: 13.09 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.879e-05/0.009906, allocations: 8.25 kB / 0.8155 GB, free: 13.08 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.481e-05/0.00992, allocations: 4.969 kB / 0.8155 GB, free: 13.08 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.0001625/0.01008, allocations: 172.5 kB / 0.8157 GB, free: 12.9 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.404e-05/0.01012, allocations: 22.2 kB / 0.8157 GB, free: 12.88 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003273/0.01044, allocations: 134 kB / 0.8158 GB, free: 12.74 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.01045, allocations: 3.984 kB / 0.8158 GB, free: 12.74 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.01045, allocations: 0 / 0.8158 GB, free: 12.74 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.01046, allocations: 0 / 0.8158 GB, free: 12.74 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005509/0.01101, allocations: 404.7 kB / 0.8162 GB, free: 12.3 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.01101, allocations: 0 / 0.8162 GB, free: 12.3 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.613e-05/0.01108, allocations: 7.984 kB / 0.8162 GB, free: 12.3 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.39e-06/0.01108, allocations: 4 kB / 0.8162 GB, free: 12.29 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.158e-05/0.01109, allocations: 0 / 0.8162 GB, free: 12.29 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.01109, allocations: 0 / 0.8162 GB, free: 12.29 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.01109, allocations: 0 / 0.8162 GB, free: 12.29 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004123/0.01151, allocations: 287.8 kB / 0.8165 GB, free: 11.99 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 1.208e-05/0.01152, allocations: 3.953 kB / 0.8165 GB, free: 11.99 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.471e-05/0.01154, allocations: 4.812 kB / 0.8165 GB, free: 11.98 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.488e-05/0.01164, allocations: 12.44 kB / 0.8165 GB, free: 11.97 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.585e-05/0.01169, allocations: 3.984 kB / 0.8165 GB, free: 11.97 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.676e-05/0.01171, allocations: 8.547 kB / 0.8165 GB, free: 11.96 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 8.768e-05/0.0118, allocations: 127.8 kB / 0.8167 GB, free: 11.84 MB / 0.7761 GB Notification: Performance of sort global known variables: time 9e-08/0.0118, allocations: 0 / 0.8167 GB, free: 11.84 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0002964/0.0121, allocations: 21.28 kB / 0.8167 GB, free: 11.82 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.0002494/0.01234, allocations: 107.2 kB / 0.8168 GB, free: 11.7 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0003362/0.01268, allocations: 97.33 kB / 0.8169 GB, free: 11.61 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.01268, allocations: 0 / 0.8169 GB, free: 11.61 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0001432/0.01283, allocations: 51.66 kB / 0.8169 GB, free: 11.55 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003304/0.01316, allocations: 19.83 kB / 0.817 GB, free: 11.54 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005948/0.01375, allocations: 175.9 kB / 0.8171 GB, free: 11.34 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001158/0.01387, allocations: 75.19 kB / 0.8172 GB, free: 11.24 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 6.066e-05/0.01393, allocations: 8.438 kB / 0.8172 GB, free: 11.23 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.319e-05/0.01398, allocations: 16.48 kB / 0.8172 GB, free: 11.22 MB / 0.7761 GB Notification: Performance of SimCode: time 1.162e-06/0.01398, allocations: 4 kB / 0.8172 GB, free: 11.21 MB / 0.7761 GB Notification: Performance of Templates: time 0.005495/0.01948, allocations: 1.087 MB / 0.8183 GB, free: 10.17 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.08327989501413]