Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.147/2.147, allocations: 251.1 MB / 266.7 MB, free: 11.65 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.001416/0.001416, allocations: 189.5 kB / 326.2 MB, free: 2.879 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.45/2.45, allocations: 205.4 MB / 0.5772 GB, free: 20.8 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.000976/0.0009755, allocations: 86.06 kB / 0.6817 GB, free: 13.66 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0006725/0.0006727, allocations: 12.31 kB / 0.7957 GB, free: 135.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2214/0.2221, allocations: 106.3 MB / 0.8995 GB, free: 65.55 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.306/0.5282, allocations: 131.6 MB / 1.028 GB, free: 13.73 MB / 0.6824 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003238/0.5286, allocations: 75.95 kB / 1.028 GB, free: 13.65 MB / 0.6824 GB Notification: Performance of FrontEnd - DAE generated: time 0.004042/0.5326, allocations: 0.9603 MB / 1.029 GB, free: 12.69 MB / 0.6824 GB Notification: Performance of FrontEnd: time 2.205e-06/0.5327, allocations: 0 / 1.029 GB, free: 12.69 MB / 0.6824 GB Notification: Performance of Transformations before backend: time 7.494e-06/0.5327, allocations: 0 / 1.029 GB, free: 12.69 MB / 0.6824 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0007048/0.5334, allocations: 379.2 kB / 1.029 GB, free: 12.27 MB / 0.6824 GB Notification: Performance of prepare preOptimizeDAE: time 4.966e-05/0.5335, allocations: 12.03 kB / 1.029 GB, free: 12.25 MB / 0.6824 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.717e-05/0.5335, allocations: 0.9375 kB / 1.029 GB, free: 12.25 MB / 0.6824 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001417/0.5337, allocations: 172.3 kB / 1.03 GB, free: 12.05 MB / 0.6824 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.315e-05/0.5337, allocations: 4.375 kB / 1.03 GB, free: 12.04 MB / 0.6824 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.73e-05/0.5338, allocations: 8.375 kB / 1.03 GB, free: 12.04 MB / 0.6824 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003357/0.5341, allocations: 94.08 kB / 1.03 GB, free: 11.94 MB / 0.6824 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.03e-05/0.5341, allocations: 192 / 1.03 GB, free: 11.94 MB / 0.6824 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.04e-05/0.5342, allocations: 7.938 kB / 1.03 GB, free: 11.93 MB / 0.6824 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.112e-06/0.5342, allocations: 0 / 1.03 GB, free: 11.93 MB / 0.6824 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003668/0.5346, allocations: 67.95 kB / 1.03 GB, free: 11.86 MB / 0.6824 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008103/0.5354, allocations: 328.7 kB / 1.03 GB, free: 11.49 MB / 0.6824 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003333/0.5357, allocations: 94.41 kB / 1.03 GB, free: 11.39 MB / 0.6824 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002258/0.536, allocations: 44.84 kB / 1.03 GB, free: 11.34 MB / 0.6824 GB Notification: Performance of preOpt evalFunc (simulation): time 2.577e-05/0.536, allocations: 0 / 1.03 GB, free: 11.34 MB / 0.6824 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003747/0.5364, allocations: 99.36 kB / 1.03 GB, free: 11.23 MB / 0.6824 GB Notification: Performance of pre-optimization done (n=10): time 2.395e-06/0.5364, allocations: 0 / 1.03 GB, free: 11.23 MB / 0.6824 GB Notification: Performance of matching and sorting (n=10): time 0.0008808/0.5373, allocations: 189.9 kB / 1.031 GB, free: 11.04 MB / 0.6824 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.202e-05/0.5374, allocations: 55.41 kB / 1.031 GB, free: 10.98 MB / 0.6824 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001186/0.5375, allocations: 105.9 kB / 1.031 GB, free: 10.86 MB / 0.6824 GB Notification: Performance of collectPreVariables (initialization): time 3.814e-05/0.5376, allocations: 37.64 kB / 1.031 GB, free: 10.82 MB / 0.6824 GB Notification: Performance of collectInitialEqns (initialization): time 7.606e-05/0.5377, allocations: 88.36 kB / 1.031 GB, free: 10.73 MB / 0.6824 GB Notification: Performance of collectInitialBindings (initialization): time 4.369e-05/0.5377, allocations: 27.77 kB / 1.031 GB, free: 10.7 MB / 0.6824 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.106e-05/0.5377, allocations: 3.938 kB / 1.031 GB, free: 10.7 MB / 0.6824 GB Notification: Performance of setup shared object (initialization): time 0.0001611/0.5379, allocations: 326.8 kB / 1.031 GB, free: 10.37 MB / 0.6824 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002127/0.5381, allocations: 39.97 kB / 1.031 GB, free: 10.33 MB / 0.6824 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002398/0.5384, allocations: 71.41 kB / 1.031 GB, free: 10.25 MB / 0.6824 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002391/0.5386, allocations: 47.92 kB / 1.031 GB, free: 10.2 MB / 0.6824 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.5387, allocations: 0 / 1.031 GB, free: 10.2 MB / 0.6824 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0005666/0.5392, allocations: 149.5 kB / 1.031 GB, free: 10.05 MB / 0.6824 GB Notification: Performance of prepare postOptimizeDAE: time 2.555e-05/0.5393, allocations: 8 kB / 1.031 GB, free: 10.04 MB / 0.6824 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.616e-06/0.5393, allocations: 0 / 1.031 GB, free: 10.04 MB / 0.6824 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.019e-05/0.5393, allocations: 0 / 1.031 GB, free: 10.04 MB / 0.6824 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002283/0.5396, allocations: 27.92 kB / 1.031 GB, free: 10.01 MB / 0.6824 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.36e-05/0.5396, allocations: 8.078 kB / 1.031 GB, free: 10 MB / 0.6824 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001416/0.5397, allocations: 20.09 kB / 1.031 GB, free: 9.984 MB / 0.6824 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.947e-05/0.5398, allocations: 7.984 kB / 1.031 GB, free: 9.977 MB / 0.6824 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.firOrdHol.firstTrigger,firOrdHol.firstTrigger,$whenCondition1,firOrdHol.sampleTrigger,$PRE.firOrdHol.tSample,firOrdHol.tSample,$PRE.firOrdHol.uSample,firOrdHol.uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.pre_uSample,$PRE.firOrdHol.c,firOrdHol.c) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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 0.0001647/0.5399, allocations: 133.7 kB / 1.032 GB, free: 9.836 MB / 0.6824 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.104e-05/0.54, allocations: 0 / 1.032 GB, free: 9.836 MB / 0.6824 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006536/0.5406, allocations: 161.9 kB / 1.032 GB, free: 9.672 MB / 0.6824 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.819e-06/0.5407, allocations: 0 / 1.032 GB, free: 9.672 MB / 0.6824 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.119e-06/0.5407, allocations: 4 kB / 1.032 GB, free: 9.668 MB / 0.6824 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.599e-06/0.5407, allocations: 0 / 1.032 GB, free: 9.668 MB / 0.6824 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008778/0.5416, allocations: 422.2 kB / 1.032 GB, free: 9.199 MB / 0.6824 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.329e-06/0.5416, allocations: 0 / 1.032 GB, free: 9.199 MB / 0.6824 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001433/0.5418, allocations: 15.98 kB / 1.032 GB, free: 9.184 MB / 0.6824 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.07e-06/0.5418, allocations: 0 / 1.032 GB, free: 9.184 MB / 0.6824 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.8e-05/0.5418, allocations: 4 kB / 1.032 GB, free: 9.18 MB / 0.6824 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.944e-06/0.5418, allocations: 4 kB / 1.032 GB, free: 9.176 MB / 0.6824 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.5418, allocations: 0 / 1.032 GB, free: 9.176 MB / 0.6824 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006066/0.5424, allocations: 247.5 kB / 1.032 GB, free: 8.918 MB / 0.6824 GB Notification: Performance of postOpt removeConstants (simulation): time 6.514e-05/0.5425, allocations: 85.02 kB / 1.033 GB, free: 8.816 MB / 0.6824 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.055e-05/0.5426, allocations: 4 kB / 1.033 GB, free: 8.812 MB / 0.6824 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001775/0.5428, allocations: 15.98 kB / 1.033 GB, free: 8.797 MB / 0.6824 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.136e-05/0.5428, allocations: 7.984 kB / 1.033 GB, free: 8.789 MB / 0.6824 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.852e-05/0.5428, allocations: 7.938 kB / 1.033 GB, free: 8.781 MB / 0.6824 GB Notification: Performance of sorting global known variables: time 7.143e-05/0.5429, allocations: 87.27 kB / 1.033 GB, free: 8.695 MB / 0.6824 GB Notification: Performance of sort global known variables: time 3.9e-07/0.5429, allocations: 0 / 1.033 GB, free: 8.695 MB / 0.6824 GB Notification: Performance of remove unused functions: time 0.0003233/0.5433, allocations: 16 kB / 1.033 GB, free: 8.68 MB / 0.6824 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 (firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.firstTrigger,firOrdHol.tSample,firOrdHol.uSample,firOrdHol.pre_uSample,firOrdHol.c) * Number of discrete states: 2 (firOrdHol.uSample,firOrdHol.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001836/0.5435, allocations: 107.2 kB / 1.033 GB, free: 8.566 MB / 0.6824 GB Notification: Performance of simCode: created initialization part: time 0.0005257/0.544, allocations: 103.9 kB / 1.033 GB, free: 8.465 MB / 0.6824 GB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.544, allocations: 0 / 1.033 GB, free: 8.465 MB / 0.6824 GB Notification: Performance of simCode: created simulation system equations: time 0.0002454/0.5443, allocations: 56.09 kB / 1.033 GB, free: 8.41 MB / 0.6824 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003842/0.5447, allocations: 12 kB / 1.033 GB, free: 8.398 MB / 0.6824 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005666/0.5453, allocations: 169.3 kB / 1.033 GB, free: 8.195 MB / 0.6824 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003473/0.5456, allocations: 0.6965 MB / 1.034 GB, free: 7.473 MB / 0.6824 GB Notification: Performance of simCode: alias equations: time 5.891e-05/0.5457, allocations: 4.438 kB / 1.034 GB, free: 7.469 MB / 0.6824 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.038e-05/0.5458, allocations: 15.42 kB / 1.034 GB, free: 7.453 MB / 0.6824 GB Notification: Performance of SimCode: time 1.322e-06/0.5458, allocations: 0 / 1.034 GB, free: 7.453 MB / 0.6824 GB Notification: Performance of Templates: time 0.004126/0.5499, allocations: 0.7424 MB / 1.034 GB, free: 6.719 MB / 0.6824 GB make -j1 -f Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.makefile (rm -f Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; mkfifo Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; head -c 1048576 < Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe >> ../files/Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.sim & ./Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1)