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.701/1.701, allocations: 292.6 MB / 307.5 MB, free: 5.164 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.001048/0.001048, allocations: 185 kB / 377.1 MB, free: 1.516 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.788/1.788, allocations: 205.4 MB / 0.6367 GB, free: 8.531 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.0009249/0.0009249, allocations: 90.56 kB / 0.751 GB, free: 63.09 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003718/0.0003718, allocations: 8 kB / 0.8748 GB, free: 11.19 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3379/0.3383, allocations: 116.3 MB / 0.9884 GB, free: 6.727 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8387/1.177, allocations: 139 MB / 1.124 GB, free: 35.66 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002446/1.177, allocations: 71.08 kB / 1.124 GB, free: 35.6 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.003302/1.181, allocations: 1.097 MB / 1.125 GB, free: 34.75 MB / 0.7292 GB Notification: Performance of FrontEnd: time 2.104e-06/1.181, allocations: 0.5938 kB / 1.125 GB, free: 34.75 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 8.376e-06/1.181, allocations: 7.406 kB / 1.125 GB, free: 34.75 MB / 0.7292 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.0004971/1.181, allocations: 371.4 kB / 1.126 GB, free: 34.35 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 4.745e-05/1.181, allocations: 11.55 kB / 1.126 GB, free: 34.34 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.734e-05/1.181, allocations: 10.06 kB / 1.126 GB, free: 34.34 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001042/1.181, allocations: 165.8 kB / 1.126 GB, free: 34.14 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.83e-05/1.181, allocations: 7.031 kB / 1.126 GB, free: 34.13 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.829e-05/1.181, allocations: 7.438 kB / 1.126 GB, free: 34.13 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002094/1.182, allocations: 64.84 kB / 1.126 GB, free: 34.07 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.08e-05/1.182, allocations: 1.078 kB / 1.126 GB, free: 34.07 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.527e-05/1.182, allocations: 4.5 kB / 1.126 GB, free: 34.07 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.776e-06/1.182, allocations: 3.938 kB / 1.126 GB, free: 34.06 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001807/1.182, allocations: 57.88 kB / 1.126 GB, free: 34.02 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000529/1.182, allocations: 298.5 kB / 1.126 GB, free: 33.7 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000163/1.183, allocations: 63.88 kB / 1.126 GB, free: 33.64 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 2.516e-05/1.183, allocations: 0 / 1.126 GB, free: 33.64 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002315/1.183, allocations: 87.66 kB / 1.126 GB, free: 33.55 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=7): time 1.763e-06/1.183, allocations: 0 / 1.126 GB, free: 33.55 MB / 0.7292 GB Notification: Performance of matching and sorting (n=7): time 0.0004132/1.183, allocations: 139.4 kB / 1.126 GB, free: 33.43 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.779e-05/1.183, allocations: 59.39 kB / 1.127 GB, free: 33.36 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.231e-05/1.183, allocations: 101 kB / 1.127 GB, free: 33.26 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 1.259e-05/1.183, allocations: 31.78 kB / 1.127 GB, free: 33.23 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 3.568e-05/1.184, allocations: 84.14 kB / 1.127 GB, free: 33.14 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 2.194e-05/1.184, allocations: 19.19 kB / 1.127 GB, free: 33.12 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.23e-06/1.184, allocations: 0 / 1.127 GB, free: 33.12 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 7.547e-05/1.184, allocations: 318.8 kB / 1.127 GB, free: 32.8 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.64e-05/1.184, allocations: 38.5 kB / 1.127 GB, free: 32.77 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001004/1.184, allocations: 63.12 kB / 1.127 GB, free: 32.71 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.969e-05/1.184, allocations: 38.03 kB / 1.127 GB, free: 32.68 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.686e-06/1.184, allocations: 0 / 1.127 GB, free: 32.68 MB / 0.7292 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002574/1.184, allocations: 136.1 kB / 1.127 GB, free: 32.55 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.624e-05/1.184, allocations: 4 kB / 1.127 GB, free: 32.55 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.562e-06/1.184, allocations: 4 kB / 1.127 GB, free: 32.55 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.568e-05/1.184, allocations: 0 / 1.127 GB, free: 32.55 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001167/1.184, allocations: 19.38 kB / 1.127 GB, free: 32.53 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.052e-05/1.184, allocations: 5.797 kB / 1.127 GB, free: 32.53 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.68e-05/1.185, allocations: 16.12 kB / 1.127 GB, free: 32.52 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.218e-05/1.185, allocations: 7.938 kB / 1.127 GB, free: 32.51 MB / 0.7292 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 8.088e-05/1.185, allocations: 120.9 kB / 1.127 GB, free: 32.38 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.918e-05/1.185, allocations: 11.47 kB / 1.127 GB, free: 32.38 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002935/1.185, allocations: 120 kB / 1.128 GB, free: 32.27 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-06/1.185, allocations: 0.6875 kB / 1.128 GB, free: 32.27 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.171e-06/1.185, allocations: 4.656 kB / 1.128 GB, free: 32.27 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/1.185, allocations: 0 / 1.128 GB, free: 32.27 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003678/1.185, allocations: 373.9 kB / 1.128 GB, free: 31.88 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/1.185, allocations: 0 / 1.128 GB, free: 31.88 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.593e-05/1.185, allocations: 17.39 kB / 1.128 GB, free: 31.87 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.807e-06/1.185, allocations: 0 / 1.128 GB, free: 31.87 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.949e-06/1.185, allocations: 4 kB / 1.128 GB, free: 31.86 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/1.185, allocations: 0.8438 kB / 1.128 GB, free: 31.86 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/1.186, allocations: 0.625 kB / 1.128 GB, free: 31.86 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002483/1.186, allocations: 218.9 kB / 1.128 GB, free: 31.65 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 1.987e-05/1.186, allocations: 77.11 kB / 1.128 GB, free: 31.55 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.992e-05/1.186, allocations: 4.5 kB / 1.128 GB, free: 31.55 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.384e-05/1.186, allocations: 15.61 kB / 1.128 GB, free: 31.54 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.578e-05/1.186, allocations: 7.516 kB / 1.128 GB, free: 31.54 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.338e-06/1.186, allocations: 4.5 kB / 1.128 GB, free: 31.53 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 2.98e-05/1.186, allocations: 87.58 kB / 1.128 GB, free: 31.45 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.2e-07/1.186, allocations: 0.9375 kB / 1.128 GB, free: 31.45 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0002396/1.186, allocations: 16 kB / 1.128 GB, free: 31.43 MB / 0.7292 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.0001494/1.186, allocations: 111.6 kB / 1.129 GB, free: 31.32 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0002409/1.187, allocations: 82.86 kB / 1.129 GB, free: 31.25 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/1.187, allocations: 0 / 1.129 GB, free: 31.25 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0001113/1.187, allocations: 43.55 kB / 1.129 GB, free: 31.21 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001772/1.187, allocations: 8.625 kB / 1.129 GB, free: 31.21 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003165/1.187, allocations: 147.9 kB / 1.129 GB, free: 31.05 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001283/1.187, allocations: 0.688 MB / 1.129 GB, free: 30.34 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 3.14e-05/1.187, allocations: 4.188 kB / 1.129 GB, free: 30.34 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.367e-05/1.188, allocations: 15.05 kB / 1.129 GB, free: 30.33 MB / 0.7292 GB Notification: Performance of SimCode: time 4.21e-07/1.188, allocations: 0 / 1.129 GB, free: 30.33 MB / 0.7292 GB Notification: Performance of Templates: time 0.002802/1.19, allocations: 0.6963 MB / 1.13 GB, free: 29.94 MB / 0.7292 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)