Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_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_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.323/1.323, allocations: 252 MB / 267.9 MB, free: 10.93 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009951/0.0009951, allocations: 173.6 kB / 327.5 MB, free: 2.164 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.604/1.604, allocations: 205.4 MB / 0.5785 GB, free: 20.18 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000761/0.0007611, allocations: 93.92 kB / 0.6831 GB, free: 12.84 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003801/0.0003802, allocations: 12.41 kB / 0.7974 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1689/0.1693, allocations: 106.3 MB / 0.9012 GB, free: 63.71 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1476/0.3169, allocations: 131.9 MB / 1.03 GB, free: 11.67 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001719/0.3171, allocations: 71.95 kB / 1.03 GB, free: 11.6 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.00232/0.3195, allocations: 0.96 MB / 1.031 GB, free: 10.64 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.332e-06/0.3195, allocations: 0 / 1.031 GB, free: 10.64 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 5.01e-06/0.3195, allocations: 0 / 1.031 GB, free: 10.64 MB / 0.6823 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.0004342/0.3199, allocations: 379.2 kB / 1.031 GB, free: 10.21 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.522e-05/0.32, allocations: 12.03 kB / 1.031 GB, free: 10.2 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.878e-05/0.32, allocations: 4.938 kB / 1.031 GB, free: 10.2 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001023/0.3201, allocations: 168.3 kB / 1.032 GB, free: 9.996 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.105e-05/0.3202, allocations: 8.375 kB / 1.032 GB, free: 9.988 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.322e-05/0.3202, allocations: 4.375 kB / 1.032 GB, free: 9.984 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001925/0.3204, allocations: 86.2 kB / 1.032 GB, free: 9.895 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.584e-06/0.3204, allocations: 192 / 1.032 GB, free: 9.895 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.233e-05/0.3204, allocations: 15.88 kB / 1.032 GB, free: 9.879 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.727e-06/0.3204, allocations: 0 / 1.032 GB, free: 9.879 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001952/0.3206, allocations: 63.89 kB / 1.032 GB, free: 9.816 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004919/0.3211, allocations: 320.8 kB / 1.032 GB, free: 9.453 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001867/0.3213, allocations: 90.47 kB / 1.032 GB, free: 9.355 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001091/0.3215, allocations: 52.83 kB / 1.032 GB, free: 9.301 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.738e-05/0.3215, allocations: 112 / 1.032 GB, free: 9.301 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002061/0.3217, allocations: 99.42 kB / 1.032 GB, free: 9.191 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=10): time 1.633e-06/0.3217, allocations: 4 kB / 1.032 GB, free: 9.188 MB / 0.6823 GB Notification: Performance of matching and sorting (n=10): time 0.0004801/0.3222, allocations: 185.5 kB / 1.032 GB, free: 9 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.203e-05/0.3223, allocations: 63.39 kB / 1.032 GB, free: 8.926 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001038/0.3224, allocations: 109.8 kB / 1.033 GB, free: 8.809 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.846e-05/0.3224, allocations: 33.7 kB / 1.033 GB, free: 8.77 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 5.654e-05/0.3225, allocations: 84.36 kB / 1.033 GB, free: 8.68 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 4.556e-05/0.3225, allocations: 27.64 kB / 1.033 GB, free: 8.652 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.015e-05/0.3225, allocations: 8 kB / 1.033 GB, free: 8.645 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001385/0.3227, allocations: 314.8 kB / 1.033 GB, free: 8.328 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001241/0.3228, allocations: 43.97 kB / 1.033 GB, free: 8.285 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001348/0.323, allocations: 71.34 kB / 1.033 GB, free: 8.203 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002584/0.3232, allocations: 115.3 kB / 1.033 GB, free: 8.078 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.3232, allocations: 0 / 1.033 GB, free: 8.078 MB / 0.6823 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003304/0.3236, allocations: 161.4 kB / 1.033 GB, free: 7.914 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.859e-05/0.3236, allocations: 4 kB / 1.033 GB, free: 7.91 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.3236, allocations: 4 kB / 1.033 GB, free: 7.906 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.299e-05/0.3236, allocations: 0 / 1.033 GB, free: 7.906 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001251/0.3238, allocations: 19.98 kB / 1.033 GB, free: 7.887 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.933e-06/0.3238, allocations: 4.375 kB / 1.033 GB, free: 7.883 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.39e-05/0.3239, allocations: 19.98 kB / 1.033 GB, free: 7.863 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.354e-05/0.3239, allocations: 11.94 kB / 1.033 GB, free: 7.852 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.firOrdHol.firstTrigger,firOrdHol.firstTrigger,$whenCondition1,firOrdHol.sampleTrigger,$PRE.firOrdHol.tSample,firOrdHol.tSample,$PRE.firOrdHol.uSample,firOrdHol.uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.pre_uSample,$PRE.firOrdHol.c,firOrdHol.c) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000106/0.324, allocations: 117.8 kB / 1.034 GB, free: 7.727 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.334e-05/0.324, allocations: 11.92 kB / 1.034 GB, free: 7.715 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003613/0.3244, allocations: 165.8 kB / 1.034 GB, free: 7.547 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.457e-06/0.3244, allocations: 0 / 1.034 GB, free: 7.547 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.3244, allocations: 0 / 1.034 GB, free: 7.547 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.11e-06/0.3244, allocations: 0 / 1.034 GB, free: 7.547 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006207/0.3251, allocations: 426.3 kB / 1.034 GB, free: 7.074 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.3251, allocations: 0 / 1.034 GB, free: 7.074 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.867e-05/0.3252, allocations: 15.98 kB / 1.034 GB, free: 7.059 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.807e-06/0.3252, allocations: 0 / 1.034 GB, free: 7.059 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.107e-05/0.3252, allocations: 0 / 1.034 GB, free: 7.059 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.955e-06/0.3252, allocations: 0 / 1.034 GB, free: 7.059 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.3252, allocations: 3.938 kB / 1.034 GB, free: 7.055 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000392/0.3256, allocations: 253 kB / 1.034 GB, free: 6.793 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 5.071e-05/0.3257, allocations: 81.11 kB / 1.035 GB, free: 6.695 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.373e-05/0.3257, allocations: 0 / 1.035 GB, free: 6.695 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001056/0.3258, allocations: 23.92 kB / 1.035 GB, free: 6.672 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.726e-05/0.3259, allocations: 7.984 kB / 1.035 GB, free: 6.664 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.233e-05/0.3259, allocations: 7.938 kB / 1.035 GB, free: 6.656 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 4.865e-05/0.3259, allocations: 83.53 kB / 1.035 GB, free: 6.574 MB / 0.6823 GB Notification: Performance of sort global known variables: time 2.91e-07/0.326, allocations: 0 / 1.035 GB, free: 6.574 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0002469/0.3262, allocations: 15.98 kB / 1.035 GB, free: 6.559 MB / 0.6823 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001444/0.3264, allocations: 103.2 kB / 1.035 GB, free: 6.449 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0003103/0.3267, allocations: 112 kB / 1.035 GB, free: 6.34 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.3267, allocations: 0 / 1.035 GB, free: 6.34 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001404/0.3268, allocations: 56.09 kB / 1.035 GB, free: 6.285 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00027/0.3271, allocations: 18.56 kB / 1.035 GB, free: 6.27 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004358/0.3276, allocations: 165.3 kB / 1.035 GB, free: 6.07 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003306/0.3279, allocations: 0.6887 MB / 1.036 GB, free: 5.355 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 4.256e-05/0.328, allocations: 8.438 kB / 1.036 GB, free: 5.348 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.513e-05/0.328, allocations: 11.44 kB / 1.036 GB, free: 5.336 MB / 0.6823 GB Notification: Performance of SimCode: time 2.3e-07/0.328, allocations: 0 / 1.036 GB, free: 5.336 MB / 0.6823 GB Notification: Performance of Templates: time 0.002879/0.3309, allocations: 0.7546 MB / 1.037 GB, free: 4.59 MB / 0.6823 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1)