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.001354/0.001354, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001235/0.001235, allocations: 194.7 kB / 16.25 MB, free: 6.621 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.643/1.643, allocations: 205.1 MB / 222.1 MB, free: 4.695 MB / 174.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.791/1.791, allocations: 292.3 MB / 0.5485 GB, free: 13.64 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.001436/0.001437, allocations: 67.91 kB / 0.671 GB, free: 26.36 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3325/0.3339, allocations: 114.6 MB / 0.7829 GB, free: 13.88 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.002781/0.3368, allocations: 0.7533 MB / 0.7836 GB, free: 13.13 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001873/0.3387, allocations: 1.072 MB / 0.7846 GB, free: 12.04 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.316e-05/0.3388, allocations: 0 / 0.7846 GB, free: 12.04 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 4.877e-05/0.3389, allocations: 3.938 kB / 0.7847 GB, free: 12.04 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 8.691e-05/0.339, allocations: 8 kB / 0.7847 GB, free: 12.03 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003773/0.3394, allocations: 39.89 kB / 0.7847 GB, free: 11.99 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001399/0.3395, allocations: 71.78 kB / 0.7848 GB, free: 11.92 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001451/0.3397, allocations: 8 kB / 0.7848 GB, free: 11.91 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 9.952e-05/0.3398, allocations: 31.91 kB / 0.7848 GB, free: 11.88 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 8.794e-05/0.3399, allocations: 27.91 kB / 0.7848 GB, free: 11.86 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.351e-05/0.3399, allocations: 8 kB / 0.7848 GB, free: 11.85 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 9.234e-05/0.34, allocations: 19.98 kB / 0.7849 GB, free: 11.83 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.33e-05/0.34, allocations: 23.92 kB / 0.7849 GB, free: 11.8 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 5.235e-05/0.3401, allocations: 23.91 kB / 0.7849 GB, free: 11.78 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002003/0.3403, allocations: 75.75 kB / 0.785 GB, free: 11.71 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 8.836e-06/0.3403, allocations: 4 kB / 0.785 GB, free: 11.7 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.134e-06/0.3403, allocations: 0 / 0.785 GB, free: 11.7 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 8.145e-06/0.3404, allocations: 0 / 0.785 GB, free: 11.7 MB / 0.6075 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.0008413/0.3412, allocations: 383.5 kB / 0.7853 GB, free: 11.28 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.628e-05/0.3413, allocations: 12.03 kB / 0.7854 GB, free: 11.27 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.66e-05/0.3413, allocations: 4.938 kB / 0.7854 GB, free: 11.26 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001695/0.3415, allocations: 172.2 kB / 0.7855 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.284e-05/0.3416, allocations: 8.375 kB / 0.7855 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.252e-05/0.3416, allocations: 4.375 kB / 0.7855 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003174/0.3419, allocations: 86.14 kB / 0.7856 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.288e-05/0.342, allocations: 192 / 0.7856 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.929e-05/0.342, allocations: 7.938 kB / 0.7856 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.143e-05/0.342, allocations: 3.938 kB / 0.7856 GB, free: 10.94 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002563/0.3423, allocations: 55.95 kB / 0.7857 GB, free: 10.89 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006287/0.3429, allocations: 308.8 kB / 0.786 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002489/0.3432, allocations: 86.47 kB / 0.7861 GB, free: 10.44 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000148/0.3433, allocations: 40.84 kB / 0.7861 GB, free: 10.4 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.631e-05/0.3434, allocations: 0 / 0.7861 GB, free: 10.4 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003543/0.3437, allocations: 99.47 kB / 0.7862 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=10): time 1.473e-06/0.3438, allocations: 0 / 0.7862 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10): time 0.0006187/0.3444, allocations: 177.5 kB / 0.7864 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.218e-05/0.3445, allocations: 55.41 kB / 0.7864 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001179/0.3446, allocations: 105.8 kB / 0.7865 GB, free: 9.93 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.373e-05/0.3446, allocations: 33.7 kB / 0.7865 GB, free: 9.891 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.014e-05/0.3447, allocations: 88.36 kB / 0.7866 GB, free: 9.797 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.535e-05/0.3448, allocations: 23.66 kB / 0.7867 GB, free: 9.773 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.769e-05/0.3448, allocations: 33.7 kB / 0.7867 GB, free: 9.734 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.000131/0.345, allocations: 318.8 kB / 0.787 GB, free: 9.414 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001467/0.3451, allocations: 35.98 kB / 0.787 GB, free: 9.379 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001908/0.3453, allocations: 62.53 kB / 0.7871 GB, free: 9.309 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003038/0.3456, allocations: 110.5 kB / 0.7872 GB, free: 9.191 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.3457, allocations: 3.938 kB / 0.7872 GB, free: 9.188 MB / 0.6075 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004217/0.3461, allocations: 137.5 kB / 0.7873 GB, free: 9.047 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.014e-05/0.3461, allocations: 4 kB / 0.7873 GB, free: 9.043 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.3461, allocations: 0 / 0.7873 GB, free: 9.043 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.053e-05/0.3462, allocations: 4 kB / 0.7873 GB, free: 9.039 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001773/0.3463, allocations: 19.98 kB / 0.7874 GB, free: 9.02 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.266e-06/0.3464, allocations: 4 kB / 0.7874 GB, free: 9.016 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.782e-05/0.3465, allocations: 20.27 kB / 0.7874 GB, free: 8.996 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.725e-05/0.3465, allocations: 11.92 kB / 0.7874 GB, free: 8.984 MB / 0.6075 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.0001437/0.3466, allocations: 125.8 kB / 0.7875 GB, free: 8.852 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.82e-05/0.3467, allocations: 3.906 kB / 0.7875 GB, free: 8.848 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004355/0.3471, allocations: 149.9 kB / 0.7877 GB, free: 8.695 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/0.3471, allocations: 0 / 0.7877 GB, free: 8.695 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.684e-06/0.3472, allocations: 4 kB / 0.7877 GB, free: 8.691 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.3472, allocations: 0 / 0.7877 GB, free: 8.691 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006932/0.3479, allocations: 410.4 kB / 0.788 GB, free: 8.234 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.009e-06/0.3479, allocations: 0 / 0.788 GB, free: 8.234 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.884e-05/0.348, allocations: 15.94 kB / 0.7881 GB, free: 8.219 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.709e-06/0.348, allocations: 3.984 kB / 0.7881 GB, free: 8.215 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.376e-05/0.348, allocations: 0 / 0.7881 GB, free: 8.215 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.348, allocations: 0 / 0.7881 GB, free: 8.215 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.177e-05/0.348, allocations: 4.25 kB / 0.7881 GB, free: 8.211 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004367/0.3485, allocations: 235.3 kB / 0.7883 GB, free: 7.965 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.837e-05/0.3486, allocations: 89.03 kB / 0.7884 GB, free: 7.859 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.034e-05/0.3486, allocations: 8 kB / 0.7884 GB, free: 7.852 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000142/0.3487, allocations: 7.984 kB / 0.7884 GB, free: 7.844 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.713e-05/0.3488, allocations: 11.94 kB / 0.7884 GB, free: 7.832 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.038e-05/0.3488, allocations: 15.92 kB / 0.7884 GB, free: 7.816 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 5.809e-05/0.3489, allocations: 79.28 kB / 0.7885 GB, free: 7.738 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.7e-07/0.3489, allocations: 0 / 0.7885 GB, free: 7.738 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003648/0.3493, allocations: 20 kB / 0.7885 GB, free: 7.719 MB / 0.6075 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.0002258/0.3495, allocations: 103.2 kB / 0.7886 GB, free: 7.609 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.000431/0.35, allocations: 108.2 kB / 0.7887 GB, free: 7.504 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.35, allocations: 7.938 kB / 0.7887 GB, free: 7.496 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001913/0.3502, allocations: 43.91 kB / 0.7888 GB, free: 7.453 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003844/0.3506, allocations: 12 kB / 0.7888 GB, free: 7.441 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000541/0.3511, allocations: 174.2 kB / 0.7889 GB, free: 7.242 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00039/0.3515, allocations: 0.6846 MB / 0.7896 GB, free: 6.531 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 5.43e-05/0.3516, allocations: 8.422 kB / 0.7896 GB, free: 6.523 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.155e-05/0.3517, allocations: 11.44 kB / 0.7896 GB, free: 6.512 MB / 0.6075 GB Notification: Performance of SimCode: time 2.785e-06/0.3517, allocations: 0 / 0.7896 GB, free: 6.512 MB / 0.6075 GB Notification: Performance of Templates: time 0.004917/0.3566, allocations: 0.9734 MB / 0.7906 GB, free: 5.551 MB / 0.6075 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)