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.394/1.394, allocations: 251.5 MB / 267.4 MB, free: 11.04 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.0009801/0.00098, allocations: 175.8 kB / 326.5 MB, free: 2.668 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.93/1.93, allocations: 205 MB / 0.5766 GB, free: 20.55 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.0007975/0.0007976, allocations: 80.09 kB / 0.6804 GB, free: 14.3 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004472/0.0004472, allocations: 11.52 kB / 0.7938 GB, free: 136.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2975/0.298, allocations: 105.4 MB / 0.8967 GB, free: 67.69 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.0023/0.3004, allocations: 1.513 MB / 0.8982 GB, free: 66.16 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001492/0.3019, allocations: 1.019 MB / 0.8992 GB, free: 65.14 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.33e-05/0.302, allocations: 3.938 kB / 0.8992 GB, free: 65.13 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0003345/0.3023, allocations: 51.86 kB / 0.8993 GB, free: 65.08 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0001725/0.3025, allocations: 71.73 kB / 0.8993 GB, free: 65.01 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004755/0.303, allocations: 181.2 kB / 0.8995 GB, free: 64.84 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0001853/0.3032, allocations: 131.6 kB / 0.8996 GB, free: 64.71 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000112/0.3033, allocations: 21.11 kB / 0.8997 GB, free: 64.69 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 8.502e-05/0.3034, allocations: 63.64 kB / 0.8997 GB, free: 64.62 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 8.714e-05/0.3035, allocations: 59.75 kB / 0.8998 GB, free: 64.57 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.844e-05/0.3035, allocations: 0 / 0.8998 GB, free: 64.57 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001222/0.3037, allocations: 59.97 kB / 0.8998 GB, free: 64.51 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 6.774e-05/0.3037, allocations: 35.83 kB / 0.8999 GB, free: 64.47 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 6.045e-05/0.3038, allocations: 55.61 kB / 0.8999 GB, free: 64.42 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0001839/0.304, allocations: 139.8 kB / 0.9 GB, free: 64.28 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.159e-06/0.304, allocations: 4 kB / 0.9001 GB, free: 64.28 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.204e-06/0.304, allocations: 0 / 0.9001 GB, free: 64.28 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 5.991e-06/0.304, allocations: 0 / 0.9001 GB, free: 64.28 MB / 0.6042 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.0006016/0.3046, allocations: 472.4 kB / 0.9005 GB, free: 63.76 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.909e-05/0.3047, allocations: 8.031 kB / 0.9005 GB, free: 63.75 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.257e-05/0.3047, allocations: 16.75 kB / 0.9005 GB, free: 63.74 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002572/0.305, allocations: 248.8 kB / 0.9008 GB, free: 63.45 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.058e-05/0.305, allocations: 8.375 kB / 0.9008 GB, free: 63.45 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.464e-05/0.305, allocations: 8.125 kB / 0.9008 GB, free: 63.44 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001947/0.3052, allocations: 104.1 kB / 0.9009 GB, free: 63.32 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.696e-06/0.3053, allocations: 0 / 0.9009 GB, free: 63.32 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.431e-05/0.3053, allocations: 4 kB / 0.9009 GB, free: 63.32 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.181e-05/0.3053, allocations: 0 / 0.9009 GB, free: 63.32 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.848e-05/0.3054, allocations: 35.98 kB / 0.9009 GB, free: 63.28 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004455/0.3059, allocations: 356.7 kB / 0.9013 GB, free: 62.88 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002004/0.3061, allocations: 86.69 kB / 0.9013 GB, free: 62.79 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.576e-05/0.3062, allocations: 32.84 kB / 0.9014 GB, free: 62.75 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.264e-05/0.3062, allocations: 0 / 0.9014 GB, free: 62.75 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000199/0.3064, allocations: 83.38 kB / 0.9015 GB, free: 62.66 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=8): time 1.502e-06/0.3064, allocations: 0 / 0.9015 GB, free: 62.66 MB / 0.6042 GB Notification: Performance of matching and sorting (n=8): time 0.0003212/0.3067, allocations: 145.4 kB / 0.9016 GB, free: 62.51 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.626e-05/0.3068, allocations: 102.8 kB / 0.9017 GB, free: 62.39 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002057/0.307, allocations: 267.7 kB / 0.9019 GB, free: 62.12 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.474e-05/0.307, allocations: 29.7 kB / 0.902 GB, free: 62.08 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 5.786e-05/0.3071, allocations: 116.1 kB / 0.9021 GB, free: 61.96 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.194e-05/0.3071, allocations: 23.66 kB / 0.9021 GB, free: 61.94 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.247e-05/0.3072, allocations: 21.7 kB / 0.9021 GB, free: 61.91 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.709e-05/0.3072, allocations: 330.7 kB / 0.9024 GB, free: 61.58 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.156e-05/0.3073, allocations: 23.98 kB / 0.9025 GB, free: 61.56 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.581e-05/0.3074, allocations: 72.27 kB / 0.9025 GB, free: 61.47 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001213/0.3075, allocations: 73.64 kB / 0.9026 GB, free: 61.39 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.3075, allocations: 0 / 0.9026 GB, free: 61.39 MB / 0.6042 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001808/0.3077, allocations: 113.4 kB / 0.9027 GB, free: 61.28 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.332e-05/0.3077, allocations: 8 kB / 0.9027 GB, free: 61.27 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.531e-06/0.3078, allocations: 0 / 0.9027 GB, free: 61.27 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.246e-05/0.3078, allocations: 0 / 0.9027 GB, free: 61.27 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.69e-05/0.3079, allocations: 15.98 kB / 0.9027 GB, free: 61.25 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.851e-06/0.3079, allocations: 0 / 0.9027 GB, free: 61.25 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.157e-05/0.3079, allocations: 15.97 kB / 0.9027 GB, free: 61.24 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.797e-06/0.308, allocations: 8 kB / 0.9028 GB, free: 61.23 MB / 0.6042 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 ($PRE.intTab.combiTimeTable.nextTimeEvent,$whenCondition1,intRep.y[2],intRep.y[1],intTab.combiTimeTable.nextTimeEventScaled,$PRE.intTab.combiTimeTable.nextTimeEventScaled,intTab.combiTimeTable.nextTimeEvent,intTab.y) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001069/0.3081, allocations: 138.7 kB / 0.9029 GB, free: 61.09 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.508e-05/0.3081, allocations: 15.81 kB / 0.9029 GB, free: 61.07 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.563e-05/0.3082, allocations: 25.34 kB / 0.9029 GB, free: 61.04 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.855e-06/0.3082, allocations: 0 / 0.9029 GB, free: 61.04 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.3082, allocations: 0 / 0.9029 GB, free: 61.04 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.504e-06/0.3082, allocations: 11.92 kB / 0.9029 GB, free: 61.03 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001486/0.3083, allocations: 221.5 kB / 0.9032 GB, free: 60.77 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.3084, allocations: 4 kB / 0.9032 GB, free: 60.76 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.419e-05/0.3084, allocations: 4 kB / 0.9032 GB, free: 60.76 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.704e-06/0.3084, allocations: 0 / 0.9032 GB, free: 60.76 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.072e-05/0.3084, allocations: 4 kB / 0.9032 GB, free: 60.75 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.3084, allocations: 0 / 0.9032 GB, free: 60.75 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.3084, allocations: 0 / 0.9032 GB, free: 60.75 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002002/0.3086, allocations: 144.8 kB / 0.9033 GB, free: 60.59 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 4.371e-05/0.3087, allocations: 96.84 kB / 0.9034 GB, free: 60.48 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.591e-05/0.3087, allocations: 4 kB / 0.9034 GB, free: 60.48 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.037e-05/0.3088, allocations: 8 kB / 0.9034 GB, free: 60.47 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.216e-05/0.3088, allocations: 7.984 kB / 0.9034 GB, free: 60.46 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.201e-05/0.3089, allocations: 7.938 kB / 0.9034 GB, free: 60.45 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0001466/0.309, allocations: 200.4 kB / 0.9036 GB, free: 60.26 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.343e-06/0.309, allocations: 0 / 0.9036 GB, free: 60.26 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002184/0.3092, allocations: 35.94 kB / 0.9036 GB, free: 60.22 MB / 0.6042 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.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009991/0.3102, allocations: 434.1 kB / 0.9041 GB, free: 59.95 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0002032/0.3105, allocations: 67.95 kB / 0.9041 GB, free: 59.88 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.3105, allocations: 4 kB / 0.9041 GB, free: 59.88 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 7.99e-05/0.3106, allocations: 35.92 kB / 0.9042 GB, free: 59.84 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002683/0.3108, allocations: 38.3 kB / 0.9042 GB, free: 59.81 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005222/0.3114, allocations: 350.3 kB / 0.9045 GB, free: 59.43 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001862/0.3116, allocations: 0.7281 MB / 0.9052 GB, free: 58.68 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.16e-05/0.3116, allocations: 23.42 kB / 0.9053 GB, free: 58.66 MB / 0.6042 GB Notification: Performance of SimCode: time 2.2e-07/0.3116, allocations: 0 / 0.9053 GB, free: 58.66 MB / 0.6042 GB Notification: Performance of Templates: time 0.004172/0.3158, allocations: 2.573 MB / 0.9078 GB, free: 56.09 MB / 0.6042 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)