Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.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.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_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_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.62/1.62, allocations: 285.4 MB / 298 MB, free: 5.984 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.00122/0.00122, allocations: 184.8 kB / 366.4 MB, free: 2.07 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.497/1.497, allocations: 205.1 MB / 0.6248 GB, free: 7.746 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.0007856/0.0007856, allocations: 101.7 kB / 0.738 GB, free: 40.25 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 3.646e-05/3.648e-05, allocations: 4 kB / 0.8583 GB, free: 13.08 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6029/0.603, allocations: 115.3 MB / 0.9709 GB, free: 77.71 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1721/0.7751, allocations: 137.9 MB / 1.106 GB, free: 13.9 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002166/0.7754, allocations: 73.39 kB / 1.106 GB, free: 13.83 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.00335/0.7788, allocations: 1.108 MB / 1.107 GB, free: 12.75 MB / 0.7136 GB Notification: Performance of FrontEnd: time 2.014e-06/0.7788, allocations: 0 / 1.107 GB, free: 12.75 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 7.313e-06/0.7788, allocations: 0 / 1.107 GB, free: 12.75 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.0004521/0.7792, allocations: 370.3 kB / 1.107 GB, free: 12.34 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.716e-05/0.7793, allocations: 9.562 kB / 1.107 GB, free: 12.33 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.433e-05/0.7794, allocations: 4 kB / 1.107 GB, free: 12.33 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001288/0.7795, allocations: 169.3 kB / 1.107 GB, free: 12.12 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.801e-05/0.7795, allocations: 7.984 kB / 1.107 GB, free: 12.12 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.494e-05/0.7795, allocations: 5.562 kB / 1.107 GB, free: 12.11 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000146/0.7797, allocations: 57.94 kB / 1.107 GB, free: 12.05 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.104e-06/0.7797, allocations: 0 / 1.107 GB, free: 12.05 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.109e-05/0.7797, allocations: 1.125 kB / 1.107 GB, free: 12.05 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.178e-06/0.7797, allocations: 0 / 1.107 GB, free: 12.05 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.39e-05/0.7798, allocations: 20 kB / 1.107 GB, free: 12.04 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005247/0.7803, allocations: 299.5 kB / 1.108 GB, free: 11.7 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001151/0.7805, allocations: 51.88 kB / 1.108 GB, free: 11.64 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.644e-05/0.7805, allocations: 20.98 kB / 1.108 GB, free: 11.61 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.75e-05/0.7806, allocations: 4.641 kB / 1.108 GB, free: 11.61 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001341/0.7807, allocations: 63.31 kB / 1.108 GB, free: 11.54 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=7): time 1.333e-06/0.7807, allocations: 0 / 1.108 GB, free: 11.54 MB / 0.7136 GB Notification: Performance of matching and sorting (n=7): time 0.0001963/0.7809, allocations: 80.39 kB / 1.108 GB, free: 11.46 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.245e-05/0.781, allocations: 51.41 kB / 1.108 GB, free: 11.39 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.811e-05/0.7811, allocations: 97 kB / 1.108 GB, free: 11.29 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.967e-05/0.7811, allocations: 29.64 kB / 1.108 GB, free: 11.26 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 5.115e-05/0.7811, allocations: 88.05 kB / 1.108 GB, free: 11.17 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 2.615e-05/0.7812, allocations: 23.73 kB / 1.108 GB, free: 11.14 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.65e-06/0.7812, allocations: 0.9062 kB / 1.108 GB, free: 11.14 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001372/0.7813, allocations: 322.8 kB / 1.108 GB, free: 10.82 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.266e-05/0.7814, allocations: 12.88 kB / 1.108 GB, free: 10.81 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.895e-05/0.7814, allocations: 52.56 kB / 1.108 GB, free: 10.75 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.652e-05/0.7815, allocations: 16.88 kB / 1.108 GB, free: 10.73 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.7815, allocations: 0 / 1.108 GB, free: 10.73 MB / 0.7136 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000141/0.7816, allocations: 97.53 kB / 1.109 GB, free: 10.63 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.371e-05/0.7817, allocations: 4.844 kB / 1.109 GB, free: 10.63 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.638e-06/0.7817, allocations: 4 kB / 1.109 GB, free: 10.62 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.106e-05/0.7817, allocations: 0 / 1.109 GB, free: 10.62 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001202/0.7818, allocations: 23.77 kB / 1.109 GB, free: 10.61 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.357e-05/0.7818, allocations: 7.938 kB / 1.109 GB, free: 10.6 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.368e-05/0.7819, allocations: 16.11 kB / 1.109 GB, free: 10.58 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.188e-05/0.7819, allocations: 4 kB / 1.109 GB, free: 10.58 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 ($PRE.zerOrdHol.firstTrigger,zerOrdHol.firstTrigger,$whenCondition1,zerOrdHol.sampleTrigger,$PRE.zerOrdHol.ySample,zerOrdHol.ySample) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.682e-05/0.782, allocations: 114.5 kB / 1.109 GB, free: 10.46 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.228e-05/0.782, allocations: 4 kB / 1.109 GB, free: 10.46 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002104/0.7823, allocations: 90.12 kB / 1.109 GB, free: 10.36 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.844e-06/0.7823, allocations: 1.406 kB / 1.109 GB, free: 10.36 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.7823, allocations: 0 / 1.109 GB, free: 10.36 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.7823, allocations: 3.984 kB / 1.109 GB, free: 10.36 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003002/0.7826, allocations: 340.7 kB / 1.109 GB, free: 9.969 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.7826, allocations: 4 kB / 1.109 GB, free: 9.965 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.346e-05/0.7827, allocations: 8 kB / 1.109 GB, free: 9.957 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.923e-06/0.7827, allocations: 0 / 1.109 GB, free: 9.957 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.446e-05/0.7827, allocations: 3.984 kB / 1.109 GB, free: 9.953 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.7827, allocations: 7.938 kB / 1.109 GB, free: 9.945 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.7827, allocations: 3.938 kB / 1.109 GB, free: 9.945 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000159/0.7829, allocations: 171.5 kB / 1.109 GB, free: 9.762 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 3.654e-05/0.783, allocations: 84.95 kB / 1.109 GB, free: 9.66 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.901e-05/0.783, allocations: 4 kB / 1.109 GB, free: 9.656 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001015/0.7831, allocations: 11.98 kB / 1.109 GB, free: 9.645 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.296e-05/0.7831, allocations: 7.984 kB / 1.109 GB, free: 9.637 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.038e-05/0.7832, allocations: 6.906 kB / 1.109 GB, free: 9.633 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 3.587e-05/0.7832, allocations: 87.22 kB / 1.11 GB, free: 9.547 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7832, allocations: 4 kB / 1.11 GB, free: 9.543 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002245/0.7834, allocations: 19.94 kB / 1.11 GB, free: 9.523 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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000156/0.7836, allocations: 116.6 kB / 1.11 GB, free: 9.402 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001191/0.7837, allocations: 43.92 kB / 1.11 GB, free: 9.359 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.7837, allocations: 0 / 1.11 GB, free: 9.359 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 4.943e-05/0.7838, allocations: 24 kB / 1.11 GB, free: 9.336 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001701/0.784, allocations: 4 kB / 1.11 GB, free: 9.332 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002276/0.7842, allocations: 93.31 kB / 1.11 GB, free: 9.219 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002072/0.7844, allocations: 0.6848 MB / 1.111 GB, free: 8.508 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 3.106e-05/0.7845, allocations: 4.328 kB / 1.111 GB, free: 8.504 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.838e-05/0.7845, allocations: 15.42 kB / 1.111 GB, free: 8.488 MB / 0.7136 GB Notification: Performance of SimCode: time 3.21e-07/0.7845, allocations: 0 / 1.111 GB, free: 8.488 MB / 0.7136 GB Notification: Performance of Templates: time 0.002654/0.7872, allocations: 0.7191 MB / 1.111 GB, free: 7.809 MB / 0.7136 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.makefile (rm -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.sim & ./Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1)