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.001307/0.001307, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001431/0.001431, allocations: 193.9 kB / 16.14 MB, free: 6.652 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.568/1.568, allocations: 205.1 MB / 222 MB, free: 4.727 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.674/1.674, allocations: 292.3 MB / 0.5484 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.001327/0.001327, allocations: 66.78 kB / 0.6708 GB, free: 26.28 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2731/0.2745, allocations: 114.5 MB / 0.7827 GB, free: 14.05 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.002518/0.2771, allocations: 0.7464 MB / 0.7834 GB, free: 13.3 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001598/0.2787, allocations: 1.06 MB / 0.7844 GB, free: 12.22 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.775e-05/0.2788, allocations: 4 kB / 0.7844 GB, free: 12.22 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.855e-05/0.2788, allocations: 3.938 kB / 0.7844 GB, free: 12.21 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 7.562e-05/0.2789, allocations: 3.984 kB / 0.7845 GB, free: 12.21 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003463/0.2793, allocations: 35.91 kB / 0.7845 GB, free: 12.18 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001115/0.2794, allocations: 43.91 kB / 0.7845 GB, free: 12.13 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001121/0.2795, allocations: 8 kB / 0.7845 GB, free: 12.12 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 9.704e-05/0.2796, allocations: 23.86 kB / 0.7846 GB, free: 12.1 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 8.024e-05/0.2797, allocations: 23.91 kB / 0.7846 GB, free: 12.08 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.831e-05/0.2797, allocations: 4 kB / 0.7846 GB, free: 12.07 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 8.057e-05/0.2798, allocations: 19.98 kB / 0.7846 GB, free: 12.05 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.431e-05/0.2799, allocations: 11.92 kB / 0.7846 GB, free: 12.04 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 4.403e-05/0.2799, allocations: 19.92 kB / 0.7846 GB, free: 12.02 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001524/0.2801, allocations: 59.78 kB / 0.7847 GB, free: 11.96 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.2801, allocations: 0 / 0.7847 GB, free: 11.96 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.373e-06/0.2801, allocations: 0 / 0.7847 GB, free: 11.96 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.001e-06/0.2801, allocations: 0 / 0.7847 GB, free: 11.96 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.0007009/0.2808, allocations: 363.7 kB / 0.785 GB, free: 11.56 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.003e-05/0.2809, allocations: 8.031 kB / 0.785 GB, free: 11.55 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.565e-05/0.2809, allocations: 20.83 kB / 0.7851 GB, free: 11.53 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001777/0.2811, allocations: 168.3 kB / 0.7852 GB, free: 11.33 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.282e-05/0.2811, allocations: 4.375 kB / 0.7852 GB, free: 11.32 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.41e-05/0.2812, allocations: 384 / 0.7852 GB, free: 11.32 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002274/0.2814, allocations: 74.14 kB / 0.7853 GB, free: 11.25 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.427e-06/0.2814, allocations: 192 / 0.7853 GB, free: 11.25 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.633e-05/0.2814, allocations: 3.938 kB / 0.7853 GB, free: 11.24 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.623e-06/0.2814, allocations: 4 kB / 0.7853 GB, free: 11.24 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000182/0.2816, allocations: 47.89 kB / 0.7854 GB, free: 11.19 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004943/0.2821, allocations: 276.8 kB / 0.7856 GB, free: 10.87 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00018/0.2823, allocations: 66.42 kB / 0.7857 GB, free: 10.8 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001117/0.2825, allocations: 28.97 kB / 0.7857 GB, free: 10.77 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.48e-05/0.2825, allocations: 4 kB / 0.7857 GB, free: 10.76 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002521/0.2827, allocations: 75.38 kB / 0.7858 GB, free: 10.68 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=7): time 1.753e-06/0.2828, allocations: 0 / 0.7858 GB, free: 10.68 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7): time 0.0004372/0.2832, allocations: 125.6 kB / 0.7859 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.133e-05/0.2833, allocations: 51.41 kB / 0.786 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001262/0.2834, allocations: 109.8 kB / 0.7861 GB, free: 10.37 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.275e-05/0.2834, allocations: 29.7 kB / 0.7861 GB, free: 10.33 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.816e-05/0.2835, allocations: 88.05 kB / 0.7862 GB, free: 10.24 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.209e-05/0.2835, allocations: 19.73 kB / 0.7862 GB, free: 10.22 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.982e-05/0.2836, allocations: 21.72 kB / 0.7862 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001342/0.2837, allocations: 318.8 kB / 0.7865 GB, free: 9.875 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000106/0.2838, allocations: 23.98 kB / 0.7865 GB, free: 9.852 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001223/0.284, allocations: 64.27 kB / 0.7866 GB, free: 9.773 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002265/0.2842, allocations: 100.1 kB / 0.7867 GB, free: 9.66 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.2842, allocations: 0 / 0.7867 GB, free: 9.66 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002753/0.2845, allocations: 121.4 kB / 0.7868 GB, free: 9.535 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.638e-05/0.2845, allocations: 4 kB / 0.7868 GB, free: 9.531 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.451e-06/0.2845, allocations: 0 / 0.7868 GB, free: 9.531 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.422e-05/0.2846, allocations: 4 kB / 0.7868 GB, free: 9.527 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001242/0.2847, allocations: 24.05 kB / 0.7868 GB, free: 9.504 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.166e-06/0.2847, allocations: 3.984 kB / 0.7868 GB, free: 9.5 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.071e-05/0.2848, allocations: 8 kB / 0.7869 GB, free: 9.492 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.258e-05/0.2848, allocations: 4 kB / 0.7869 GB, free: 9.488 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 9.171e-05/0.2849, allocations: 122.4 kB / 0.787 GB, free: 9.359 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.608e-05/0.2849, allocations: 8.016 kB / 0.787 GB, free: 9.352 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003039/0.2852, allocations: 106 kB / 0.7871 GB, free: 9.242 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.44e-06/0.2852, allocations: 8 kB / 0.7871 GB, free: 9.234 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/0.2853, allocations: 0 / 0.7871 GB, free: 9.234 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.2853, allocations: 0 / 0.7871 GB, free: 9.234 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004592/0.2857, allocations: 358.6 kB / 0.7874 GB, free: 8.828 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/0.2858, allocations: 4 kB / 0.7874 GB, free: 8.824 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.581e-05/0.2858, allocations: 15.92 kB / 0.7874 GB, free: 8.809 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.856e-06/0.2858, allocations: 192 / 0.7874 GB, free: 8.809 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.638e-06/0.2858, allocations: 4 kB / 0.7875 GB, free: 8.805 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.956e-06/0.2859, allocations: 7.938 kB / 0.7875 GB, free: 8.797 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.2859, allocations: 0 / 0.7875 GB, free: 8.797 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002824/0.2862, allocations: 199.9 kB / 0.7877 GB, free: 8.586 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.037e-05/0.2862, allocations: 81.02 kB / 0.7877 GB, free: 8.488 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.858e-05/0.2862, allocations: 0 / 0.7877 GB, free: 8.488 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001011/0.2864, allocations: 19.98 kB / 0.7877 GB, free: 8.469 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.688e-05/0.2864, allocations: 3.984 kB / 0.7878 GB, free: 8.465 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.911e-05/0.2864, allocations: 7.938 kB / 0.7878 GB, free: 8.457 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.668e-05/0.2865, allocations: 79.28 kB / 0.7878 GB, free: 8.379 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2865, allocations: 0 / 0.7878 GB, free: 8.379 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002502/0.2868, allocations: 19.94 kB / 0.7879 GB, free: 8.359 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.0001917/0.287, allocations: 107.2 kB / 0.788 GB, free: 8.246 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002513/0.2872, allocations: 71.89 kB / 0.788 GB, free: 8.176 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.2872, allocations: 0 / 0.788 GB, free: 8.176 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.000112/0.2873, allocations: 35.98 kB / 0.7881 GB, free: 8.141 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002591/0.2876, allocations: 8 kB / 0.7881 GB, free: 8.133 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003824/0.288, allocations: 143.7 kB / 0.7882 GB, free: 7.969 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003423/0.2884, allocations: 0.6848 MB / 0.7889 GB, free: 7.258 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 4.013e-05/0.2884, allocations: 3.984 kB / 0.7889 GB, free: 7.254 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.568e-05/0.2884, allocations: 11.44 kB / 0.7889 GB, free: 7.242 MB / 0.6075 GB Notification: Performance of SimCode: time 5.41e-07/0.2884, allocations: 0 / 0.7889 GB, free: 7.242 MB / 0.6075 GB Notification: Performance of Templates: time 0.003481/0.2919, allocations: 0.7516 MB / 0.7896 GB, free: 6.504 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)