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.001133/0.001133, allocations: 102.7 kB / 16.36 MB, free: 6.305 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.001126/0.001126, allocations: 192.5 kB / 17.29 MB, free: 5.875 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.437/1.437, allocations: 205.1 MB / 223.2 MB, free: 12.23 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.861/1.861, allocations: 292.3 MB / 0.5496 GB, free: 17.53 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.001451/0.001451, allocations: 71.91 kB / 0.6729 GB, free: 5.773 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2197/0.2211, allocations: 114.6 MB / 0.7848 GB, free: 3.113 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.001956/0.2231, allocations: 0.6972 MB / 0.7855 GB, free: 2.414 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001288/0.2244, allocations: 1.071 MB / 0.7865 GB, free: 1.328 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.27e-05/0.2245, allocations: 0 / 0.7865 GB, free: 1.328 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 3.209e-05/0.2246, allocations: 3.938 kB / 0.7865 GB, free: 1.324 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 6.165e-05/0.2246, allocations: 3.938 kB / 0.7865 GB, free: 1.32 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003212/0.2249, allocations: 51.81 kB / 0.7866 GB, free: 1.27 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0001174/0.2251, allocations: 67.91 kB / 0.7866 GB, free: 1.203 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000109/0.2252, allocations: 11.98 kB / 0.7866 GB, free: 1.191 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 7.554e-05/0.2253, allocations: 31.86 kB / 0.7867 GB, free: 1.16 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 7.054e-05/0.2254, allocations: 35.83 kB / 0.7867 GB, free: 1.125 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 1.694e-05/0.2254, allocations: 8 kB / 0.7867 GB, free: 1.117 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 7.129e-05/0.2255, allocations: 19.98 kB / 0.7867 GB, free: 1.098 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 2.2e-05/0.2255, allocations: 7.984 kB / 0.7867 GB, free: 1.09 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 4.533e-05/0.2255, allocations: 35.84 kB / 0.7868 GB, free: 1.055 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0001381/0.2257, allocations: 75.75 kB / 0.7869 GB, free: 0.9805 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.2257, allocations: 4 kB / 0.7869 GB, free: 0.9766 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.743e-06/0.2257, allocations: 0 / 0.7869 GB, free: 0.9766 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 4.959e-06/0.2257, allocations: 0 / 0.7869 GB, free: 0.9766 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.0006382/0.2264, allocations: 379.3 kB / 0.7872 GB, free: 0.5547 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.852e-05/0.2264, allocations: 12.03 kB / 0.7872 GB, free: 0.543 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.089e-05/0.2264, allocations: 8.844 kB / 0.7872 GB, free: 0.5352 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001112/0.2266, allocations: 172.3 kB / 0.7874 GB, free: 336 kB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.744e-05/0.2266, allocations: 16.36 kB / 0.7874 GB, free: 320 kB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.807e-05/0.2266, allocations: 4.375 kB / 0.7874 GB, free: 316 kB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002267/0.2269, allocations: 78.16 kB / 0.7875 GB, free: 232 kB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.025e-06/0.2269, allocations: 192 / 0.7875 GB, free: 232 kB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.718e-05/0.2269, allocations: 15.92 kB / 0.7875 GB, free: 216 kB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.657e-06/0.2269, allocations: 0 / 0.7875 GB, free: 216 kB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002041/0.2271, allocations: 47.95 kB / 0.7876 GB, free: 168 kB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4021/0.6292, allocations: 304.3 kB / 0.7878 GB, free: 48.7 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002413/0.6295, allocations: 90.17 kB / 0.7879 GB, free: 48.68 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001148/0.6296, allocations: 42.64 kB / 0.788 GB, free: 48.67 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.848e-05/0.6296, allocations: 0 / 0.788 GB, free: 48.67 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002367/0.6299, allocations: 94.45 kB / 0.7881 GB, free: 48.62 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=10): time 1.974e-06/0.6299, allocations: 2.625 kB / 0.7881 GB, free: 48.62 MB / 0.6544 GB Notification: Performance of matching and sorting (n=10): time 0.0005051/0.6304, allocations: 168.7 kB / 0.7882 GB, free: 48.59 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.125e-05/0.6305, allocations: 58.69 kB / 0.7883 GB, free: 48.53 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.97e-05/0.6305, allocations: 107 kB / 0.7884 GB, free: 48.43 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.875e-05/0.6306, allocations: 35.11 kB / 0.7884 GB, free: 48.4 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 3.52e-05/0.6306, allocations: 89.83 kB / 0.7885 GB, free: 48.31 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 2.394e-05/0.6306, allocations: 24.19 kB / 0.7885 GB, free: 48.31 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.396e-05/0.6307, allocations: 35.22 kB / 0.7886 GB, free: 48.29 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 5.617e-05/0.6308, allocations: 321 kB / 0.7889 GB, free: 47.98 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001109/0.6309, allocations: 35.8 kB / 0.7889 GB, free: 47.98 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000124/0.631, allocations: 66.83 kB / 0.789 GB, free: 47.96 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002141/0.6312, allocations: 99.72 kB / 0.7891 GB, free: 47.93 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.6312, allocations: 2.844 kB / 0.7891 GB, free: 47.93 MB / 0.6544 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002828/0.6315, allocations: 143 kB / 0.7892 GB, free: 47.89 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.595e-05/0.6316, allocations: 7.938 kB / 0.7892 GB, free: 47.89 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.6316, allocations: 0 / 0.7892 GB, free: 47.89 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.73e-05/0.6316, allocations: 2.625 kB / 0.7892 GB, free: 47.89 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001282/0.6317, allocations: 24.98 kB / 0.7892 GB, free: 47.89 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.083e-06/0.6317, allocations: 0.75 kB / 0.7892 GB, free: 47.89 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.954e-05/0.6318, allocations: 14.05 kB / 0.7892 GB, free: 47.89 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.223e-05/0.6318, allocations: 8.031 kB / 0.7893 GB, free: 47.89 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 8.147e-05/0.6319, allocations: 125.2 kB / 0.7894 GB, free: 47.78 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.504e-05/0.6319, allocations: 10.47 kB / 0.7894 GB, free: 47.77 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003153/0.6323, allocations: 143.4 kB / 0.7895 GB, free: 47.74 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/0.6323, allocations: 4.281 kB / 0.7895 GB, free: 47.74 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.62e-06/0.6323, allocations: 3.328 kB / 0.7895 GB, free: 47.74 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/0.6323, allocations: 2.688 kB / 0.7895 GB, free: 47.74 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004468/0.6328, allocations: 410.5 kB / 0.7899 GB, free: 47.44 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.6328, allocations: 0.75 kB / 0.7899 GB, free: 47.44 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.809e-05/0.6328, allocations: 12.86 kB / 0.7899 GB, free: 47.44 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.6329, allocations: 0.9688 kB / 0.7899 GB, free: 47.44 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.117e-05/0.6329, allocations: 2.859 kB / 0.7899 GB, free: 47.44 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.404e-06/0.6329, allocations: 4.219 kB / 0.7899 GB, free: 47.44 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.6329, allocations: 5.844 kB / 0.7899 GB, free: 47.44 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002906/0.6332, allocations: 231.3 kB / 0.7902 GB, free: 47.31 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 2.262e-05/0.6332, allocations: 87.72 kB / 0.7903 GB, free: 47.21 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.251e-05/0.6332, allocations: 5.281 kB / 0.7903 GB, free: 47.21 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001012/0.6334, allocations: 7.938 kB / 0.7903 GB, free: 47.21 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.161e-05/0.6334, allocations: 7.828 kB / 0.7903 GB, free: 47.21 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.142e-05/0.6334, allocations: 9.562 kB / 0.7903 GB, free: 47.21 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 2.526e-05/0.6335, allocations: 82.45 kB / 0.7904 GB, free: 47.14 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.11e-07/0.6335, allocations: 2.719 kB / 0.7904 GB, free: 47.14 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002701/0.6337, allocations: 23.75 kB / 0.7904 GB, free: 47.13 MB / 0.6544 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.0001592/0.6339, allocations: 104 kB / 0.7905 GB, free: 47.05 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0003086/0.6342, allocations: 109 kB / 0.7906 GB, free: 47.05 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.6342, allocations: 0 / 0.7906 GB, free: 47.05 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001319/0.6344, allocations: 50.84 kB / 0.7906 GB, free: 47.05 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002836/0.6347, allocations: 12.12 kB / 0.7907 GB, free: 47.04 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003772/0.6351, allocations: 182.6 kB / 0.7908 GB, free: 46.91 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001226/0.6352, allocations: 0.6938 MB / 0.7915 GB, free: 46.21 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.229e-05/0.6352, allocations: 12.84 kB / 0.7915 GB, free: 46.2 MB / 0.6544 GB Notification: Performance of SimCode: time 2.41e-07/0.6352, allocations: 0 / 0.7915 GB, free: 46.2 MB / 0.6544 GB Notification: Performance of Templates: time 0.002542/0.6378, allocations: 1.083 MB / 0.7926 GB, free: 46.16 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)