Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_master_IBPSA.Utilities.Math.Examples.IntegerReplicator.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package IBPSA with version 3.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 3.0.0-master/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(IBPSA.Utilities.Math.Examples.IntegerReplicator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_master_IBPSA.Utilities.Math.Examples.IntegerReplicator") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002443/0.002442, allocations: 357.2 kB / 15.94 MB, free: 6.207 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 3.0.0-master/package.mo): time 1.586/1.586, allocations: 165.8 MB / 182.5 MB, free: 5.461 MB / 138.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.879/3.879, allocations: 410.8 MB / 0.5995 GB, free: 15.11 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001701/0.001701, allocations: 206.7 kB / 0.6662 GB, free: 6.934 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000458/0.0004582, allocations: 12 kB / 0.7423 GB, free: 8.973 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3303/0.3308, allocations: 67.44 MB / 0.8081 GB, free: 28.8 MB / 378.7 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.IntegerReplicator): time 0.001787/0.3326, allocations: 1.443 MB / 0.8096 GB, free: 27.35 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001474/0.3342, allocations: 0.9224 MB / 0.8105 GB, free: 26.42 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.314e-05/0.3343, allocations: 0 / 0.8105 GB, free: 26.42 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002605/0.3345, allocations: 51.75 kB / 0.8105 GB, free: 26.37 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001898/0.3348, allocations: 63.72 kB / 0.8106 GB, free: 26.3 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005809/0.3354, allocations: 171.7 kB / 0.8107 GB, free: 26.14 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001558/0.3355, allocations: 123.6 kB / 0.8108 GB, free: 26.02 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.96e-05/0.3356, allocations: 21.11 kB / 0.8109 GB, free: 26 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.402e-05/0.3357, allocations: 47.78 kB / 0.8109 GB, free: 25.95 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.385e-05/0.3358, allocations: 55.75 kB / 0.811 GB, free: 25.9 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.786e-05/0.3359, allocations: 0 / 0.811 GB, free: 25.9 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001428/0.336, allocations: 63.83 kB / 0.811 GB, free: 25.84 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 5.897e-05/0.3361, allocations: 31.91 kB / 0.8111 GB, free: 25.8 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 4.217e-05/0.3361, allocations: 49.64 kB / 0.8111 GB, free: 25.75 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002006/0.3364, allocations: 149.8 kB / 0.8112 GB, free: 25.61 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.225e-06/0.3364, allocations: 0 / 0.8112 GB, free: 25.61 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.331e-06/0.3364, allocations: 7.875 kB / 0.8113 GB, free: 25.6 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.212e-05/0.3364, allocations: 0 / 0.8113 GB, free: 25.6 MB / 378.7 MB 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.000541/0.337, allocations: 456.4 kB / 0.8117 GB, free: 25.1 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.616e-05/0.337, allocations: 12.03 kB / 0.8117 GB, free: 25.09 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.489e-05/0.3371, allocations: 15.81 kB / 0.8117 GB, free: 25.07 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002735/0.3374, allocations: 243.6 kB / 0.8119 GB, free: 24.79 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.099e-05/0.3374, allocations: 8 kB / 0.812 GB, free: 24.78 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.176e-05/0.3374, allocations: 15.94 kB / 0.812 GB, free: 24.77 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002463/0.3377, allocations: 92.17 kB / 0.8121 GB, free: 24.66 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.138e-05/0.3377, allocations: 3.984 kB / 0.8121 GB, free: 24.66 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.5e-05/0.3377, allocations: 0 / 0.8121 GB, free: 24.66 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.867e-05/0.3378, allocations: 0 / 0.8121 GB, free: 24.66 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000147/0.3379, allocations: 39.97 kB / 0.8121 GB, free: 24.62 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000645/0.3386, allocations: 360.6 kB / 0.8124 GB, free: 24.21 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002929/0.3389, allocations: 82.66 kB / 0.8125 GB, free: 24.12 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001057/0.339, allocations: 32.84 kB / 0.8126 GB, free: 24.09 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.581e-05/0.3391, allocations: 4.031 kB / 0.8126 GB, free: 24.09 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002331/0.3393, allocations: 87.31 kB / 0.8126 GB, free: 23.99 MB / 378.7 MB Notification: Performance of pre-optimization done (n=8): time 2.788e-06/0.3393, allocations: 0 / 0.8126 GB, free: 23.99 MB / 378.7 MB Notification: Performance of matching and sorting (n=8): time 0.0004142/0.3398, allocations: 141.4 kB / 0.8128 GB, free: 23.84 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.817e-05/0.3398, allocations: 102.8 kB / 0.8129 GB, free: 23.72 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002703/0.3401, allocations: 259 kB / 0.8131 GB, free: 23.46 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.879e-05/0.3401, allocations: 29.7 kB / 0.8132 GB, free: 23.42 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.847e-05/0.3402, allocations: 124.1 kB / 0.8133 GB, free: 23.3 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.919e-05/0.3403, allocations: 23.59 kB / 0.8133 GB, free: 23.27 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.829e-06/0.3403, allocations: 4 kB / 0.8133 GB, free: 23.27 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.579e-05/0.3403, allocations: 330.8 kB / 0.8136 GB, free: 22.94 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9e-05/0.3404, allocations: 23.98 kB / 0.8136 GB, free: 22.91 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001155/0.3406, allocations: 68.27 kB / 0.8137 GB, free: 22.83 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001027/0.3407, allocations: 31.98 kB / 0.8137 GB, free: 22.8 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.3407, allocations: 0 / 0.8137 GB, free: 22.8 MB / 378.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002725/0.341, allocations: 117.4 kB / 0.8138 GB, free: 22.68 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.561e-05/0.341, allocations: 4 kB / 0.8138 GB, free: 22.68 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.23e-06/0.341, allocations: 4 kB / 0.8138 GB, free: 22.67 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.36e-05/0.3411, allocations: 0 / 0.8138 GB, free: 22.67 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001201/0.3412, allocations: 11.98 kB / 0.8139 GB, free: 22.66 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.548e-06/0.3412, allocations: 4 kB / 0.8139 GB, free: 22.66 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001045/0.3413, allocations: 12.03 kB / 0.8139 GB, free: 22.64 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.265e-05/0.3414, allocations: 0 / 0.8139 GB, free: 22.64 MB / 378.7 MB 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.y,intTab.combiTimeTable.nextTimeEvent,$PRE.intTab.combiTimeTable.nextTimeEventScaled,intTab.combiTimeTable.nextTimeEventScaled,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.0001281/0.3415, allocations: 151.1 kB / 0.814 GB, free: 22.49 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.284e-05/0.3415, allocations: 15.81 kB / 0.814 GB, free: 22.48 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.205e-05/0.3416, allocations: 25.39 kB / 0.8141 GB, free: 22.45 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-05/0.3416, allocations: 0 / 0.8141 GB, free: 22.45 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.207e-06/0.3416, allocations: 0 / 0.8141 GB, free: 22.45 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.93e-06/0.3417, allocations: 4 kB / 0.8141 GB, free: 22.45 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001917/0.3419, allocations: 229.5 kB / 0.8143 GB, free: 22.18 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.268e-06/0.3419, allocations: 4 kB / 0.8143 GB, free: 22.17 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.176e-05/0.3419, allocations: 7.984 kB / 0.8143 GB, free: 22.16 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.638e-06/0.342, allocations: 3.938 kB / 0.8143 GB, free: 22.16 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.317e-05/0.342, allocations: 4.188 kB / 0.8143 GB, free: 22.16 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.627e-06/0.342, allocations: 0 / 0.8143 GB, free: 22.16 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.258e-06/0.342, allocations: 7.938 kB / 0.8143 GB, free: 22.15 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003067/0.3423, allocations: 140.8 kB / 0.8144 GB, free: 21.99 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.311e-05/0.3424, allocations: 92.92 kB / 0.8145 GB, free: 21.88 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.785e-05/0.3424, allocations: 11.98 kB / 0.8145 GB, free: 21.87 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.187e-05/0.3426, allocations: 4 kB / 0.8145 GB, free: 21.87 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.364e-05/0.3426, allocations: 7.984 kB / 0.8146 GB, free: 21.86 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.713e-05/0.3426, allocations: 4 kB / 0.8146 GB, free: 21.86 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001887/0.3428, allocations: 200.4 kB / 0.8147 GB, free: 21.66 MB / 378.7 MB Notification: Performance of sort global known variables: time 7.67e-07/0.3429, allocations: 0 / 0.8147 GB, free: 21.66 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003322/0.3432, allocations: 31.91 kB / 0.8148 GB, free: 21.63 MB / 378.7 MB 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.y,intTab.combiTimeTable.nextTimeEvent,intTab.combiTimeTable.nextTimeEventScaled,intRep.y[1],intRep.y[2]) * Number of discrete states: 2 (intTab.combiTimeTable.nextTimeEventScaled,intTab.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * 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.001411/0.3446, allocations: 438.2 kB / 0.8152 GB, free: 21.36 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002753/0.3449, allocations: 63.91 kB / 0.8153 GB, free: 21.29 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.519e-06/0.3449, allocations: 4 kB / 0.8153 GB, free: 21.29 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001123/0.3451, allocations: 35.92 kB / 0.8153 GB, free: 21.25 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003679/0.3455, allocations: 39.89 kB / 0.8153 GB, free: 21.21 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005852/0.3461, allocations: 310.1 kB / 0.8156 GB, free: 20.89 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001705/0.3462, allocations: 0.7321 MB / 0.8163 GB, free: 20.13 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001039/0.3464, allocations: 25.38 kB / 0.8164 GB, free: 20.11 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.353e-05/0.3464, allocations: 15.44 kB / 0.8164 GB, free: 20.09 MB / 378.7 MB Notification: Performance of SimCode: time 1.697e-06/0.3464, allocations: 0 / 0.8164 GB, free: 20.09 MB / 378.7 MB Notification: Performance of Templates: time 0.00695/0.3534, allocations: 2.351 MB / 0.8187 GB, free: 17.76 MB / 378.7 MB