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.001219/0.001219, allocations: 105 kB / 15.98 MB, free: 6.348 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.001346/0.001346, allocations: 198.3 kB / 16.91 MB, free: 6.188 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.469/1.469, allocations: 205.1 MB / 222.8 MB, free: 4.707 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.722/1.722, allocations: 292.3 MB / 0.5492 GB, free: 13.59 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.001413/0.001414, allocations: 69.45 kB / 0.6717 GB, free: 26.48 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.293/0.2944, allocations: 114.6 MB / 0.7835 GB, free: 13.89 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.002248/0.2967, allocations: 0.7413 MB / 0.7842 GB, free: 13.15 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001544/0.2983, allocations: 1.056 MB / 0.7853 GB, free: 12.08 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.255e-05/0.2983, allocations: 0 / 0.7853 GB, free: 12.08 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 4.189e-05/0.2984, allocations: 7.922 kB / 0.7853 GB, free: 12.07 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 7.453e-05/0.2985, allocations: 3.984 kB / 0.7853 GB, free: 12.07 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003447/0.2988, allocations: 39.92 kB / 0.7853 GB, free: 12.03 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 9.706e-05/0.2989, allocations: 47.89 kB / 0.7854 GB, free: 11.98 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001148/0.2991, allocations: 8 kB / 0.7854 GB, free: 11.97 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 8.205e-05/0.2992, allocations: 23.86 kB / 0.7854 GB, free: 11.95 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 6.578e-05/0.2992, allocations: 27.91 kB / 0.7854 GB, free: 11.92 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.733e-05/0.2993, allocations: 4 kB / 0.7854 GB, free: 11.92 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 7.674e-05/0.2993, allocations: 19.98 kB / 0.7855 GB, free: 11.9 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.321e-05/0.2994, allocations: 11.92 kB / 0.7855 GB, free: 11.89 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 4.581e-05/0.2994, allocations: 23.92 kB / 0.7855 GB, free: 11.86 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.000127/0.2996, allocations: 39.92 kB / 0.7855 GB, free: 11.82 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.2996, allocations: 0 / 0.7855 GB, free: 11.82 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.645e-06/0.2996, allocations: 0 / 0.7855 GB, free: 11.82 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.694e-06/0.2996, allocations: 0 / 0.7855 GB, free: 11.82 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.0007114/0.3003, allocations: 375.6 kB / 0.7859 GB, free: 11.41 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.644e-05/0.3004, allocations: 11.97 kB / 0.7859 GB, free: 11.39 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.908e-05/0.3004, allocations: 8.844 kB / 0.7859 GB, free: 11.39 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001534/0.3006, allocations: 168.3 kB / 0.7861 GB, free: 11.18 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.603e-05/0.3006, allocations: 8.375 kB / 0.7861 GB, free: 11.18 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.681e-05/0.3006, allocations: 384 / 0.7861 GB, free: 11.18 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002331/0.3009, allocations: 70.16 kB / 0.7861 GB, free: 11.1 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.838e-06/0.3009, allocations: 192 / 0.7861 GB, free: 11.1 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.333e-05/0.3009, allocations: 3.938 kB / 0.7861 GB, free: 11.1 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.463e-06/0.3009, allocations: 4 kB / 0.7861 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001758/0.3011, allocations: 39.95 kB / 0.7862 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005288/0.3016, allocations: 280.8 kB / 0.7865 GB, free: 10.73 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001741/0.3018, allocations: 62.42 kB / 0.7865 GB, free: 10.66 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001081/0.3019, allocations: 36.95 kB / 0.7866 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.579e-05/0.302, allocations: 8.062 kB / 0.7866 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002253/0.3022, allocations: 79.36 kB / 0.7866 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=7): time 1.483e-06/0.3022, allocations: 0 / 0.7866 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7): time 0.0004304/0.3026, allocations: 121.6 kB / 0.7867 GB, free: 10.4 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.848e-05/0.3027, allocations: 51.41 kB / 0.7868 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.555e-05/0.3028, allocations: 109.8 kB / 0.7869 GB, free: 10.22 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.854e-05/0.3028, allocations: 25.7 kB / 0.7869 GB, free: 10.19 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.642e-05/0.3029, allocations: 92.05 kB / 0.787 GB, free: 10.09 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.303e-05/0.3029, allocations: 15.75 kB / 0.787 GB, free: 10.08 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.615e-05/0.303, allocations: 25.7 kB / 0.7871 GB, free: 10.05 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.000133/0.3031, allocations: 314.8 kB / 0.7874 GB, free: 9.73 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000108/0.3032, allocations: 27.97 kB / 0.7874 GB, free: 9.703 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001122/0.3033, allocations: 64.52 kB / 0.7874 GB, free: 9.625 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000201/0.3035, allocations: 100.1 kB / 0.7875 GB, free: 9.512 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.699e-06/0.3036, allocations: 4 kB / 0.7875 GB, free: 9.508 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002646/0.3038, allocations: 113.4 kB / 0.7877 GB, free: 9.391 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.611e-05/0.3038, allocations: 8 kB / 0.7877 GB, free: 9.383 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.62e-06/0.3039, allocations: 0 / 0.7877 GB, free: 9.383 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.611e-05/0.3039, allocations: 4 kB / 0.7877 GB, free: 9.379 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001141/0.304, allocations: 28.05 kB / 0.7877 GB, free: 9.352 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.095e-06/0.304, allocations: 3.938 kB / 0.7877 GB, free: 9.348 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.749e-05/0.3041, allocations: 8 kB / 0.7877 GB, free: 9.34 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.23e-05/0.3041, allocations: 3.984 kB / 0.7877 GB, free: 9.336 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.0001044/0.3042, allocations: 118 kB / 0.7878 GB, free: 9.211 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.068e-05/0.3042, allocations: 4 kB / 0.7878 GB, free: 9.207 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002833/0.3045, allocations: 113.9 kB / 0.7879 GB, free: 9.09 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-06/0.3045, allocations: 8 kB / 0.7879 GB, free: 9.082 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.87e-06/0.3046, allocations: 0 / 0.7879 GB, free: 9.082 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.3046, allocations: 0 / 0.7879 GB, free: 9.082 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004748/0.305, allocations: 362.4 kB / 0.7883 GB, free: 8.672 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.377e-06/0.3051, allocations: 3.984 kB / 0.7883 GB, free: 8.668 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.191e-05/0.3051, allocations: 11.94 kB / 0.7883 GB, free: 8.656 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.3051, allocations: 0 / 0.7883 GB, free: 8.656 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.604e-05/0.3052, allocations: 7.984 kB / 0.7883 GB, free: 8.648 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.626e-06/0.3052, allocations: 4 kB / 0.7883 GB, free: 8.645 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.3052, allocations: 0 / 0.7883 GB, free: 8.645 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002995/0.3055, allocations: 191.5 kB / 0.7885 GB, free: 8.441 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.632e-05/0.3055, allocations: 85 kB / 0.7886 GB, free: 8.34 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.772e-05/0.3056, allocations: 0 / 0.7886 GB, free: 8.34 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.743e-05/0.3057, allocations: 15.98 kB / 0.7886 GB, free: 8.324 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.986e-05/0.3057, allocations: 0 / 0.7886 GB, free: 8.324 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.857e-05/0.3057, allocations: 11.94 kB / 0.7886 GB, free: 8.312 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 5.337e-05/0.3058, allocations: 83.27 kB / 0.7887 GB, free: 8.23 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3058, allocations: 0 / 0.7887 GB, free: 8.23 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.00024/0.306, allocations: 19.94 kB / 0.7887 GB, free: 8.211 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.0001685/0.3062, allocations: 103.2 kB / 0.7888 GB, free: 8.102 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002705/0.3065, allocations: 75.88 kB / 0.7889 GB, free: 8.027 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.3065, allocations: 0 / 0.7889 GB, free: 8.027 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001076/0.3066, allocations: 31.97 kB / 0.7889 GB, free: 7.996 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002627/0.3069, allocations: 12.17 kB / 0.7889 GB, free: 7.984 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003899/0.3073, allocations: 179.4 kB / 0.7891 GB, free: 7.777 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003072/0.3076, allocations: 0.6807 MB / 0.7897 GB, free: 7.07 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.222e-05/0.3076, allocations: 11.44 kB / 0.7898 GB, free: 7.059 MB / 0.6075 GB Notification: Performance of SimCode: time 2.41e-07/0.3076, allocations: 3.938 kB / 0.7898 GB, free: 7.055 MB / 0.6075 GB Notification: Performance of Templates: time 0.002374/0.31, allocations: 0.9054 MB / 0.7906 GB, free: 6.152 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)