Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001376/0.001376, allocations: 111.8 kB / 16.38 MB, free: 6.023 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002027/0.002027, allocations: 192.4 kB / 17.31 MB, free: 5.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.696/1.696, allocations: 205.1 MB / 223.2 MB, free: 12.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.827/1.827, allocations: 292.3 MB / 0.5496 GB, free: 17.62 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001698/0.001698, allocations: 71.91 kB / 0.6729 GB, free: 5.844 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3371/0.3389, allocations: 114.6 MB / 0.7848 GB, free: 3.18 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.003873/0.3428, allocations: 0.6972 MB / 0.7855 GB, free: 2.48 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.00212/0.345, allocations: 1.063 MB / 0.7865 GB, free: 1.402 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001187/0.3451, allocations: 0 / 0.7865 GB, free: 1.402 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 5.281e-05/0.3453, allocations: 3.938 kB / 0.7865 GB, free: 1.398 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.000139/0.3454, allocations: 7.922 kB / 0.7865 GB, free: 1.391 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004975/0.3459, allocations: 47.83 kB / 0.7866 GB, free: 1.344 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.000188/0.3461, allocations: 75.81 kB / 0.7867 GB, free: 1.27 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001458/0.3463, allocations: 8 kB / 0.7867 GB, free: 1.262 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001415/0.3464, allocations: 31.92 kB / 0.7867 GB, free: 1.23 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 9.506e-05/0.3465, allocations: 27.91 kB / 0.7867 GB, free: 1.203 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 2.721e-05/0.3466, allocations: 4 kB / 0.7867 GB, free: 1.199 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001279/0.3467, allocations: 31.91 kB / 0.7868 GB, free: 1.168 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 3.878e-05/0.3468, allocations: 11.92 kB / 0.7868 GB, free: 1.156 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 8.065e-05/0.3468, allocations: 31.86 kB / 0.7868 GB, free: 1.125 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0002556/0.3471, allocations: 71.81 kB / 0.7869 GB, free: 1.055 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 6.903e-06/0.3471, allocations: 4 kB / 0.7869 GB, free: 1.051 MB / 0.6544 GB Notification: Performance of FrontEnd: time 3.607e-06/0.3471, allocations: 0 / 0.7869 GB, free: 1.051 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 1.342e-05/0.3472, allocations: 0 / 0.7869 GB, free: 1.051 MB / 0.6544 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.0008433/0.348, allocations: 379.3 kB / 0.7872 GB, free: 0.6289 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 6.331e-05/0.3481, allocations: 15.97 kB / 0.7873 GB, free: 0.6133 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001003/0.3482, allocations: 12.83 kB / 0.7873 GB, free: 0.6016 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001975/0.3484, allocations: 168.3 kB / 0.7874 GB, free: 408 kB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.04e-05/0.3484, allocations: 12.38 kB / 0.7874 GB, free: 396 kB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.362e-05/0.3485, allocations: 4.375 kB / 0.7874 GB, free: 392 kB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002663/0.3488, allocations: 82.14 kB / 0.7875 GB, free: 304 kB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.173e-05/0.3488, allocations: 192 / 0.7875 GB, free: 304 kB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.806e-05/0.3488, allocations: 7.938 kB / 0.7875 GB, free: 296 kB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.623e-06/0.3488, allocations: 4 kB / 0.7875 GB, free: 292 kB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002139/0.349, allocations: 47.95 kB / 0.7876 GB, free: 244 kB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6094/0.9584, allocations: 311.8 kB / 0.7879 GB, free: 48.66 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002413/0.9587, allocations: 86.25 kB / 0.788 GB, free: 48.64 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001163/0.9589, allocations: 42.84 kB / 0.788 GB, free: 48.63 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.89e-05/0.9589, allocations: 2.938 kB / 0.788 GB, free: 48.63 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002264/0.9591, allocations: 93.03 kB / 0.7881 GB, free: 48.58 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=10): time 3.306e-06/0.9591, allocations: 0 / 0.7881 GB, free: 48.58 MB / 0.6544 GB Notification: Performance of matching and sorting (n=10): time 0.0005177/0.9597, allocations: 169.5 kB / 0.7882 GB, free: 48.55 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.887e-05/0.9597, allocations: 57.59 kB / 0.7883 GB, free: 48.49 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.775e-05/0.9598, allocations: 109.1 kB / 0.7884 GB, free: 48.39 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 2.064e-05/0.9598, allocations: 35.52 kB / 0.7884 GB, free: 48.36 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 4.08e-05/0.9599, allocations: 87.81 kB / 0.7885 GB, free: 48.27 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 3.329e-05/0.9599, allocations: 24.61 kB / 0.7885 GB, free: 48.27 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.485e-05/0.96, allocations: 33.09 kB / 0.7886 GB, free: 48.25 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 6.526e-05/0.9601, allocations: 320.2 kB / 0.7889 GB, free: 47.94 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001207/0.9602, allocations: 37.23 kB / 0.7889 GB, free: 47.94 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000121/0.9603, allocations: 64 kB / 0.789 GB, free: 47.92 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002231/0.9605, allocations: 107.1 kB / 0.7891 GB, free: 47.89 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.9606, allocations: 0.9375 kB / 0.7891 GB, free: 47.89 MB / 0.6544 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002861/0.9609, allocations: 139.5 kB / 0.7892 GB, free: 47.86 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 2.131e-05/0.9609, allocations: 9.25 kB / 0.7892 GB, free: 47.86 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.9609, allocations: 2.688 kB / 0.7892 GB, free: 47.86 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.783e-05/0.9609, allocations: 0.7656 kB / 0.7892 GB, free: 47.86 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001358/0.9611, allocations: 27.47 kB / 0.7893 GB, free: 47.86 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.286e-06/0.9611, allocations: 5.625 kB / 0.7893 GB, free: 47.86 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.914e-05/0.9612, allocations: 4.875 kB / 0.7893 GB, free: 47.86 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.466e-05/0.9612, allocations: 5.625 kB / 0.7893 GB, free: 47.86 MB / 0.6544 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.603e-05/0.9613, allocations: 126.5 kB / 0.7894 GB, free: 47.74 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.448e-05/0.9613, allocations: 13.03 kB / 0.7894 GB, free: 47.73 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003149/0.9616, allocations: 145.7 kB / 0.7895 GB, free: 47.7 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.518e-06/0.9616, allocations: 2.906 kB / 0.7895 GB, free: 47.7 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.9616, allocations: 0 / 0.7895 GB, free: 47.7 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 2.681e-05/0.9616, allocations: 84.02 kB / 0.7896 GB, free: 47.61 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.36e-05/0.9617, allocations: 4.688 kB / 0.7896 GB, free: 47.61 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.697e-05/0.9618, allocations: 13.38 kB / 0.7896 GB, free: 47.61 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.698e-05/0.9618, allocations: 8.516 kB / 0.7897 GB, free: 47.61 MB / 0.6544 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.000349/0.9622, allocations: 222.1 kB / 0.7899 GB, free: 47.5 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003435/0.9625, allocations: 313.9 kB / 0.7902 GB, free: 47.29 MB / 0.6544 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.00013/0.9627, allocations: 46.34 kB / 0.7902 GB, free: 47.29 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 3.058e-05/0.9627, allocations: 83.75 kB / 0.7903 GB, free: 47.22 MB / 0.6544 GB Notification: Performance of Backend: time 6.12e-07/0.9627, allocations: 1.875 kB / 0.7903 GB, free: 47.22 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0005168/0.9632, allocations: 146 kB / 0.7904 GB, free: 47.16 MB / 0.6544 GB Notification: Performance of SimCode: time 0.0005359/0.9638, allocations: 0.588 MB / 0.791 GB, free: 46.58 MB / 0.6544 GB Notification: Performance of Templates: time 0.003894/0.9677, allocations: 1.129 MB / 0.7921 GB, free: 46.57 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.makefile (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.sim & ./Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1)