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.001399/0.001399, 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.002985/0.002985, allocations: 194.9 kB / 16.25 MB, free: 6.625 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.756/1.756, allocations: 205.1 MB / 222.1 MB, free: 4.699 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.879/1.879, allocations: 292.2 MB / 0.5485 GB, free: 13.69 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.001366/0.001366, allocations: 71.08 kB / 0.671 GB, free: 26.48 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2968/0.2981, allocations: 114.5 MB / 0.7829 GB, free: 13.94 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.002375/0.3006, allocations: 0.7503 MB / 0.7836 GB, free: 13.19 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.00158/0.3022, allocations: 1.056 MB / 0.7846 GB, free: 12.12 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.332e-05/0.3023, allocations: 0 / 0.7846 GB, free: 12.12 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 4.435e-05/0.3024, allocations: 0 / 0.7846 GB, free: 12.12 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001055/0.3025, allocations: 11.91 kB / 0.7846 GB, free: 12.11 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004483/0.3029, allocations: 31.92 kB / 0.7847 GB, free: 12.07 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001282/0.3031, allocations: 51.89 kB / 0.7847 GB, free: 12.02 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001184/0.3032, allocations: 12 kB / 0.7847 GB, free: 12.01 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 8.135e-05/0.3033, allocations: 19.92 kB / 0.7847 GB, free: 11.99 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 8.065e-05/0.3034, allocations: 23.92 kB / 0.7848 GB, free: 11.97 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.712e-05/0.3034, allocations: 4 kB / 0.7848 GB, free: 11.96 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 8.922e-05/0.3035, allocations: 19.91 kB / 0.7848 GB, free: 11.95 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.305e-05/0.3035, allocations: 19.92 kB / 0.7848 GB, free: 11.93 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 4.941e-05/0.3036, allocations: 19.92 kB / 0.7848 GB, free: 11.91 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001746/0.3038, allocations: 59.78 kB / 0.7849 GB, free: 11.85 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 7.635e-06/0.3038, allocations: 0 / 0.7849 GB, free: 11.85 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.372e-06/0.3038, allocations: 0 / 0.7849 GB, free: 11.85 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.625e-06/0.3038, allocations: 0 / 0.7849 GB, free: 11.85 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.000729/0.3045, allocations: 367.7 kB / 0.7852 GB, free: 11.44 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.636e-05/0.3046, allocations: 16.02 kB / 0.7852 GB, free: 11.42 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.601e-05/0.3047, allocations: 4.844 kB / 0.7853 GB, free: 11.42 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001766/0.3048, allocations: 168.3 kB / 0.7854 GB, free: 11.21 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.415e-05/0.3049, allocations: 384 / 0.7854 GB, free: 11.21 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.458e-05/0.3049, allocations: 8.375 kB / 0.7854 GB, free: 11.21 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002413/0.3051, allocations: 70.22 kB / 0.7855 GB, free: 11.13 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.514e-05/0.3052, allocations: 192 / 0.7855 GB, free: 11.13 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.613e-05/0.3052, allocations: 11.81 kB / 0.7855 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.819e-06/0.3052, allocations: 0 / 0.7855 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00018/0.3054, allocations: 39.95 kB / 0.7855 GB, free: 11.08 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005949/0.306, allocations: 284.8 kB / 0.7858 GB, free: 10.75 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001781/0.3062, allocations: 62.48 kB / 0.7859 GB, free: 10.68 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001006/0.3063, allocations: 24.97 kB / 0.7859 GB, free: 10.66 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 3.434e-05/0.3063, allocations: 7.938 kB / 0.7859 GB, free: 10.65 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002792/0.3066, allocations: 71.38 kB / 0.786 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=7): time 1.763e-06/0.3066, allocations: 4 kB / 0.786 GB, free: 10.56 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7): time 0.0004776/0.3071, allocations: 121.6 kB / 0.7861 GB, free: 10.44 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.789e-05/0.3072, allocations: 55.41 kB / 0.7861 GB, free: 10.37 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001006/0.3073, allocations: 105.8 kB / 0.7862 GB, free: 10.26 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.081e-05/0.3073, allocations: 25.7 kB / 0.7863 GB, free: 10.23 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.609e-05/0.3074, allocations: 92.03 kB / 0.7864 GB, free: 10.13 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.265e-05/0.3074, allocations: 27.75 kB / 0.7864 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.858e-05/0.3075, allocations: 29.7 kB / 0.7864 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001321/0.3076, allocations: 314.8 kB / 0.7867 GB, free: 9.754 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001029/0.3077, allocations: 27.97 kB / 0.7867 GB, free: 9.727 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001167/0.3078, allocations: 60.2 kB / 0.7868 GB, free: 9.652 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002168/0.3081, allocations: 92.14 kB / 0.7869 GB, free: 9.547 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.3081, allocations: 256 / 0.7869 GB, free: 9.547 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002837/0.3084, allocations: 125.4 kB / 0.787 GB, free: 9.418 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.376e-05/0.3084, allocations: 10.03 kB / 0.787 GB, free: 9.41 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.739e-06/0.3084, allocations: 4 kB / 0.787 GB, free: 9.406 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.478e-05/0.3084, allocations: 0 / 0.787 GB, free: 9.406 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000122/0.3086, allocations: 19.97 kB / 0.787 GB, free: 9.387 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.936e-06/0.3086, allocations: 4 kB / 0.787 GB, free: 9.383 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.785e-05/0.3087, allocations: 8 kB / 0.787 GB, free: 9.375 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.282e-05/0.3087, allocations: 4.125 kB / 0.7871 GB, free: 9.371 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.0001072/0.3088, allocations: 129.7 kB / 0.7872 GB, free: 9.234 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.642e-05/0.3088, allocations: 4 kB / 0.7872 GB, free: 9.23 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003007/0.3091, allocations: 102 kB / 0.7873 GB, free: 9.125 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.514e-06/0.3091, allocations: 0 / 0.7873 GB, free: 9.125 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.3091, allocations: 0 / 0.7873 GB, free: 9.125 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.3092, allocations: 0 / 0.7873 GB, free: 9.125 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004658/0.3096, allocations: 374.7 kB / 0.7876 GB, free: 8.703 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.3096, allocations: 192 / 0.7876 GB, free: 8.703 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.304e-05/0.3097, allocations: 11.98 kB / 0.7876 GB, free: 8.691 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.3097, allocations: 3.938 kB / 0.7876 GB, free: 8.688 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.266e-05/0.3097, allocations: 4 kB / 0.7877 GB, free: 8.684 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.565e-06/0.3098, allocations: 0 / 0.7877 GB, free: 8.684 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.3098, allocations: 0 / 0.7877 GB, free: 8.684 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003078/0.3101, allocations: 199.4 kB / 0.7878 GB, free: 8.473 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.637e-05/0.3101, allocations: 85.02 kB / 0.7879 GB, free: 8.371 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.31e-05/0.3102, allocations: 4 kB / 0.7879 GB, free: 8.367 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.641e-05/0.3103, allocations: 7.984 kB / 0.7879 GB, free: 8.359 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.279e-05/0.3103, allocations: 7.984 kB / 0.7879 GB, free: 8.352 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.521e-05/0.3103, allocations: 3.938 kB / 0.7879 GB, free: 8.348 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.351e-05/0.3104, allocations: 91.28 kB / 0.788 GB, free: 8.258 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.01e-07/0.3104, allocations: 0 / 0.788 GB, free: 8.258 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002486/0.3106, allocations: 15.92 kB / 0.788 GB, free: 8.242 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.0001735/0.3108, allocations: 107.2 kB / 0.7882 GB, free: 8.129 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002764/0.3111, allocations: 79.86 kB / 0.7882 GB, free: 8.051 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.3111, allocations: 3.938 kB / 0.7882 GB, free: 8.047 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.000112/0.3112, allocations: 36.17 kB / 0.7883 GB, free: 8.012 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002729/0.3115, allocations: 14.94 kB / 0.7883 GB, free: 8 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000384/0.3119, allocations: 141.5 kB / 0.7884 GB, free: 7.836 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000325/0.3123, allocations: 0.6846 MB / 0.7891 GB, free: 7.125 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 4.054e-05/0.3123, allocations: 8 kB / 0.7891 GB, free: 7.117 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.202e-05/0.3123, allocations: 11.44 kB / 0.7891 GB, free: 7.105 MB / 0.6075 GB Notification: Performance of SimCode: time 3.11e-07/0.3123, allocations: 0 / 0.7891 GB, free: 7.105 MB / 0.6075 GB Notification: Performance of Templates: time 0.003523/0.3159, allocations: 0.7788 MB / 0.7899 GB, free: 6.336 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)