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/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) 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) 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/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.848/1.848, allocations: 292.3 MB / 308.1 MB, free: 4.312 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002441/0.002442, allocations: 184.5 kB / 376.9 MB, free: 1.84 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.926/1.926, allocations: 205 MB / 0.6353 GB, free: 9.816 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001039/0.001039, allocations: 92.31 kB / 0.748 GB, free: 61.17 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.001199/0.001199, allocations: 59.91 kB / 0.8704 GB, free: 13.11 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.32/0.3213, allocations: 114.6 MB / 0.9822 GB, free: 10.39 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.00304/0.3244, allocations: 0.735 MB / 0.983 GB, free: 9.645 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.002842/0.3273, allocations: 1.059 MB / 0.984 GB, free: 8.57 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.858e-05/0.3274, allocations: 0 / 0.984 GB, free: 8.57 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 6.433e-05/0.3275, allocations: 3.938 kB / 0.984 GB, free: 8.566 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 0.0001063/0.3276, allocations: 3.938 kB / 0.984 GB, free: 8.562 MB / 0.7136 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005211/0.3282, allocations: 39.95 kB / 0.984 GB, free: 8.523 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 0.0001657/0.3284, allocations: 47.8 kB / 0.9841 GB, free: 8.477 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001803/0.3285, allocations: 19.97 kB / 0.9841 GB, free: 8.457 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001469/0.3287, allocations: 19.92 kB / 0.9841 GB, free: 8.438 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 8.26e-05/0.3288, allocations: 19.92 kB / 0.9841 GB, free: 8.418 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 1.94e-05/0.3288, allocations: 0 / 0.9841 GB, free: 8.418 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 9.313e-05/0.3289, allocations: 19.98 kB / 0.9842 GB, free: 8.398 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 2.846e-05/0.3289, allocations: 7.984 kB / 0.9842 GB, free: 8.391 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 5.37e-05/0.329, allocations: 23.86 kB / 0.9842 GB, free: 8.367 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.0001991/0.3292, allocations: 51.84 kB / 0.9842 GB, free: 8.316 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 7.104e-06/0.3292, allocations: 0 / 0.9842 GB, free: 8.316 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.954e-06/0.3292, allocations: 0 / 0.9842 GB, free: 8.316 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 6.472e-06/0.3292, allocations: 0 / 0.9842 GB, free: 8.316 MB / 0.7136 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.0009522/0.3302, allocations: 371.7 kB / 0.9846 GB, free: 7.902 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 6.479e-05/0.3303, allocations: 8.031 kB / 0.9846 GB, free: 7.895 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.837e-05/0.3303, allocations: 4.844 kB / 0.9846 GB, free: 7.891 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002356/0.3306, allocations: 180.2 kB / 0.9848 GB, free: 7.676 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.677e-05/0.3306, allocations: 4.375 kB / 0.9848 GB, free: 7.672 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.951e-05/0.3306, allocations: 4.375 kB / 0.9848 GB, free: 7.668 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002683/0.3309, allocations: 70.22 kB / 0.9849 GB, free: 7.594 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.513e-05/0.3309, allocations: 192 / 0.9849 GB, free: 7.594 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.718e-05/0.331, allocations: 3.938 kB / 0.9849 GB, free: 7.59 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.187e-05/0.331, allocations: 0 / 0.9849 GB, free: 7.59 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001984/0.3312, allocations: 43.95 kB / 0.9849 GB, free: 7.547 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006546/0.3319, allocations: 284.7 kB / 0.9852 GB, free: 7.219 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001813/0.332, allocations: 58.48 kB / 0.9852 GB, free: 7.152 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001087/0.3322, allocations: 32.95 kB / 0.9853 GB, free: 7.117 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 9.933e-05/0.3323, allocations: 4 kB / 0.9853 GB, free: 7.113 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000344/0.3326, allocations: 79.44 kB / 0.9853 GB, free: 7.023 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=7): time 1.583e-06/0.3326, allocations: 0 / 0.9853 GB, free: 7.023 MB / 0.7136 GB Notification: Performance of matching and sorting (n=7): time 0.0004661/0.3331, allocations: 125.5 kB / 0.9855 GB, free: 6.895 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.02e-05/0.3332, allocations: 55.41 kB / 0.9855 GB, free: 6.828 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000119/0.3333, allocations: 113.7 kB / 0.9856 GB, free: 6.707 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 2.327e-05/0.3334, allocations: 25.7 kB / 0.9856 GB, free: 6.676 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 7.665e-05/0.3334, allocations: 84.14 kB / 0.9857 GB, free: 6.59 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 3.41e-05/0.3335, allocations: 27.73 kB / 0.9857 GB, free: 6.562 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.547e-05/0.3335, allocations: 21.72 kB / 0.9858 GB, free: 6.535 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001807/0.3337, allocations: 318.8 kB / 0.9861 GB, free: 6.215 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000109/0.3338, allocations: 23.98 kB / 0.9861 GB, free: 6.191 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001559/0.334, allocations: 60.2 kB / 0.9862 GB, free: 6.117 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002329/0.3343, allocations: 100.1 kB / 0.9862 GB, free: 6.004 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.3343, allocations: 0 / 0.9862 GB, free: 6.004 MB / 0.7136 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002878/0.3346, allocations: 117.5 kB / 0.9864 GB, free: 5.883 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 2.46e-05/0.3346, allocations: 8 kB / 0.9864 GB, free: 5.875 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.959e-06/0.3346, allocations: 0 / 0.9864 GB, free: 5.875 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.192e-05/0.3346, allocations: 0 / 0.9864 GB, free: 5.875 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001399/0.3348, allocations: 23.92 kB / 0.9864 GB, free: 5.852 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.025e-06/0.3348, allocations: 0 / 0.9864 GB, free: 5.852 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.671e-05/0.3349, allocations: 7.984 kB / 0.9864 GB, free: 5.844 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.315e-05/0.3349, allocations: 8.125 kB / 0.9864 GB, free: 5.836 MB / 0.7136 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.0001171/0.335, allocations: 117.8 kB / 0.9865 GB, free: 5.711 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.614e-05/0.335, allocations: 7.906 kB / 0.9865 GB, free: 5.703 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003097/0.3354, allocations: 110 kB / 0.9866 GB, free: 5.586 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.134e-06/0.3354, allocations: 7.969 kB / 0.9866 GB, free: 5.578 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.184e-06/0.3354, allocations: 0 / 0.9866 GB, free: 5.578 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.371e-06/0.3354, allocations: 4 kB / 0.9866 GB, free: 5.574 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004889/0.3359, allocations: 366.4 kB / 0.987 GB, free: 5.16 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.3359, allocations: 0 / 0.987 GB, free: 5.16 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.028e-05/0.336, allocations: 12.23 kB / 0.987 GB, free: 5.148 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.568e-06/0.336, allocations: 0 / 0.987 GB, free: 5.148 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.1e-05/0.336, allocations: 7.938 kB / 0.987 GB, free: 5.141 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.336, allocations: 0 / 0.987 GB, free: 5.141 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.336, allocations: 0 / 0.987 GB, free: 5.141 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007109/0.3367, allocations: 0.7746 MB / 0.9878 GB, free: 4.309 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 5.249e-05/0.3368, allocations: 77.11 kB / 0.9878 GB, free: 4.215 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.16e-05/0.3368, allocations: 3.938 kB / 0.9878 GB, free: 4.211 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.242e-05/0.3369, allocations: 11.98 kB / 0.9879 GB, free: 4.199 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.709e-05/0.337, allocations: 7.984 kB / 0.9879 GB, free: 4.191 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.623e-05/0.337, allocations: 8.188 kB / 0.9879 GB, free: 4.184 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 3.895e-05/0.337, allocations: 79.28 kB / 0.9879 GB, free: 4.105 MB / 0.7136 GB Notification: Performance of sort global known variables: time 9e-08/0.337, allocations: 3.938 kB / 0.988 GB, free: 4.102 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0003286/0.3374, allocations: 23.94 kB / 0.988 GB, free: 4.078 MB / 0.7136 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.0001941/0.3376, allocations: 103.2 kB / 0.9881 GB, free: 3.969 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0002665/0.3379, allocations: 71.89 kB / 0.9881 GB, free: 3.898 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.3379, allocations: 0 / 0.9881 GB, free: 3.898 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0001153/0.338, allocations: 39.89 kB / 0.9882 GB, free: 3.859 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002544/0.3383, allocations: 8 kB / 0.9882 GB, free: 3.852 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005229/0.3388, allocations: 270.3 kB / 0.9884 GB, free: 3.551 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004173/0.3392, allocations: 0.6809 MB / 0.9891 GB, free: 2.844 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 3.788e-05/0.3393, allocations: 11.92 kB / 0.9891 GB, free: 2.832 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.937e-05/0.3393, allocations: 11.44 kB / 0.9891 GB, free: 2.82 MB / 0.7136 GB Notification: Performance of SimCode: time 1.91e-07/0.3393, allocations: 0 / 0.9891 GB, free: 2.82 MB / 0.7136 GB Notification: Performance of Templates: time 0.003582/0.3429, allocations: 0.763 MB / 0.9899 GB, free: 2.062 MB / 0.7136 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)