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.001415/0.001423, allocations: 106.3 kB / 16.29 MB, free: 6.43 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.001389/0.001389, allocations: 184 kB / 17.22 MB, free: 5.934 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.656/1.656, allocations: 205.1 MB / 223.1 MB, free: 12.3 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 2.065/2.065, allocations: 292.3 MB / 0.5495 GB, free: 17.56 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.001695/0.001695, allocations: 67.91 kB / 0.6722 GB, free: 6.512 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3/0.3017, allocations: 114.6 MB / 0.7841 GB, free: 3.844 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.003692/0.3055, allocations: 0.696 MB / 0.7848 GB, free: 3.145 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001538/0.307, allocations: 1.059 MB / 0.7858 GB, free: 2.07 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.622e-05/0.3071, allocations: 7.938 kB / 0.7858 GB, free: 2.062 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 3.377e-05/0.3072, allocations: 3.938 kB / 0.7858 GB, free: 2.059 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 7.579e-05/0.3073, allocations: 7.938 kB / 0.7858 GB, free: 2.051 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.000329/0.3076, allocations: 51.81 kB / 0.7859 GB, free: 2 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0001054/0.3077, allocations: 63.89 kB / 0.7859 GB, free: 1.938 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001175/0.3078, allocations: 11.98 kB / 0.7859 GB, free: 1.926 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 8.216e-05/0.3079, allocations: 27.92 kB / 0.786 GB, free: 1.898 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 6.939e-05/0.308, allocations: 31.84 kB / 0.786 GB, free: 1.867 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 2.012e-05/0.308, allocations: 8 kB / 0.786 GB, free: 1.859 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 7.816e-05/0.3081, allocations: 27.97 kB / 0.786 GB, free: 1.832 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 3.182e-05/0.3082, allocations: 15.98 kB / 0.786 GB, free: 1.816 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 4.38e-05/0.3082, allocations: 23.88 kB / 0.7861 GB, free: 1.793 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0001507/0.3084, allocations: 79.67 kB / 0.7861 GB, free: 1.715 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.3084, allocations: 4 kB / 0.7861 GB, free: 1.711 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.753e-06/0.3084, allocations: 0 / 0.7861 GB, free: 1.711 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 5.671e-06/0.3084, allocations: 0 / 0.7861 GB, free: 1.711 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.0006745/0.3091, allocations: 383.7 kB / 0.7865 GB, free: 1.285 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.969e-05/0.3091, allocations: 8.031 kB / 0.7865 GB, free: 1.277 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.422e-05/0.3092, allocations: 8.844 kB / 0.7865 GB, free: 1.27 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001341/0.3093, allocations: 164.3 kB / 0.7867 GB, free: 1.07 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.004e-05/0.3093, allocations: 8.359 kB / 0.7867 GB, free: 1.062 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.168e-05/0.3094, allocations: 8.375 kB / 0.7867 GB, free: 1.055 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002161/0.3096, allocations: 86.09 kB / 0.7868 GB, free: 0.9648 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.353e-05/0.3096, allocations: 4.172 kB / 0.7868 GB, free: 0.9609 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.678e-05/0.3096, allocations: 7.922 kB / 0.7868 GB, free: 0.9531 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.362e-06/0.3096, allocations: 4 kB / 0.7868 GB, free: 0.9492 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001836/0.3098, allocations: 55.95 kB / 0.7868 GB, free: 0.8945 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000524/0.3104, allocations: 304.8 kB / 0.7871 GB, free: 0.5469 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001903/0.3106, allocations: 90.41 kB / 0.7872 GB, free: 460 kB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001151/0.3107, allocations: 48.83 kB / 0.7873 GB, free: 408 kB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 1.998e-05/0.3107, allocations: 0 / 0.7873 GB, free: 408 kB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000265/0.311, allocations: 87.31 kB / 0.7874 GB, free: 308 kB / 0.6544 GB Notification: Performance of pre-optimization done (n=10): time 1.402e-06/0.311, allocations: 0 / 0.7874 GB, free: 308 kB / 0.6544 GB Notification: Performance of matching and sorting (n=10): time 0.0004807/0.3115, allocations: 177.6 kB / 0.7875 GB, free: 124 kB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.782e-05/0.3115, allocations: 59.39 kB / 0.7876 GB, free: 52 kB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.3831/0.6947, allocations: 103.5 kB / 0.7877 GB, free: 48.87 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 3.79e-05/0.6948, allocations: 33.02 kB / 0.7877 GB, free: 48.84 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 3.77e-05/0.6948, allocations: 85.19 kB / 0.7878 GB, free: 48.75 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 2.998e-05/0.6948, allocations: 24.38 kB / 0.7878 GB, free: 48.75 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.884e-05/0.6949, allocations: 35.89 kB / 0.7878 GB, free: 48.73 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 5.537e-05/0.695, allocations: 316.1 kB / 0.7882 GB, free: 48.42 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001433/0.6951, allocations: 43.14 kB / 0.7882 GB, free: 48.42 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001234/0.6953, allocations: 59.55 kB / 0.7882 GB, free: 48.4 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002145/0.6955, allocations: 108.7 kB / 0.7884 GB, free: 48.38 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.6955, allocations: 0 / 0.7884 GB, free: 48.38 MB / 0.6544 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003097/0.6958, allocations: 139.4 kB / 0.7885 GB, free: 48.34 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.768e-05/0.6958, allocations: 5.25 kB / 0.7885 GB, free: 48.34 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.754e-06/0.6958, allocations: 1.938 kB / 0.7885 GB, free: 48.34 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.746e-05/0.6959, allocations: 6.047 kB / 0.7885 GB, free: 48.34 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001319/0.696, allocations: 23.33 kB / 0.7885 GB, free: 48.34 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.153e-06/0.696, allocations: 0 / 0.7885 GB, free: 48.34 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.566e-05/0.6961, allocations: 17.72 kB / 0.7885 GB, free: 48.34 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.282e-05/0.6961, allocations: 5.25 kB / 0.7885 GB, free: 48.34 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.545e-05/0.6962, allocations: 123.5 kB / 0.7887 GB, free: 48.23 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.705e-05/0.6962, allocations: 8.219 kB / 0.7887 GB, free: 48.23 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003042/0.6965, allocations: 151.3 kB / 0.7888 GB, free: 48.19 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.6965, allocations: 0 / 0.7888 GB, free: 48.19 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.6966, allocations: 0 / 0.7888 GB, free: 48.19 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.6966, allocations: 3.594 kB / 0.7888 GB, free: 48.19 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004296/0.697, allocations: 413.5 kB / 0.7892 GB, free: 47.89 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.033e-06/0.697, allocations: 3.328 kB / 0.7892 GB, free: 47.89 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.176e-05/0.6971, allocations: 14.22 kB / 0.7892 GB, free: 47.89 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.425e-06/0.6971, allocations: 3.094 kB / 0.7892 GB, free: 47.89 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.798e-06/0.6971, allocations: 0 / 0.7892 GB, free: 47.89 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.452e-06/0.6971, allocations: 2.969 kB / 0.7892 GB, free: 47.89 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.6971, allocations: 0 / 0.7892 GB, free: 47.89 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002661/0.6974, allocations: 238.8 kB / 0.7895 GB, free: 47.75 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 1.917e-05/0.6974, allocations: 83.39 kB / 0.7895 GB, free: 47.66 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.924e-05/0.6974, allocations: 2.438 kB / 0.7895 GB, free: 47.66 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.896e-05/0.6975, allocations: 9 kB / 0.7896 GB, free: 47.66 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.192e-05/0.6976, allocations: 10.14 kB / 0.7896 GB, free: 47.66 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.696e-06/0.6976, allocations: 4.359 kB / 0.7896 GB, free: 47.66 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 2.355e-05/0.6976, allocations: 89.06 kB / 0.7896 GB, free: 47.59 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.11e-07/0.6976, allocations: 0 / 0.7896 GB, free: 47.59 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002442/0.6979, allocations: 22.62 kB / 0.7897 GB, free: 47.58 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.0001394/0.698, allocations: 116.2 kB / 0.7898 GB, free: 47.5 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0002721/0.6983, allocations: 94.88 kB / 0.7899 GB, free: 47.5 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.6983, allocations: 0 / 0.7899 GB, free: 47.5 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.000114/0.6984, allocations: 52.05 kB / 0.7899 GB, free: 47.5 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002632/0.6987, allocations: 14.34 kB / 0.7899 GB, free: 47.49 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002979/0.699, allocations: 155.6 kB / 0.7901 GB, free: 47.38 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000121/0.6992, allocations: 0.689 MB / 0.7908 GB, free: 46.69 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 3.685e-05/0.6992, allocations: 9.641 kB / 0.7908 GB, free: 46.69 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.577e-05/0.6992, allocations: 13.16 kB / 0.7908 GB, free: 46.68 MB / 0.6544 GB Notification: Performance of SimCode: time 2.3e-07/0.6992, allocations: 2.625 kB / 0.7908 GB, free: 46.68 MB / 0.6544 GB Notification: Performance of Templates: time 0.002994/0.7022, allocations: 1.014 MB / 0.7918 GB, free: 46.68 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 -s cvode -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1)