Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Utilities.Math.Examples.IntegerReplicator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.IntegerReplicator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.Math.Examples.IntegerReplicator") translateModel(Buildings.Utilities.Math.Examples.IntegerReplicator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.Math.Examples.IntegerReplicator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001095/0.001095, allocations: 105.3 kB / 16.36 MB, free: 6.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001079/0.00108, allocations: 192.1 kB / 17.29 MB, free: 5.875 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.397/1.397, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.908/1.908, allocations: 292.3 MB / 0.5496 GB, free: 17.5 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001441/0.001442, allocations: 76.45 kB / 0.6729 GB, free: 5.852 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2672/0.2687, allocations: 114.6 MB / 0.7848 GB, free: 3.184 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.003774/0.2725, allocations: 1.774 MB / 0.7865 GB, free: 1.391 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.00186/0.2744, allocations: 1.023 MB / 0.7875 GB, free: 368 kB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.945e-05/0.2745, allocations: 7.938 kB / 0.7875 GB, free: 360 kB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0003923/0.2749, allocations: 59.73 kB / 0.7876 GB, free: 300 kB / 0.6544 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0002677/0.2752, allocations: 79.61 kB / 0.7876 GB, free: 220 kB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005949/0.2758, allocations: 197.7 kB / 0.7878 GB, free: 24 kB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.3742/0.6499, allocations: 137.9 kB / 0.788 GB, free: 46.45 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001395/0.6501, allocations: 21.77 kB / 0.788 GB, free: 46.45 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001175/0.6503, allocations: 64.75 kB / 0.788 GB, free: 46.45 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001192/0.6504, allocations: 70.45 kB / 0.7881 GB, free: 46.45 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 2.414e-05/0.6504, allocations: 5.344 kB / 0.7881 GB, free: 46.45 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002436/0.6507, allocations: 71.3 kB / 0.7882 GB, free: 46.45 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 7.411e-05/0.6508, allocations: 40.66 kB / 0.7882 GB, free: 46.44 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 6.409e-05/0.6508, allocations: 60.69 kB / 0.7883 GB, free: 46.41 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0002692/0.6511, allocations: 201.7 kB / 0.7885 GB, free: 46.4 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.6511, allocations: 0 / 0.7885 GB, free: 46.4 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.182e-06/0.6511, allocations: 0 / 0.7885 GB, free: 46.4 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 5.62e-06/0.6511, allocations: 3.188 kB / 0.7885 GB, free: 46.4 MB / 0.6544 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.0005461/0.6517, allocations: 491.8 kB / 0.7889 GB, free: 45.96 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.082e-05/0.6517, allocations: 10.62 kB / 0.789 GB, free: 45.96 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.575e-05/0.6518, allocations: 16.62 kB / 0.789 GB, free: 45.96 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002871/0.6521, allocations: 252.1 kB / 0.7892 GB, free: 45.74 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.447e-05/0.6521, allocations: 4.406 kB / 0.7892 GB, free: 45.74 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.606e-05/0.6521, allocations: 3.188 kB / 0.7892 GB, free: 45.74 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001802/0.6523, allocations: 105.3 kB / 0.7893 GB, free: 45.68 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.674e-06/0.6523, allocations: 0 / 0.7893 GB, free: 45.68 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.225e-05/0.6523, allocations: 0.5469 kB / 0.7893 GB, free: 45.68 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.799e-05/0.6524, allocations: 3.625 kB / 0.7893 GB, free: 45.68 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.956e-05/0.6525, allocations: 36.75 kB / 0.7894 GB, free: 45.68 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004151/0.6529, allocations: 352.9 kB / 0.7897 GB, free: 45.41 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001984/0.6531, allocations: 91.97 kB / 0.7898 GB, free: 45.39 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.512e-05/0.6532, allocations: 34.86 kB / 0.7898 GB, free: 45.38 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.113e-05/0.6532, allocations: 5.5 kB / 0.7898 GB, free: 45.38 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001475/0.6534, allocations: 81.8 kB / 0.7899 GB, free: 45.33 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=8): time 2.375e-06/0.6534, allocations: 3.219 kB / 0.7899 GB, free: 45.33 MB / 0.6544 GB Notification: Performance of matching and sorting (n=8): time 0.0003102/0.6537, allocations: 139.9 kB / 0.79 GB, free: 45.29 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.301e-05/0.6537, allocations: 105.8 kB / 0.7901 GB, free: 45.16 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002034/0.6539, allocations: 263.8 kB / 0.7904 GB, free: 45.06 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.352e-05/0.654, allocations: 29.08 kB / 0.7904 GB, free: 45.03 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 5.375e-05/0.654, allocations: 117.5 kB / 0.7905 GB, free: 44.95 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 2.297e-05/0.654, allocations: 24.34 kB / 0.7906 GB, free: 44.93 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.131e-05/0.6541, allocations: 24.95 kB / 0.7906 GB, free: 44.92 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 5.193e-05/0.6542, allocations: 337.6 kB / 0.7909 GB, free: 44.6 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.582e-05/0.6542, allocations: 22.47 kB / 0.7909 GB, free: 44.6 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.186e-05/0.6543, allocations: 74.05 kB / 0.791 GB, free: 44.56 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000125/0.6544, allocations: 71.95 kB / 0.7911 GB, free: 44.55 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/0.6545, allocations: 0 / 0.7911 GB, free: 44.55 MB / 0.6544 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001983/0.6547, allocations: 112.5 kB / 0.7912 GB, free: 44.51 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.474e-05/0.6547, allocations: 6.25 kB / 0.7912 GB, free: 44.51 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.064e-06/0.6547, allocations: 3.188 kB / 0.7912 GB, free: 44.51 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.497e-05/0.6547, allocations: 4.016 kB / 0.7912 GB, free: 44.51 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.185e-05/0.6548, allocations: 13.38 kB / 0.7912 GB, free: 44.51 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.561e-06/0.6548, allocations: 0 / 0.7912 GB, free: 44.51 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.383e-05/0.6549, allocations: 13.77 kB / 0.7912 GB, free: 44.51 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.777e-06/0.6549, allocations: 4.75 kB / 0.7912 GB, free: 44.51 MB / 0.6544 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 8.908e-05/0.655, allocations: 141.1 kB / 0.7913 GB, free: 44.39 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.497e-05/0.655, allocations: 21 kB / 0.7914 GB, free: 44.38 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.701e-05/0.6551, allocations: 17.45 kB / 0.7914 GB, free: 44.38 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.215e-06/0.6551, allocations: 2.625 kB / 0.7914 GB, free: 44.38 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.6551, allocations: 0.7188 kB / 0.7914 GB, free: 44.38 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.098e-06/0.6551, allocations: 3.188 kB / 0.7914 GB, free: 44.38 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001266/0.6552, allocations: 234.8 kB / 0.7916 GB, free: 44.18 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.6553, allocations: 0 / 0.7916 GB, free: 44.18 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.842e-05/0.6553, allocations: 8.469 kB / 0.7916 GB, free: 44.18 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.6553, allocations: 0.5625 kB / 0.7916 GB, free: 44.18 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.648e-06/0.6553, allocations: 5.438 kB / 0.7916 GB, free: 44.18 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.823e-06/0.6553, allocations: 0.625 kB / 0.7916 GB, free: 44.18 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.6553, allocations: 4.875 kB / 0.7916 GB, free: 44.18 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002008/0.6555, allocations: 151.8 kB / 0.7918 GB, free: 44.11 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 3.585e-05/0.6556, allocations: 92.38 kB / 0.7919 GB, free: 44 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.687e-05/0.6556, allocations: 3.844 kB / 0.7919 GB, free: 44 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.369e-05/0.6557, allocations: 6.562 kB / 0.7919 GB, free: 44 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.943e-05/0.6557, allocations: 10.03 kB / 0.7919 GB, free: 44 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.152e-05/0.6558, allocations: 2.625 kB / 0.7919 GB, free: 44 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0001303/0.6559, allocations: 196.3 kB / 0.7921 GB, free: 43.93 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6559, allocations: 0 / 0.7921 GB, free: 43.93 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002534/0.6562, allocations: 36.62 kB / 0.7921 GB, free: 43.93 MB / 0.6544 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.0009244/0.6571, allocations: 421.1 kB / 0.7925 GB, free: 43.84 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0002112/0.6573, allocations: 72.89 kB / 0.7926 GB, free: 43.84 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.185e-06/0.6573, allocations: 0 / 0.7926 GB, free: 43.84 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 8.014e-05/0.6574, allocations: 34.38 kB / 0.7926 GB, free: 43.84 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002787/0.6577, allocations: 47.45 kB / 0.7927 GB, free: 43.83 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004524/0.6582, allocations: 321 kB / 0.793 GB, free: 43.64 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001388/0.6583, allocations: 0.726 MB / 0.7937 GB, free: 42.95 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.556e-05/0.6584, allocations: 23.73 kB / 0.7937 GB, free: 42.94 MB / 0.6544 GB Notification: Performance of SimCode: time 3.3e-07/0.6584, allocations: 1.219 kB / 0.7937 GB, free: 42.94 MB / 0.6544 GB Notification: Performance of Templates: time 0.003985/0.6624, allocations: 2.589 MB / 0.7962 GB, free: 42.78 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Utilities.Math.Examples.IntegerReplicator.makefile (rm -f Buildings_8_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo Buildings_8_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/Buildings_8_Buildings.Utilities.Math.Examples.IntegerReplicator.sim & ./Buildings_8_Buildings.Utilities.Math.Examples.IntegerReplicator -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1)