Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.1-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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.1-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.1-maint.8.1.x/package.mo): time 1.733/1.733, allocations: 293 MB / 309 MB, free: 4.801 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.001046/0.001046, allocations: 176.5 kB / 378.7 MB, free: 1.016 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.595/1.595, allocations: 205.4 MB / 0.6383 GB, free: 9.07 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.0007711/0.0007709, allocations: 94.27 kB / 0.7527 GB, free: 62.31 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003819/0.000382, allocations: 15.98 kB / 0.8768 GB, free: 10.55 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2482/0.2486, allocations: 116.4 MB / 0.9905 GB, free: 5.996 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7563/1.005, allocations: 139.5 MB / 1.127 GB, free: 34.47 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002795/1.005, allocations: 70.41 kB / 1.127 GB, free: 34.41 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.006023/1.011, allocations: 2.284 MB / 1.129 GB, free: 32.76 MB / 0.7292 GB Notification: Performance of FrontEnd: time 2.214e-06/1.011, allocations: 0 / 1.129 GB, free: 32.76 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 7.825e-06/1.011, allocations: 0 / 1.129 GB, free: 32.76 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0005171/1.012, allocations: 416.8 kB / 1.129 GB, free: 32.31 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 4.367e-05/1.012, allocations: 8.031 kB / 1.129 GB, free: 32.3 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.42e-05/1.012, allocations: 9.734 kB / 1.129 GB, free: 32.29 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001138/1.012, allocations: 179.8 kB / 1.13 GB, free: 32.08 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.308e-05/1.012, allocations: 1.031 kB / 1.13 GB, free: 32.08 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.579e-05/1.012, allocations: 12.38 kB / 1.13 GB, free: 32.07 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002098/1.012, allocations: 81.08 kB / 1.13 GB, free: 32 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.916e-06/1.012, allocations: 192 / 1.13 GB, free: 32 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.555e-05/1.013, allocations: 5.266 kB / 1.13 GB, free: 32 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.463e-06/1.013, allocations: 4 kB / 1.13 GB, free: 31.99 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001734/1.013, allocations: 50.5 kB / 1.13 GB, free: 31.95 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006161/1.013, allocations: 360.6 kB / 1.13 GB, free: 31.6 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001772/1.014, allocations: 62.64 kB / 1.13 GB, free: 31.54 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001027/1.014, allocations: 39.83 kB / 1.13 GB, free: 31.5 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 2.945e-05/1.014, allocations: 3.938 kB / 1.13 GB, free: 31.5 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002826/1.014, allocations: 93.41 kB / 1.13 GB, free: 31.41 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=8): time 1.723e-06/1.014, allocations: 8 kB / 1.13 GB, free: 31.4 MB / 0.7292 GB Notification: Performance of matching and sorting (n=8): time 0.000452/1.014, allocations: 159.5 kB / 1.13 GB, free: 31.26 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.587e-05/1.014, allocations: 55.39 kB / 1.13 GB, free: 31.2 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.619e-05/1.015, allocations: 128.9 kB / 1.131 GB, free: 31.07 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 2.084e-05/1.015, allocations: 25.7 kB / 1.131 GB, free: 31.04 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 6.085e-05/1.015, allocations: 96.05 kB / 1.131 GB, free: 30.94 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 2.27e-05/1.015, allocations: 15.23 kB / 1.131 GB, free: 30.93 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.303e-05/1.015, allocations: 8 kB / 1.131 GB, free: 30.92 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 8.897e-05/1.015, allocations: 323.1 kB / 1.131 GB, free: 30.6 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001459/1.015, allocations: 58.17 kB / 1.131 GB, free: 30.55 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001664/1.015, allocations: 91.47 kB / 1.131 GB, free: 30.45 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002536/1.015, allocations: 161.2 kB / 1.131 GB, free: 30.29 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/1.015, allocations: 4 kB / 1.131 GB, free: 30.28 MB / 0.7292 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003982/1.016, allocations: 219.4 kB / 1.132 GB, free: 30.08 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 3.572e-05/1.016, allocations: 37.17 kB / 1.132 GB, free: 30.04 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.784e-06/1.016, allocations: 4.797 kB / 1.132 GB, free: 30.04 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.841e-05/1.016, allocations: 8.156 kB / 1.132 GB, free: 30.03 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001042/1.016, allocations: 23.5 kB / 1.132 GB, free: 30.01 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.995e-06/1.016, allocations: 1.438 kB / 1.132 GB, free: 30.01 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000196/1.016, allocations: 54.25 kB / 1.132 GB, free: 29.96 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.065e-05/1.016, allocations: 8 kB / 1.132 GB, free: 29.96 MB / 0.7292 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.triSam1.y,triSam1.y,$PRE.triSam.y,triSam.y,$whenCondition3,$PRE.booPul.y,booPul.y,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 1 * 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.177e-05/1.016, allocations: 129.9 kB / 1.132 GB, free: 29.82 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.416e-05/1.016, allocations: 4 kB / 1.132 GB, free: 29.82 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002795/1.017, allocations: 135.1 kB / 1.132 GB, free: 29.7 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.471e-06/1.017, allocations: 1.344 kB / 1.132 GB, free: 29.7 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/1.017, allocations: 0 / 1.132 GB, free: 29.7 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/1.017, allocations: 0 / 1.132 GB, free: 29.7 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003659/1.017, allocations: 391 kB / 1.132 GB, free: 29.29 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/1.017, allocations: 1.625 kB / 1.132 GB, free: 29.29 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.962e-05/1.017, allocations: 19.61 kB / 1.132 GB, free: 29.28 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.365e-06/1.017, allocations: 0 / 1.132 GB, free: 29.28 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.458e-06/1.017, allocations: 0 / 1.132 GB, free: 29.28 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/1.017, allocations: 0 / 1.132 GB, free: 29.28 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/1.017, allocations: 4.688 kB / 1.132 GB, free: 29.27 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002654/1.017, allocations: 229.5 kB / 1.133 GB, free: 29.05 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 2.866e-05/1.018, allocations: 86.47 kB / 1.133 GB, free: 28.95 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.529e-05/1.018, allocations: 0.5625 kB / 1.133 GB, free: 28.95 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.01e-05/1.018, allocations: 11.47 kB / 1.133 GB, free: 28.94 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.338e-05/1.018, allocations: 15.5 kB / 1.133 GB, free: 28.93 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.042e-05/1.018, allocations: 4.562 kB / 1.133 GB, free: 28.93 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 4.711e-05/1.018, allocations: 95.42 kB / 1.133 GB, free: 28.84 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.3e-07/1.018, allocations: 0 / 1.133 GB, free: 28.84 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0002725/1.018, allocations: 32.88 kB / 1.133 GB, free: 28.8 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: 6 ($whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triSam.y,triSam1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0001791/1.018, allocations: 110.6 kB / 1.133 GB, free: 28.69 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0003588/1.019, allocations: 192.4 kB / 1.133 GB, free: 28.51 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/1.019, allocations: 0 / 1.133 GB, free: 28.51 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0001196/1.019, allocations: 44.58 kB / 1.133 GB, free: 28.48 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002826/1.019, allocations: 16.25 kB / 1.133 GB, free: 28.47 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004037/1.019, allocations: 189 kB / 1.133 GB, free: 28.27 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001758/1.02, allocations: 0.6917 MB / 1.134 GB, free: 27.56 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 4.194e-05/1.02, allocations: 4 kB / 1.134 GB, free: 27.56 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.478e-05/1.02, allocations: 11.44 kB / 1.134 GB, free: 27.55 MB / 0.7292 GB Notification: Performance of SimCode: time 7.11e-07/1.02, allocations: 0 / 1.134 GB, free: 27.55 MB / 0.7292 GB Notification: Performance of Templates: time 0.003826/1.024, allocations: 1.284 MB / 1.135 GB, free: 26.84 MB / 0.7292 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.makefile (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.sim & ./Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe 2>&1)