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.001038/0.001038, allocations: 100.8 kB / 16.29 MB, free: 6.016 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.001017/0.001017, allocations: 184 kB / 17.22 MB, free: 5.625 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.198/1.198, allocations: 205.1 MB / 223.1 MB, free: 12.3 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.61/1.61, allocations: 292.3 MB / 0.5495 GB, free: 17.38 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.001325/0.001325, allocations: 67.91 kB / 0.6722 GB, free: 6.57 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1724/0.1737, allocations: 114.6 MB / 0.7841 GB, free: 3.898 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.002656/0.1764, allocations: 1.762 MB / 0.7858 GB, free: 2.117 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001299/0.1777, allocations: 1.034 MB / 0.7868 GB, free: 1.074 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.952e-05/0.1778, allocations: 4 kB / 0.7868 GB, free: 1.07 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0002415/0.1781, allocations: 59.73 kB / 0.7869 GB, free: 1.012 MB / 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.0001942/0.1783, allocations: 75.66 kB / 0.7869 GB, free: 0.9375 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004758/0.1787, allocations: 198.2 kB / 0.7871 GB, free: 0.7461 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0002/0.179, allocations: 143.6 kB / 0.7873 GB, free: 0.6055 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001124/0.1791, allocations: 21.12 kB / 0.7873 GB, free: 0.5859 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 9.384e-05/0.1792, allocations: 63.75 kB / 0.7873 GB, free: 0.5234 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001025/0.1793, allocations: 63.75 kB / 0.7874 GB, free: 472 kB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 1.993e-05/0.1793, allocations: 11.94 kB / 0.7874 GB, free: 460 kB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000139/0.1795, allocations: 71.95 kB / 0.7875 GB, free: 388 kB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 6.275e-05/0.1795, allocations: 39.83 kB / 0.7875 GB, free: 348 kB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 5.737e-05/0.1796, allocations: 47.69 kB / 0.7876 GB, free: 300 kB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0002286/0.1798, allocations: 203.6 kB / 0.7878 GB, free: 96 kB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.1798, allocations: 8 kB / 0.7878 GB, free: 88 kB / 0.6544 GB Notification: Performance of FrontEnd: time 1.052e-06/0.1798, allocations: 0 / 0.7878 GB, free: 88 kB / 0.6544 GB Notification: Performance of Transformations before backend: time 7.474e-06/0.1799, allocations: 0 / 0.7878 GB, free: 88 kB / 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.2921/0.472, allocations: 492.1 kB / 0.7882 GB, free: 48.74 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.803e-05/0.472, allocations: 10.75 kB / 0.7883 GB, free: 48.74 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.828e-05/0.4721, allocations: 14.78 kB / 0.7883 GB, free: 48.73 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002136/0.4723, allocations: 248.8 kB / 0.7885 GB, free: 48.51 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.567e-05/0.4723, allocations: 7.031 kB / 0.7885 GB, free: 48.51 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.352e-05/0.4724, allocations: 3.75 kB / 0.7885 GB, free: 48.51 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001758/0.4725, allocations: 95.8 kB / 0.7886 GB, free: 48.46 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.386e-06/0.4726, allocations: 0 / 0.7886 GB, free: 48.46 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.436e-05/0.4726, allocations: 7.375 kB / 0.7886 GB, free: 48.45 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.729e-05/0.4726, allocations: 5.891 kB / 0.7886 GB, free: 48.45 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.369e-05/0.4727, allocations: 34.44 kB / 0.7886 GB, free: 48.45 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003841/0.4731, allocations: 355.5 kB / 0.789 GB, free: 48.18 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001859/0.4733, allocations: 96.22 kB / 0.7891 GB, free: 48.16 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.17e-05/0.4734, allocations: 29.84 kB / 0.7891 GB, free: 48.15 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.03e-05/0.4734, allocations: 3.344 kB / 0.7891 GB, free: 48.15 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002202/0.4736, allocations: 88.61 kB / 0.7892 GB, free: 48.11 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=8): time 1.683e-06/0.4736, allocations: 0 / 0.7892 GB, free: 48.11 MB / 0.6544 GB Notification: Performance of matching and sorting (n=8): time 0.0003055/0.4739, allocations: 139.5 kB / 0.7893 GB, free: 48.07 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.168e-05/0.474, allocations: 105.4 kB / 0.7894 GB, free: 47.94 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001823/0.4742, allocations: 265.5 kB / 0.7897 GB, free: 47.84 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.277e-05/0.4742, allocations: 26.7 kB / 0.7897 GB, free: 47.8 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 5.381e-05/0.4743, allocations: 121 kB / 0.7898 GB, free: 47.72 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 2.192e-05/0.4743, allocations: 29.47 kB / 0.7899 GB, free: 47.71 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.779e-05/0.4743, allocations: 27.17 kB / 0.7899 GB, free: 47.69 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 5.192e-05/0.4744, allocations: 328.5 kB / 0.7902 GB, free: 47.38 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.258e-05/0.4744, allocations: 30.7 kB / 0.7902 GB, free: 47.38 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.785e-05/0.4745, allocations: 67.28 kB / 0.7903 GB, free: 47.34 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001131/0.4747, allocations: 76.67 kB / 0.7904 GB, free: 47.32 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.654e-06/0.4747, allocations: 1.125 kB / 0.7904 GB, free: 47.32 MB / 0.6544 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.00017/0.4748, allocations: 116.7 kB / 0.7905 GB, free: 47.28 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.043e-05/0.4749, allocations: 5.25 kB / 0.7905 GB, free: 47.28 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.62e-06/0.4749, allocations: 0 / 0.7905 GB, free: 47.28 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.241e-05/0.4749, allocations: 4.312 kB / 0.7905 GB, free: 47.28 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.449e-05/0.475, allocations: 10.69 kB / 0.7905 GB, free: 47.28 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.709e-06/0.475, allocations: 0.5938 kB / 0.7905 GB, free: 47.28 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.658e-05/0.475, allocations: 10.59 kB / 0.7905 GB, free: 47.28 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.634e-06/0.4751, allocations: 4.344 kB / 0.7905 GB, free: 47.28 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.652e-05/0.4752, allocations: 144.9 kB / 0.7906 GB, free: 47.16 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.264e-05/0.4752, allocations: 19.53 kB / 0.7907 GB, free: 47.16 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.581e-05/0.4752, allocations: 24.64 kB / 0.7907 GB, free: 47.16 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.923e-06/0.4752, allocations: 0 / 0.7907 GB, free: 47.16 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.4752, allocations: 3.125 kB / 0.7907 GB, free: 47.16 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.407e-06/0.4752, allocations: 1.625 kB / 0.7907 GB, free: 47.16 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001191/0.4754, allocations: 226.5 kB / 0.7909 GB, free: 46.96 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.4754, allocations: 2.625 kB / 0.7909 GB, free: 46.96 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.464e-05/0.4754, allocations: 2.625 kB / 0.7909 GB, free: 46.96 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.4754, allocations: 2.625 kB / 0.7909 GB, free: 46.96 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.077e-06/0.4754, allocations: 6.125 kB / 0.7909 GB, free: 46.96 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.4754, allocations: 2.875 kB / 0.7909 GB, free: 46.96 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.4755, allocations: 2.625 kB / 0.7909 GB, free: 46.96 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000186/0.4756, allocations: 142.2 kB / 0.7911 GB, free: 46.89 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 3.071e-05/0.4757, allocations: 99.3 kB / 0.7912 GB, free: 46.78 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.527e-05/0.4757, allocations: 6.594 kB / 0.7912 GB, free: 46.78 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.804e-05/0.4758, allocations: 4.875 kB / 0.7912 GB, free: 46.78 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.216e-05/0.4758, allocations: 5.125 kB / 0.7912 GB, free: 46.78 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.16e-05/0.4758, allocations: 10.92 kB / 0.7912 GB, free: 46.78 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0001231/0.476, allocations: 192.9 kB / 0.7914 GB, free: 46.71 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.21e-07/0.476, allocations: 0 / 0.7914 GB, free: 46.71 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002271/0.4762, allocations: 36.81 kB / 0.7914 GB, free: 46.71 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.0008686/0.4771, allocations: 420.2 kB / 0.7918 GB, free: 46.62 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0001818/0.4773, allocations: 67.19 kB / 0.7919 GB, free: 46.62 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.4773, allocations: 0 / 0.7919 GB, free: 46.62 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 7.299e-05/0.4774, allocations: 43.06 kB / 0.7919 GB, free: 46.62 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002514/0.4776, allocations: 39.48 kB / 0.7919 GB, free: 46.62 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003729/0.478, allocations: 288.4 kB / 0.7922 GB, free: 46.47 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001153/0.4781, allocations: 0.725 MB / 0.7929 GB, free: 45.78 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 5.947e-05/0.4782, allocations: 26.59 kB / 0.793 GB, free: 45.78 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.606e-05/0.4782, allocations: 21.31 kB / 0.793 GB, free: 45.77 MB / 0.6544 GB Notification: Performance of SimCode: time 2.3e-07/0.4782, allocations: 0 / 0.793 GB, free: 45.77 MB / 0.6544 GB Notification: Performance of Templates: time 0.004481/0.4827, allocations: 2.542 MB / 0.7955 GB, free: 45.65 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 -s cvode -lv LOG_STATS > Buildings_8_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1)