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.001266/0.001266, allocations: 71.75 kB / 20.97 MB, free: 3.578 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.00119/0.00119, allocations: 169 kB / 24.28 MB, free: 280 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.9968/0.9968, allocations: 177.1 MB / 204.6 MB, free: 5.648 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.899/1.899, allocations: 377.8 MB / 0.6239 GB, free: 8.555 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.014e-06/2.014e-06, allocations: 0 / 0.8115 GB, free: 2.109 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.485e-05/2.686e-05, allocations: 2.312 kB / 0.8115 GB, free: 2.105 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.001412/0.001439, allocations: 0.6909 MB / 0.8122 GB, free: 1.434 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001092/0.002531, allocations: 1.133 MB / 0.8133 GB, free: 296 kB / 0.7605 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.245e-05/0.002583, allocations: 0 / 0.8133 GB, free: 296 kB / 0.7605 GB Notification: Performance of NFTyping.typeComponents: time 2.799e-05/0.002611, allocations: 3.938 kB / 0.8133 GB, free: 292 kB / 0.7605 GB Notification: Performance of NFTyping.typeBindings: time 6.682e-05/0.002678, allocations: 5.281 kB / 0.8133 GB, free: 288 kB / 0.7605 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002875/0.002965, allocations: 63.61 kB / 0.8134 GB, free: 224 kB / 0.7605 GB Notification: Performance of NFFlatten.flatten: time 0.0001039/0.003069, allocations: 63.84 kB / 0.8134 GB, free: 160 kB / 0.7605 GB Notification: Performance of NFFlatten.resolveConnections: time 9.482e-05/0.003164, allocations: 13.58 kB / 0.8134 GB, free: 148 kB / 0.7605 GB Notification: Performance of NFEvalConstants.evaluate: time 8.435e-05/0.003248, allocations: 39.95 kB / 0.8135 GB, free: 108 kB / 0.7605 GB Notification: Performance of NFSimplifyModel.simplify: time 4.858e-05/0.003297, allocations: 31.89 kB / 0.8135 GB, free: 76 kB / 0.7605 GB Notification: Performance of NFPackage.collectConstants: time 1.809e-05/0.003315, allocations: 4 kB / 0.8135 GB, free: 72 kB / 0.7605 GB Notification: Performance of NFFlatten.collectFunctions: time 6.176e-05/0.003377, allocations: 17.03 kB / 0.8135 GB, free: 56 kB / 0.7605 GB Notification: Performance of NFScalarize.scalarize: time 2.219e-05/0.003399, allocations: 19.92 kB / 0.8135 GB, free: 36 kB / 0.7605 GB Notification: Performance of NFVerifyModel.verify: time 3.354e-05/0.003433, allocations: 19.97 kB / 0.8136 GB, free: 16 kB / 0.7605 GB Notification: Performance of NFConvertDAE.convert: time 0.0001481/0.003581, allocations: 68.52 kB / 0.8136 GB, free: 15.95 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 2.445e-06/0.003583, allocations: 0 / 0.8136 GB, free: 15.95 MB / 0.7761 GB Notification: Performance of FrontEnd: time 1.163e-06/0.003584, allocations: 1.688 kB / 0.8136 GB, free: 15.95 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 4.308e-06/0.003589, allocations: 0 / 0.8136 GB, free: 15.95 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.0004734/0.004062, allocations: 404.4 kB / 0.814 GB, free: 15.52 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.541e-05/0.004097, allocations: 9.562 kB / 0.814 GB, free: 15.51 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001056/0.004203, allocations: 16.89 kB / 0.814 GB, free: 15.49 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.742e-05/0.00429, allocations: 120.5 kB / 0.8142 GB, free: 15.35 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.86e-05/0.004309, allocations: 384 / 0.8142 GB, free: 15.35 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.618e-05/0.004325, allocations: 13.75 kB / 0.8142 GB, free: 15.34 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000143/0.004468, allocations: 78.84 kB / 0.8142 GB, free: 15.25 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.294e-06/0.004475, allocations: 192 / 0.8142 GB, free: 15.25 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.086e-05/0.004486, allocations: 10.06 kB / 0.8143 GB, free: 15.24 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.365e-06/0.004495, allocations: 384 / 0.8143 GB, free: 15.24 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.255e-05/0.004547, allocations: 23.92 kB / 0.8143 GB, free: 15.22 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003852/0.004932, allocations: 291.7 kB / 0.8146 GB, free: 14.9 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001123/0.005045, allocations: 60.17 kB / 0.8146 GB, free: 14.83 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.465e-05/0.005079, allocations: 23.67 kB / 0.8146 GB, free: 14.8 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 1.801e-05/0.005097, allocations: 5.656 kB / 0.8146 GB, free: 14.8 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.649e-05/0.005194, allocations: 80.91 kB / 0.8147 GB, free: 14.7 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=10): time 1.242e-06/0.005195, allocations: 0 / 0.8147 GB, free: 14.7 MB / 0.7761 GB Notification: Performance of matching and sorting (n=10): time 0.0002311/0.005426, allocations: 117.8 kB / 0.8148 GB, free: 14.58 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.109e-05/0.005467, allocations: 61.94 kB / 0.8149 GB, free: 14.51 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.758e-05/0.005545, allocations: 165.9 kB / 0.815 GB, free: 14.33 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 1.754e-05/0.005562, allocations: 37.69 kB / 0.8151 GB, free: 14.29 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 4.734e-05/0.00561, allocations: 135.1 kB / 0.8152 GB, free: 14.15 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 2.396e-05/0.005634, allocations: 23.8 kB / 0.8152 GB, free: 14.12 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.303e-05/0.005677, allocations: 39.36 kB / 0.8153 GB, free: 14.08 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001069/0.005784, allocations: 0.4884 MB / 0.8157 GB, free: 13.58 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.497e-05/0.005818, allocations: 16.7 kB / 0.8158 GB, free: 13.56 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.886e-05/0.005867, allocations: 53.72 kB / 0.8158 GB, free: 13.5 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.418e-05/0.005962, allocations: 69.12 kB / 0.8159 GB, free: 13.42 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.005963, allocations: 112 / 0.8159 GB, free: 13.42 MB / 0.7761 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001303/0.006094, allocations: 105.5 kB / 0.816 GB, free: 13.31 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.263e-05/0.006106, allocations: 12.53 kB / 0.816 GB, free: 13.3 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.02e-06/0.006111, allocations: 0.75 kB / 0.816 GB, free: 13.3 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.198e-05/0.006123, allocations: 0 / 0.816 GB, free: 13.3 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.359e-05/0.006217, allocations: 28.86 kB / 0.816 GB, free: 13.27 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.32e-06/0.006222, allocations: 0 / 0.816 GB, free: 13.27 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.331e-05/0.006255, allocations: 13.14 kB / 0.816 GB, free: 13.26 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.336e-06/0.006264, allocations: 4 kB / 0.816 GB, free: 13.26 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 7.599e-05/0.00634, allocations: 169.6 kB / 0.8162 GB, free: 13.08 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.464e-05/0.006354, allocations: 15.89 kB / 0.8162 GB, free: 13.07 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001501/0.006505, allocations: 110 kB / 0.8163 GB, free: 12.95 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.305e-06/0.006507, allocations: 0.875 kB / 0.8163 GB, free: 12.95 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.915e-06/0.00651, allocations: 4 kB / 0.8163 GB, free: 12.95 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.006513, allocations: 0.8438 kB / 0.8163 GB, free: 12.95 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002601/0.006773, allocations: 369.3 kB / 0.8167 GB, free: 12.55 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.006775, allocations: 2.125 kB / 0.8167 GB, free: 12.55 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.481e-05/0.006809, allocations: 8 kB / 0.8167 GB, free: 12.54 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.463e-06/0.006811, allocations: 3.938 kB / 0.8167 GB, free: 12.54 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.736e-06/0.00682, allocations: 3.984 kB / 0.8167 GB, free: 12.53 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.933e-06/0.006821, allocations: 0 / 0.8167 GB, free: 12.53 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.006822, allocations: 0 / 0.8167 GB, free: 12.53 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001631/0.006986, allocations: 256.3 kB / 0.8169 GB, free: 12.26 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 8.345e-06/0.006994, allocations: 10.55 kB / 0.8169 GB, free: 12.25 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.705e-05/0.007011, allocations: 7.984 kB / 0.817 GB, free: 12.25 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.843e-05/0.007059, allocations: 4 kB / 0.817 GB, free: 12.24 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.829e-05/0.007098, allocations: 11.97 kB / 0.817 GB, free: 12.23 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.324e-06/0.007105, allocations: 4 kB / 0.817 GB, free: 12.23 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 3.55e-05/0.00714, allocations: 131.2 kB / 0.8171 GB, free: 12.1 MB / 0.7761 GB Notification: Performance of sort global known variables: time 6e-08/0.007141, allocations: 0 / 0.8171 GB, free: 12.1 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0001707/0.007311, allocations: 17.69 kB / 0.8171 GB, free: 12.08 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.0001258/0.007437, allocations: 109.8 kB / 0.8172 GB, free: 11.97 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0001357/0.007573, allocations: 72.08 kB / 0.8173 GB, free: 11.89 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.007574, allocations: 0.5625 kB / 0.8173 GB, free: 11.89 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 4.511e-05/0.007619, allocations: 31.61 kB / 0.8173 GB, free: 11.86 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002025/0.007822, allocations: 18.72 kB / 0.8173 GB, free: 11.84 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004761/0.008298, allocations: 164.3 kB / 0.8175 GB, free: 11.66 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.682e-05/0.008335, allocations: 63.2 kB / 0.8176 GB, free: 11.57 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 2.722e-05/0.008362, allocations: 4.5 kB / 0.8176 GB, free: 11.57 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.555e-05/0.008388, allocations: 13.31 kB / 0.8176 GB, free: 11.55 MB / 0.7761 GB Notification: Performance of SimCode: time 9.51e-07/0.008388, allocations: 0 / 0.8176 GB, free: 11.55 MB / 0.7761 GB Notification: Performance of Templates: time 0.002815/0.0112, allocations: 1.105 MB / 0.8187 GB, free: 10.5 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.158158618025482]