Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegerReplicator.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.Utilities.Math.Examples.IntegerReplicator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegerReplicator") translateModel(Buildings.Utilities.Math.Examples.IntegerReplicator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegerReplicator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.3/1.3, allocations: 252 MB / 267.9 MB, free: 10.92 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.0009528/0.0009529, allocations: 170.4 kB / 327.5 MB, free: 2.148 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.404/1.404, allocations: 205.4 MB / 0.5785 GB, free: 20.18 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.0006831/0.0006831, allocations: 86.28 kB / 0.6831 GB, free: 12.82 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003333/0.0003333, allocations: 15.31 kB / 0.7974 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1698/0.1702, allocations: 106.3 MB / 0.9012 GB, free: 63.69 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1561/0.3263, allocations: 135.8 MB / 1.034 GB, free: 7.754 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002362/0.3266, allocations: 75.97 kB / 1.034 GB, free: 7.68 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01421/0.3408, allocations: 5.455 MB / 1.039 GB, free: 2.219 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.265e-06/0.3408, allocations: 0 / 1.039 GB, free: 2.219 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 1.595e-05/0.3408, allocations: 0 / 1.039 GB, free: 2.219 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0005727/0.3414, allocations: 0.4924 MB / 1.04 GB, free: 1.668 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.588e-05/0.3415, allocations: 8.031 kB / 1.04 GB, free: 1.66 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.333e-05/0.3415, allocations: 16.75 kB / 1.04 GB, free: 1.645 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003282/0.3419, allocations: 256.9 kB / 1.04 GB, free: 1.352 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.742e-05/0.3419, allocations: 8.375 kB / 1.04 GB, free: 1.344 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.529e-05/0.3419, allocations: 4.375 kB / 1.04 GB, free: 1.34 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001922/0.3421, allocations: 96.72 kB / 1.04 GB, free: 1.23 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.897e-06/0.3421, allocations: 192 / 1.04 GB, free: 1.23 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.723e-05/0.3421, allocations: 11.94 kB / 1.04 GB, free: 1.219 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.5e-05/0.3422, allocations: 0 / 1.04 GB, free: 1.219 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001023/0.3423, allocations: 35.97 kB / 1.04 GB, free: 1.184 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004886/0.3428, allocations: 388.5 kB / 1.04 GB, free: 0.7539 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001933/0.343, allocations: 90.61 kB / 1.041 GB, free: 0.6562 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.728e-05/0.3431, allocations: 32.83 kB / 1.041 GB, free: 0.6211 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.341e-05/0.3431, allocations: 4 kB / 1.041 GB, free: 0.6172 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001566/0.3432, allocations: 87.41 kB / 1.041 GB, free: 0.5195 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=8): time 1.613e-06/0.3433, allocations: 0 / 1.041 GB, free: 0.5195 MB / 0.6823 GB Notification: Performance of matching and sorting (n=8): time 0.0003307/0.3436, allocations: 145.7 kB / 1.041 GB, free: 380 kB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.94e-05/0.3437, allocations: 102.8 kB / 1.041 GB, free: 252 kB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002933/0.344, allocations: 263.7 kB / 1.041 GB, free: 15.98 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 2.131e-05/0.344, allocations: 29.7 kB / 1.041 GB, free: 15.94 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 7.341e-05/0.3441, allocations: 124 kB / 1.041 GB, free: 15.82 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 2.386e-05/0.3441, allocations: 11.81 kB / 1.041 GB, free: 15.8 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.202e-06/0.3441, allocations: 4 kB / 1.041 GB, free: 15.8 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001055/0.3442, allocations: 326.8 kB / 1.042 GB, free: 15.47 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.819e-05/0.3443, allocations: 31.92 kB / 1.042 GB, free: 15.44 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001026/0.3444, allocations: 84.19 kB / 1.042 GB, free: 15.34 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001382/0.3446, allocations: 73.77 kB / 1.042 GB, free: 15.27 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.3446, allocations: 0 / 1.042 GB, free: 15.27 MB / 0.698 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002219/0.3448, allocations: 117.3 kB / 1.042 GB, free: 15.15 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.43e-05/0.3448, allocations: 7.984 kB / 1.042 GB, free: 15.14 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.378e-06/0.3448, allocations: 0 / 1.042 GB, free: 15.14 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.435e-05/0.3449, allocations: 4 kB / 1.042 GB, free: 15.14 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.168e-05/0.3449, allocations: 8 kB / 1.042 GB, free: 15.13 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.85e-06/0.345, allocations: 0 / 1.042 GB, free: 15.13 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.746e-05/0.345, allocations: 19.95 kB / 1.042 GB, free: 15.11 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.478e-06/0.345, allocations: 4 kB / 1.042 GB, free: 15.11 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,$PRE.intTab.combiTimeTable.nextTimeEvent,intTab.combiTimeTable.nextTimeEvent,$PRE.intTab.combiTimeTable.nextTimeEventScaled,intTab.combiTimeTable.nextTimeEventScaled,intRep.u,intRep.y[1],intRep.y[2]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 8 * Array equations: 1 * 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.0001102/0.3452, allocations: 145.7 kB / 1.042 GB, free: 14.95 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.781e-05/0.3452, allocations: 15.81 kB / 1.042 GB, free: 14.94 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002503/0.3454, allocations: 134.9 kB / 1.042 GB, free: 14.8 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.394e-06/0.3455, allocations: 0 / 1.042 GB, free: 14.8 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.456e-06/0.3455, allocations: 0 / 1.042 GB, free: 14.8 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.976e-06/0.3455, allocations: 0 / 1.042 GB, free: 14.8 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001842/0.3457, allocations: 237.4 kB / 1.042 GB, free: 14.52 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.442e-06/0.3457, allocations: 0 / 1.042 GB, free: 14.52 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.054e-05/0.3457, allocations: 19.98 kB / 1.042 GB, free: 14.5 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.843e-06/0.3458, allocations: 0 / 1.042 GB, free: 14.5 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.659e-06/0.3458, allocations: 0 / 1.042 GB, free: 14.5 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.956e-06/0.3458, allocations: 4 kB / 1.042 GB, free: 14.49 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.3458, allocations: 0 / 1.042 GB, free: 14.49 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002305/0.346, allocations: 156.8 kB / 1.043 GB, free: 14.32 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 6.713e-05/0.3461, allocations: 108.9 kB / 1.043 GB, free: 14.2 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.511e-05/0.3461, allocations: 192 / 1.043 GB, free: 14.2 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.504e-05/0.3462, allocations: 4 kB / 1.043 GB, free: 14.19 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.779e-05/0.3462, allocations: 15.92 kB / 1.043 GB, free: 14.18 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.799e-06/0.3463, allocations: 3.984 kB / 1.043 GB, free: 14.17 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0001722/0.3464, allocations: 192.4 kB / 1.043 GB, free: 13.98 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3464, allocations: 0 / 1.043 GB, free: 13.98 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.000256/0.3467, allocations: 59.86 kB / 1.043 GB, free: 13.93 MB / 0.698 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 ($whenCondition1,intTab.combiTimeTable.nextTimeEvent,intTab.combiTimeTable.nextTimeEventScaled,intRep.u,intRep.y[1],intRep.y[2]) * Number of discrete states: 2 (intTab.combiTimeTable.nextTimeEvent,intTab.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 1 * 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.0008915/0.3476, allocations: 435.6 kB / 1.043 GB, free: 13.65 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0002353/0.3479, allocations: 83.89 kB / 1.044 GB, free: 13.57 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.3479, allocations: 0 / 1.044 GB, free: 13.57 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 9.696e-05/0.348, allocations: 43.91 kB / 1.044 GB, free: 13.53 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002755/0.3483, allocations: 48.7 kB / 1.044 GB, free: 13.48 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005078/0.3488, allocations: 330.1 kB / 1.044 GB, free: 13.14 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002576/0.349, allocations: 0.7243 MB / 1.045 GB, free: 12.39 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 8.64e-05/0.3491, allocations: 29.38 kB / 1.045 GB, free: 12.36 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.312e-05/0.3492, allocations: 15.44 kB / 1.045 GB, free: 12.34 MB / 0.698 GB Notification: Performance of SimCode: time 2.31e-07/0.3492, allocations: 0 / 1.045 GB, free: 12.34 MB / 0.698 GB Notification: Performance of Templates: time 0.005414/0.3546, allocations: 2.511 MB / 1.047 GB, free: 9.848 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegerReplicator.makefile (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegerReplicator.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegerReplicator -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1)