Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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.7.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.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.34/1.34, allocations: 252 MB / 267.9 MB, free: 10.93 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001004/0.001004, allocations: 178.7 kB / 327.6 MB, free: 2.164 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.586/1.586, allocations: 205.4 MB / 0.5785 GB, free: 20.17 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007253/0.0007253, allocations: 90.34 kB / 0.6831 GB, free: 12.84 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003854/0.0003855, allocations: 11.75 kB / 0.7974 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1999/0.2003, allocations: 106.3 MB / 0.9012 GB, free: 63.68 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1548/0.3552, allocations: 131.7 MB / 1.03 GB, free: 11.82 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000175/0.3554, allocations: 67.95 kB / 1.03 GB, free: 11.75 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.002268/0.3577, allocations: 0.9005 MB / 1.031 GB, free: 10.85 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.004e-06/0.3577, allocations: 0 / 1.031 GB, free: 10.85 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 5.28e-06/0.3577, allocations: 0 / 1.031 GB, free: 10.85 MB / 0.6823 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.0004294/0.3582, allocations: 367.4 kB / 1.031 GB, free: 10.44 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.871e-05/0.3582, allocations: 8.031 kB / 1.031 GB, free: 10.43 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.355e-05/0.3582, allocations: 12.84 kB / 1.031 GB, free: 10.42 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001077/0.3584, allocations: 168.3 kB / 1.031 GB, free: 10.21 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.527e-05/0.3584, allocations: 8.359 kB / 1.031 GB, free: 10.21 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.527e-05/0.3584, allocations: 8.375 kB / 1.031 GB, free: 10.2 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001744/0.3586, allocations: 62.23 kB / 1.031 GB, free: 10.13 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.035e-06/0.3586, allocations: 192 / 1.031 GB, free: 10.13 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.747e-05/0.3586, allocations: 15.92 kB / 1.031 GB, free: 10.12 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.817e-06/0.3586, allocations: 4 kB / 1.031 GB, free: 10.11 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001768/0.3588, allocations: 43.97 kB / 1.031 GB, free: 10.07 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004623/0.3593, allocations: 300.7 kB / 1.032 GB, free: 9.727 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001463/0.3594, allocations: 66.48 kB / 1.032 GB, free: 9.652 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.393e-05/0.3596, allocations: 40.95 kB / 1.032 GB, free: 9.609 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.03e-05/0.3596, allocations: 3.938 kB / 1.032 GB, free: 9.605 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002055/0.3598, allocations: 83.44 kB / 1.032 GB, free: 9.512 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=7): time 3.987e-06/0.3598, allocations: 0 / 1.032 GB, free: 9.512 MB / 0.6823 GB Notification: Performance of matching and sorting (n=7): time 0.0003714/0.3602, allocations: 137.6 kB / 1.032 GB, free: 9.371 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.079e-05/0.3602, allocations: 59.41 kB / 1.032 GB, free: 9.301 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.444e-05/0.3603, allocations: 101.8 kB / 1.032 GB, free: 9.191 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.486e-05/0.3603, allocations: 29.7 kB / 1.032 GB, free: 9.156 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 4.595e-05/0.3604, allocations: 92.05 kB / 1.032 GB, free: 9.062 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 1.903e-05/0.3604, allocations: 15.75 kB / 1.032 GB, free: 9.047 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.191e-06/0.3604, allocations: 4 kB / 1.032 GB, free: 9.043 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.000115/0.3605, allocations: 314.8 kB / 1.033 GB, free: 8.727 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.839e-05/0.3606, allocations: 27.98 kB / 1.033 GB, free: 8.699 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001171/0.3608, allocations: 72.2 kB / 1.033 GB, free: 8.613 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000206/0.361, allocations: 112.1 kB / 1.033 GB, free: 8.488 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.361, allocations: 0 / 1.033 GB, free: 8.488 MB / 0.6823 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002495/0.3612, allocations: 125.5 kB / 1.033 GB, free: 8.359 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.49e-05/0.3613, allocations: 4 kB / 1.033 GB, free: 8.355 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.3613, allocations: 7.938 kB / 1.033 GB, free: 8.348 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.157e-05/0.3613, allocations: 3.938 kB / 1.033 GB, free: 8.344 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001016/0.3614, allocations: 19.98 kB / 1.033 GB, free: 8.324 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.39e-06/0.3614, allocations: 0 / 1.033 GB, free: 8.324 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.359e-05/0.3615, allocations: 16.08 kB / 1.033 GB, free: 8.309 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.065e-06/0.3615, allocations: 4 kB / 1.033 GB, free: 8.305 MB / 0.6823 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.569e-05/0.3616, allocations: 119.5 kB / 1.033 GB, free: 8.18 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.918e-05/0.3616, allocations: 4 kB / 1.033 GB, free: 8.176 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002659/0.3619, allocations: 125.8 kB / 1.033 GB, free: 8.047 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.444e-06/0.3619, allocations: 0 / 1.033 GB, free: 8.047 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.3619, allocations: 0 / 1.033 GB, free: 8.047 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.636e-06/0.3619, allocations: 4 kB / 1.033 GB, free: 8.043 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004392/0.3624, allocations: 378.4 kB / 1.034 GB, free: 7.617 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.3624, allocations: 0 / 1.034 GB, free: 7.617 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.013e-05/0.3624, allocations: 15.98 kB / 1.034 GB, free: 7.602 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.3625, allocations: 0 / 1.034 GB, free: 7.602 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.536e-06/0.3625, allocations: 0 / 1.034 GB, free: 7.602 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.3625, allocations: 0 / 1.034 GB, free: 7.602 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.3625, allocations: 0 / 1.034 GB, free: 7.602 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003142/0.3628, allocations: 211.9 kB / 1.034 GB, free: 7.379 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 3.522e-05/0.3628, allocations: 81.02 kB / 1.034 GB, free: 7.281 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.949e-05/0.3629, allocations: 7.938 kB / 1.034 GB, free: 7.273 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.48e-05/0.363, allocations: 19.92 kB / 1.034 GB, free: 7.254 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.854e-05/0.363, allocations: 8 kB / 1.034 GB, free: 7.246 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.074e-05/0.363, allocations: 3.938 kB / 1.034 GB, free: 7.242 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 4.581e-05/0.3631, allocations: 87.27 kB / 1.034 GB, free: 7.156 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3631, allocations: 0 / 1.034 GB, free: 7.156 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.000209/0.3633, allocations: 12 kB / 1.034 GB, free: 7.145 MB / 0.6823 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 (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.0001198/0.3634, allocations: 99.19 kB / 1.034 GB, free: 7.039 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0002483/0.3637, allocations: 88.42 kB / 1.034 GB, free: 6.953 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.3637, allocations: 0 / 1.034 GB, free: 6.953 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001045/0.3638, allocations: 31.98 kB / 1.034 GB, free: 6.922 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002428/0.3641, allocations: 18.12 kB / 1.034 GB, free: 6.906 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003202/0.3644, allocations: 148.6 kB / 1.034 GB, free: 6.727 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002448/0.3646, allocations: 0.6809 MB / 1.035 GB, free: 6.02 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 3.346e-05/0.3647, allocations: 7.984 kB / 1.035 GB, free: 6.012 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.599e-05/0.3647, allocations: 15.44 kB / 1.035 GB, free: 5.996 MB / 0.6823 GB Notification: Performance of SimCode: time 2.5e-07/0.3647, allocations: 0 / 1.035 GB, free: 5.996 MB / 0.6823 GB Notification: Performance of Templates: time 0.002301/0.367, allocations: 0.5783 MB / 1.036 GB, free: 5.422 MB / 0.6823 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1)