Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.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.ZeroOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001337/0.001337, allocations: 105.4 kB / 15.7 MB, free: 24 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001685/0.001685, allocations: 199.1 kB / 16.64 MB, free: 6.453 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.718/1.718, allocations: 205.1 MB / 222.5 MB, free: 4.555 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.884/1.884, allocations: 292.3 MB / 0.549 GB, free: 12.75 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.001702/0.001702, allocations: 78.17 kB / 0.6723 GB, free: 25.96 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2997/0.3014, allocations: 114.5 MB / 0.7841 GB, free: 12.75 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.002177/0.3036, allocations: 0.6814 MB / 0.7848 GB, free: 12.06 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001407/0.3051, allocations: 1.051 MB / 0.7858 GB, free: 11 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.796e-05/0.3051, allocations: 0 / 0.7858 GB, free: 11 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.5e-05/0.3052, allocations: 7.922 kB / 0.7858 GB, free: 10.99 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 6.812e-05/0.3053, allocations: 7.922 kB / 0.7858 GB, free: 10.98 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003276/0.3056, allocations: 35.91 kB / 0.7859 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001381/0.3058, allocations: 63.77 kB / 0.7859 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001292/0.3059, allocations: 8 kB / 0.786 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 7.309e-05/0.306, allocations: 15.98 kB / 0.786 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 7.732e-05/0.3061, allocations: 23.86 kB / 0.786 GB, free: 10.84 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.295e-05/0.3061, allocations: 4 kB / 0.786 GB, free: 10.83 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 7.223e-05/0.3062, allocations: 15.98 kB / 0.786 GB, free: 10.82 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.204e-05/0.3062, allocations: 15.97 kB / 0.786 GB, free: 10.8 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 4.225e-05/0.3062, allocations: 23.86 kB / 0.786 GB, free: 10.78 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.000145/0.3064, allocations: 67.72 kB / 0.7861 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.3064, allocations: 4 kB / 0.7861 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.814e-06/0.3064, allocations: 0 / 0.7861 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.721e-06/0.3064, allocations: 0 / 0.7861 GB, free: 10.71 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0006644/0.3071, allocations: 375.4 kB / 0.7865 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.074e-05/0.3071, allocations: 8.031 kB / 0.7865 GB, free: 10.28 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.504e-05/0.3072, allocations: 8.844 kB / 0.7865 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001342/0.3073, allocations: 164.3 kB / 0.7866 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.269e-05/0.3074, allocations: 8.375 kB / 0.7867 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.69e-05/0.3074, allocations: 4.359 kB / 0.7867 GB, free: 10.06 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002028/0.3076, allocations: 66.22 kB / 0.7867 GB, free: 9.992 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.05e-05/0.3076, allocations: 192 / 0.7867 GB, free: 9.992 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.61e-05/0.3076, allocations: 11.88 kB / 0.7867 GB, free: 9.98 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.769e-06/0.3076, allocations: 3.938 kB / 0.7867 GB, free: 9.977 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001752/0.3078, allocations: 39.95 kB / 0.7868 GB, free: 9.938 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004806/0.3083, allocations: 288.8 kB / 0.787 GB, free: 9.605 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001643/0.3085, allocations: 58.48 kB / 0.7871 GB, free: 9.539 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000105/0.3086, allocations: 24.97 kB / 0.7871 GB, free: 9.512 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.561e-05/0.3086, allocations: 7.984 kB / 0.7871 GB, free: 9.504 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002049/0.3088, allocations: 76.39 kB / 0.7872 GB, free: 9.418 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=7): time 1.663e-06/0.3089, allocations: 0 / 0.7872 GB, free: 9.418 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7): time 0.0004348/0.3093, allocations: 121.6 kB / 0.7873 GB, free: 9.293 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.829e-05/0.3094, allocations: 59.39 kB / 0.7874 GB, free: 9.223 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.658e-05/0.3095, allocations: 101.9 kB / 0.7875 GB, free: 9.113 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.682e-05/0.3095, allocations: 25.7 kB / 0.7875 GB, free: 9.082 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.239e-05/0.3095, allocations: 96.03 kB / 0.7876 GB, free: 8.984 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.041e-05/0.3096, allocations: 19.81 kB / 0.7876 GB, free: 8.965 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.924e-05/0.3096, allocations: 33.64 kB / 0.7876 GB, free: 8.926 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001276/0.3098, allocations: 310.8 kB / 0.7879 GB, free: 8.613 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001128/0.3099, allocations: 31.97 kB / 0.788 GB, free: 8.582 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001134/0.31, allocations: 56.27 kB / 0.788 GB, free: 8.512 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002381/0.3103, allocations: 92.14 kB / 0.7881 GB, free: 8.406 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.3103, allocations: 4 kB / 0.7881 GB, free: 8.402 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000278/0.3106, allocations: 117.4 kB / 0.7882 GB, free: 8.281 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.685e-05/0.3106, allocations: 8 kB / 0.7882 GB, free: 8.273 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.3106, allocations: 256 / 0.7882 GB, free: 8.273 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.647e-05/0.3106, allocations: 4.172 kB / 0.7882 GB, free: 8.27 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001149/0.3107, allocations: 23.98 kB / 0.7883 GB, free: 8.246 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.826e-06/0.3108, allocations: 3.938 kB / 0.7883 GB, free: 8.242 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.955e-05/0.3108, allocations: 12.12 kB / 0.7883 GB, free: 8.23 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.252e-05/0.3108, allocations: 4 kB / 0.7883 GB, free: 8.227 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 6 (zerOrdHol.firstTrigger,$PRE.zerOrdHol.firstTrigger,zerOrdHol.sampleTrigger,$whenCondition1,$PRE.zerOrdHol.ySample,zerOrdHol.ySample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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.0001062/0.311, allocations: 128.9 kB / 0.7884 GB, free: 8.094 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.33e-05/0.311, allocations: 4 kB / 0.7884 GB, free: 8.09 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002809/0.3113, allocations: 102 kB / 0.7885 GB, free: 7.984 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/0.3113, allocations: 0 / 0.7885 GB, free: 7.984 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.3113, allocations: 0 / 0.7885 GB, free: 7.984 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.3113, allocations: 8 kB / 0.7885 GB, free: 7.977 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004539/0.3118, allocations: 366.7 kB / 0.7889 GB, free: 7.562 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.3118, allocations: 0 / 0.7889 GB, free: 7.562 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.107e-05/0.3118, allocations: 11.98 kB / 0.7889 GB, free: 7.551 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.657e-06/0.3118, allocations: 0 / 0.7889 GB, free: 7.551 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.413e-05/0.3119, allocations: 0 / 0.7889 GB, free: 7.551 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.234e-06/0.3119, allocations: 0 / 0.7889 GB, free: 7.551 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.484e-06/0.3119, allocations: 48 / 0.7889 GB, free: 7.551 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002938/0.3122, allocations: 211.4 kB / 0.7891 GB, free: 7.328 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.18e-05/0.3122, allocations: 85.02 kB / 0.7892 GB, free: 7.227 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.323e-05/0.3123, allocations: 7.984 kB / 0.7892 GB, free: 7.219 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.218e-05/0.3124, allocations: 4 kB / 0.7892 GB, free: 7.215 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.655e-05/0.3124, allocations: 7.984 kB / 0.7892 GB, free: 7.207 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.585e-05/0.3124, allocations: 11.94 kB / 0.7892 GB, free: 7.195 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.842e-05/0.3125, allocations: 83.28 kB / 0.7893 GB, free: 7.113 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1e-07/0.3125, allocations: 0 / 0.7893 GB, free: 7.113 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002479/0.3128, allocations: 19.92 kB / 0.7893 GB, free: 7.094 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: 4 (zerOrdHol.sampleTrigger,$whenCondition1,zerOrdHol.ySample,zerOrdHol.firstTrigger) * Number of discrete states: 1 (zerOrdHol.ySample) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001488/0.3129, allocations: 103.2 kB / 0.7894 GB, free: 6.984 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002701/0.3132, allocations: 76.05 kB / 0.7895 GB, free: 6.91 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.3132, allocations: 4.062 kB / 0.7895 GB, free: 6.906 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001123/0.3133, allocations: 35.92 kB / 0.7895 GB, free: 6.871 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002768/0.3136, allocations: 7.984 kB / 0.7895 GB, free: 6.863 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003689/0.314, allocations: 137.5 kB / 0.7896 GB, free: 6.703 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002834/0.3143, allocations: 0.6846 MB / 0.7903 GB, free: 5.992 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.485e-05/0.3143, allocations: 8 kB / 0.7903 GB, free: 5.984 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.248e-05/0.3144, allocations: 11.44 kB / 0.7903 GB, free: 5.973 MB / 0.6075 GB Notification: Performance of SimCode: time 3.61e-07/0.3144, allocations: 0 / 0.7903 GB, free: 5.973 MB / 0.6075 GB Notification: Performance of Templates: time 0.003383/0.3178, allocations: 0.832 MB / 0.7911 GB, free: 5.148 MB / 0.6075 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.makefile (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.sim & ./Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1)