Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Utilities.Math.Examples.IntegerReplicator.conf.json 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: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_7_0_0_Buildings_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.254/2.254, allocations: 251 MB / 265.9 MB, free: 11.69 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.001541/0.001542, allocations: 175.7 kB / 325.5 MB, free: 2.914 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.511/2.511, allocations: 205.4 MB / 0.5764 GB, free: 20.82 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.001202/0.001202, allocations: 96.98 kB / 0.6809 GB, free: 13.68 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0008516/0.0008518, allocations: 13.84 kB / 0.795 GB, free: 135.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.29/0.2909, allocations: 106.3 MB / 0.8988 GB, free: 65.5 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.3136/0.6046, allocations: 135.5 MB / 1.031 GB, free: 9.797 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003736/0.605, allocations: 79.95 kB / 1.031 GB, free: 9.719 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.03196/0.637, allocations: 5.412 MB / 1.037 GB, free: 4.305 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.585e-06/0.637, allocations: 0 / 1.037 GB, free: 4.305 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 3.442e-05/0.6371, allocations: 8 kB / 1.037 GB, free: 4.297 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.001192/0.6383, allocations: 0.5 MB / 1.037 GB, free: 3.742 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 6.346e-05/0.6384, allocations: 8.031 kB / 1.037 GB, free: 3.734 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.921e-05/0.6385, allocations: 34.56 kB / 1.037 GB, free: 3.691 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001099/0.6386, allocations: 15.77 kB / 1.037 GB, free: 3.676 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007288/0.6393, allocations: 255.7 kB / 1.037 GB, free: 3.383 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.725e-05/0.6394, allocations: 4 kB / 1.037 GB, free: 3.379 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.359e-05/0.6395, allocations: 15.92 kB / 1.037 GB, free: 3.363 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003906/0.6399, allocations: 100.2 kB / 1.037 GB, free: 3.25 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.307e-05/0.6399, allocations: 0 / 1.037 GB, free: 3.25 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.878e-05/0.64, allocations: 4 kB / 1.037 GB, free: 3.246 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.811e-05/0.64, allocations: 0 / 1.037 GB, free: 3.246 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002418/0.6403, allocations: 39.91 kB / 1.037 GB, free: 3.207 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001044/0.6413, allocations: 368.6 kB / 1.038 GB, free: 2.797 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005002/0.6419, allocations: 98.69 kB / 1.038 GB, free: 2.691 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.221e-05/0.6419, allocations: 0 / 1.038 GB, free: 2.691 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003311/0.6423, allocations: 83.34 kB / 1.038 GB, free: 2.598 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=8): time 3.487e-06/0.6423, allocations: 0 / 1.038 GB, free: 2.598 MB / 0.6823 GB Notification: Performance of matching and sorting (n=8): time 0.0008729/0.6432, allocations: 226.7 kB / 1.038 GB, free: 2.352 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.755e-05/0.6433, allocations: 114.8 kB / 1.038 GB, free: 2.215 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006474/0.6439, allocations: 242 kB / 1.039 GB, free: 1.973 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 4.858e-05/0.644, allocations: 29.7 kB / 1.039 GB, free: 1.938 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001406/0.6442, allocations: 116.1 kB / 1.039 GB, free: 1.82 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 5.485e-05/0.6442, allocations: 15.81 kB / 1.039 GB, free: 1.805 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.174e-05/0.6443, allocations: 0 / 1.039 GB, free: 1.805 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001778/0.6445, allocations: 326.8 kB / 1.039 GB, free: 1.477 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000186/0.6447, allocations: 31.97 kB / 1.039 GB, free: 1.445 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002598/0.6449, allocations: 76.2 kB / 1.039 GB, free: 1.355 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002028/0.6452, allocations: 32 kB / 1.039 GB, free: 1.324 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.578e-06/0.6452, allocations: 0 / 1.039 GB, free: 1.324 MB / 0.6823 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0005547/0.6458, allocations: 121.4 kB / 1.039 GB, free: 1.199 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 2.689e-05/0.6458, allocations: 4 kB / 1.039 GB, free: 1.195 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.189e-05/0.6458, allocations: 4 kB / 1.039 GB, free: 1.191 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.335e-05/0.6459, allocations: 4.031 kB / 1.039 GB, free: 1.188 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002135/0.6461, allocations: 19.94 kB / 1.039 GB, free: 1.168 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.287e-05/0.6461, allocations: 0 / 1.039 GB, free: 1.168 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000184/0.6463, allocations: 15.78 kB / 1.039 GB, free: 1.152 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.406e-05/0.6464, allocations: 8 kB / 1.039 GB, free: 1.145 MB / 0.6823 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.0002718/0.6467, allocations: 139.7 kB / 1.039 GB, free: 1 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.827e-05/0.6467, allocations: 15.81 kB / 1.039 GB, free: 0.9844 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006326/0.6474, allocations: 139.3 kB / 1.04 GB, free: 0.832 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.163e-05/0.6474, allocations: 0 / 1.04 GB, free: 0.832 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.488e-06/0.6475, allocations: 3.953 kB / 1.04 GB, free: 0.8281 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.6475, allocations: 0 / 1.04 GB, free: 0.8281 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004473/0.6479, allocations: 233.5 kB / 1.04 GB, free: 0.5508 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.509e-06/0.648, allocations: 0 / 1.04 GB, free: 0.5508 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001197/0.6481, allocations: 8 kB / 1.04 GB, free: 0.543 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.234e-06/0.6481, allocations: 0 / 1.04 GB, free: 0.543 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.382e-05/0.6482, allocations: 4 kB / 1.04 GB, free: 0.5391 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.398e-06/0.6482, allocations: 0 / 1.04 GB, free: 0.5391 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.792e-06/0.6482, allocations: 4.078 kB / 1.04 GB, free: 0.5352 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00059/0.6488, allocations: 156.8 kB / 1.04 GB, free: 372 kB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001436/0.649, allocations: 100.9 kB / 1.04 GB, free: 252 kB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.531e-05/0.6491, allocations: 4 kB / 1.04 GB, free: 248 kB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001479/0.6492, allocations: 7.984 kB / 1.04 GB, free: 240 kB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.519e-05/0.6493, allocations: 11.98 kB / 1.04 GB, free: 228 kB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.043e-05/0.6494, allocations: 0 / 1.04 GB, free: 228 kB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.0004518/0.6498, allocations: 204.3 kB / 1.04 GB, free: 24 kB / 0.6823 GB Notification: Performance of sort global known variables: time 5.41e-07/0.6499, allocations: 0 / 1.04 GB, free: 24 kB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0006977/0.6506, allocations: 59.81 kB / 1.04 GB, free: 15.96 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.002878/0.6535, allocations: 1.017 MB / 1.041 GB, free: 15.08 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0006827/0.6542, allocations: 91.88 kB / 1.041 GB, free: 14.99 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 5.651e-06/0.6543, allocations: 0 / 1.041 GB, free: 14.99 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0002163/0.6545, allocations: 35.98 kB / 1.041 GB, free: 14.96 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005654/0.6551, allocations: 37 kB / 1.042 GB, free: 14.92 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00368/0.6588, allocations: 1.126 MB / 1.043 GB, free: 13.73 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005388/0.6594, allocations: 0.7282 MB / 1.043 GB, free: 12.98 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.000243/0.6596, allocations: 25.38 kB / 1.043 GB, free: 12.96 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001915/0.6599, allocations: 51.42 kB / 1.043 GB, free: 12.91 MB / 0.698 GB Notification: Performance of SimCode: time 5.841e-06/0.6599, allocations: 0 / 1.043 GB, free: 12.91 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03409/0.694, allocations: 4.258 MB / 1.048 GB, free: 8.789 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003302/0.6944, allocations: 226.5 kB / 1.048 GB, free: 8.547 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.63/3.325, allocations: 0 / 1.048 GB, free: 8.547 MB / 0.698 GB