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.001027/0.001027, allocations: 89.89 kB / 15.36 MB, free: 0.7383 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.01131/0.01131, allocations: 171.8 kB / 16.26 MB, free: 6.613 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.782/1.782, allocations: 205.4 MB / 222.4 MB, free: 5.559 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.913/1.913, allocations: 292.7 MB / 0.5502 GB, free: 14.46 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.0005608/0.0005609, allocations: 16.34 kB / 0.6743 GB, free: 25.91 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3225/0.323, allocations: 116.3 MB / 0.7879 GB, free: 11.56 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.001205/0.3243, allocations: 413.4 kB / 0.7883 GB, free: 11.16 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002232/0.3266, allocations: 1.052 MB / 0.7893 GB, free: 10.09 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.525e-05/0.3267, allocations: 4 kB / 0.7893 GB, free: 10.09 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 6.259e-05/0.3268, allocations: 3.938 kB / 0.7893 GB, free: 10.09 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 9.978e-05/0.3269, allocations: 0 / 0.7893 GB, free: 10.09 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004356/0.3273, allocations: 43.83 kB / 0.7894 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001494/0.3275, allocations: 47.86 kB / 0.7894 GB, free: 9.996 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001377/0.3277, allocations: 7.984 kB / 0.7894 GB, free: 9.988 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000113/0.3278, allocations: 19.92 kB / 0.7894 GB, free: 9.969 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 9.162e-05/0.3279, allocations: 19.91 kB / 0.7894 GB, free: 9.949 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.313e-05/0.3279, allocations: 8 kB / 0.7895 GB, free: 9.941 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001012/0.328, allocations: 19.98 kB / 0.7895 GB, free: 9.922 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.881e-05/0.3281, allocations: 7.938 kB / 0.7895 GB, free: 9.914 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 8.565e-05/0.3282, allocations: 45.61 kB / 0.7895 GB, free: 9.863 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002349/0.3284, allocations: 51.78 kB / 0.7896 GB, free: 9.812 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.249e-06/0.3284, allocations: 0 / 0.7896 GB, free: 9.812 MB / 0.6075 GB Notification: Performance of FrontEnd: time 5.831e-06/0.3284, allocations: 4 kB / 0.7896 GB, free: 9.809 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 8.145e-06/0.3285, allocations: 0 / 0.7896 GB, free: 9.809 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.000843/0.3293, allocations: 371.7 kB / 0.7899 GB, free: 9.395 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 6.769e-05/0.3294, allocations: 8.031 kB / 0.7899 GB, free: 9.387 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.242e-05/0.3295, allocations: 8.844 kB / 0.7899 GB, free: 9.379 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002054/0.3297, allocations: 164.3 kB / 0.7901 GB, free: 9.18 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.609e-05/0.3297, allocations: 12.31 kB / 0.7901 GB, free: 9.168 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.216e-05/0.3297, allocations: 384 / 0.7901 GB, free: 9.168 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003121/0.3301, allocations: 78.2 kB / 0.7902 GB, free: 9.086 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.015e-05/0.3301, allocations: 192 / 0.7902 GB, free: 9.086 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.188e-05/0.3301, allocations: 11.92 kB / 0.7902 GB, free: 9.074 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.122e-06/0.3301, allocations: 0 / 0.7902 GB, free: 9.074 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002518/0.3304, allocations: 51.95 kB / 0.7903 GB, free: 9.023 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006108/0.331, allocations: 280.8 kB / 0.7905 GB, free: 8.699 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002336/0.3313, allocations: 66.42 kB / 0.7906 GB, free: 8.625 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001409/0.3314, allocations: 44.95 kB / 0.7906 GB, free: 8.578 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 3.123e-05/0.3314, allocations: 0 / 0.7906 GB, free: 8.578 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002931/0.3317, allocations: 83.44 kB / 0.7907 GB, free: 8.484 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=7): time 1.723e-06/0.3318, allocations: 0 / 0.7907 GB, free: 8.484 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7): time 0.0006122/0.3324, allocations: 141.6 kB / 0.7908 GB, free: 8.34 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.872e-05/0.3325, allocations: 51.41 kB / 0.7909 GB, free: 8.277 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001275/0.3326, allocations: 105.9 kB / 0.791 GB, free: 8.164 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.866e-05/0.3326, allocations: 33.69 kB / 0.791 GB, free: 8.125 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.194e-05/0.3327, allocations: 88.05 kB / 0.7911 GB, free: 8.035 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.898e-05/0.3327, allocations: 15.75 kB / 0.7911 GB, free: 8.02 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.367e-05/0.3328, allocations: 21.7 kB / 0.7911 GB, free: 7.992 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001512/0.333, allocations: 310.8 kB / 0.7914 GB, free: 7.68 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00014/0.3331, allocations: 31.97 kB / 0.7915 GB, free: 7.648 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001706/0.3333, allocations: 72.2 kB / 0.7915 GB, free: 7.562 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003118/0.3336, allocations: 108.1 kB / 0.7916 GB, free: 7.441 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.77e-06/0.3336, allocations: 0 / 0.7916 GB, free: 7.441 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004006/0.334, allocations: 129.5 kB / 0.7918 GB, free: 7.309 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.508e-05/0.3341, allocations: 4 kB / 0.7918 GB, free: 7.305 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.568e-06/0.3341, allocations: 4 kB / 0.7918 GB, free: 7.301 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.801e-05/0.3341, allocations: 0 / 0.7918 GB, free: 7.301 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001737/0.3343, allocations: 27.91 kB / 0.7918 GB, free: 7.273 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.325e-06/0.3343, allocations: 4.125 kB / 0.7918 GB, free: 7.27 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.404e-05/0.3344, allocations: 11.91 kB / 0.7918 GB, free: 7.258 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.947e-05/0.3344, allocations: 8 kB / 0.7918 GB, free: 7.25 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.0001477/0.3346, allocations: 125.2 kB / 0.7919 GB, free: 7.121 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.792e-05/0.3346, allocations: 4 kB / 0.7919 GB, free: 7.117 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004274/0.3351, allocations: 121.9 kB / 0.7921 GB, free: 6.992 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.114e-06/0.3351, allocations: 4 kB / 0.7921 GB, free: 6.988 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.3351, allocations: 0 / 0.7921 GB, free: 6.988 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.96e-06/0.3351, allocations: 0 / 0.7921 GB, free: 6.988 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006641/0.3358, allocations: 370.4 kB / 0.7924 GB, free: 6.57 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.93e-06/0.3358, allocations: 4.25 kB / 0.7924 GB, free: 6.566 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.827e-05/0.3359, allocations: 19.92 kB / 0.7924 GB, free: 6.547 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.3359, allocations: 0 / 0.7924 GB, free: 6.547 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.181e-05/0.3359, allocations: 0 / 0.7924 GB, free: 6.547 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.609e-06/0.3359, allocations: 4 kB / 0.7924 GB, free: 6.543 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.3359, allocations: 0 / 0.7924 GB, free: 6.543 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004238/0.3364, allocations: 207.4 kB / 0.7926 GB, free: 6.324 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.428e-05/0.3365, allocations: 81.02 kB / 0.7927 GB, free: 6.227 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.368e-05/0.3365, allocations: 4.047 kB / 0.7927 GB, free: 6.223 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001459/0.3366, allocations: 23.97 kB / 0.7927 GB, free: 6.199 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.256e-05/0.3367, allocations: 3.984 kB / 0.7928 GB, free: 6.195 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.89e-05/0.3367, allocations: 7.938 kB / 0.7928 GB, free: 6.188 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 5.887e-05/0.3368, allocations: 83.28 kB / 0.7928 GB, free: 6.105 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.8e-07/0.3368, allocations: 0 / 0.7928 GB, free: 6.105 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003776/0.3372, allocations: 19.92 kB / 0.7929 GB, free: 6.086 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.0002035/0.3374, allocations: 103.2 kB / 0.793 GB, free: 5.977 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003686/0.3378, allocations: 83.89 kB / 0.793 GB, free: 5.895 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.549e-06/0.3378, allocations: 0 / 0.793 GB, free: 5.895 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001772/0.338, allocations: 44.7 kB / 0.7931 GB, free: 5.852 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003886/0.3384, allocations: 12.17 kB / 0.7931 GB, free: 5.84 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004759/0.3389, allocations: 148.6 kB / 0.7932 GB, free: 5.664 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003845/0.3393, allocations: 0.6809 MB / 0.7939 GB, free: 4.957 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 4.812e-05/0.3393, allocations: 11.98 kB / 0.7939 GB, free: 4.945 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.201e-05/0.3394, allocations: 11.44 kB / 0.7939 GB, free: 4.934 MB / 0.6075 GB Notification: Performance of SimCode: time 6.21e-07/0.3394, allocations: 0 / 0.7939 GB, free: 4.934 MB / 0.6075 GB Notification: Performance of Templates: time 0.004257/0.3437, allocations: 0.7272 MB / 0.7946 GB, free: 4.215 MB / 0.6075 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: