Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_Buildings.Utilities.Math.Examples.IntegerReplicator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo", uses=false) 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 3.0.0/package.mo", uses=false) Using package Buildings with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 3.0.0/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) Using package Modelica_StateGraph2 with version 2.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.IntegerReplicator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Utilities.Math.Examples.IntegerReplicator") translateModel(Buildings.Utilities.Math.Examples.IntegerReplicator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Utilities.Math.Examples.IntegerReplicator") [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:257:38-257:110:writable] Warning: The file was not encoded in UTF-8: "

An important practical aspect of state machines is the abilit...". Defaulting to 7-bit ASCII with unknown characters replaced by '?'. To change encoding when loading a file: loadFile(encoding="ISO-XXXX-YY"). To change it in a package: add a file package.encoding at the top-level. Note: The Modelica Language Specification only allows files encoded in UTF-8. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:761:36-761:108:writable] Warning: The file was not encoded in UTF-8: "

The Modelica_StateGraph2 library is described in detail in (O...". Defaulting to 7-bit ASCII with unknown characters replaced by '?'. To change encoding when loading a file: loadFile(encoding="ISO-XXXX-YY"). To change it in a package: add a file package.encoding at the top-level. Note: The Modelica Language Specification only allows files encoded in UTF-8. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:1435:36-1435:108:writable] Warning: The file was not encoded in UTF-8: "

Main Authors:
SCode: time 0.2501/0.2525, allocations: 80.84 MB / 0.6706 GB, free: 4.586 MB / 0.5137 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.005188/0.2577, allocations: 1.75 MB / 0.6723 GB, free: 2.816 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.002342/0.2601, allocations: 1.003 MB / 0.6733 GB, free: 1.809 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002308/0.2604, allocations: 0 / 0.6733 GB, free: 1.809 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.0004965/0.2609, allocations: 63.73 kB / 0.6734 GB, free: 1.746 MB / 0.5137 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.0004061/0.2614, allocations: 79.61 kB / 0.6734 GB, free: 1.668 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007895/0.2622, allocations: 202.5 kB / 0.6736 GB, free: 1.473 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.0003411/0.2625, allocations: 151.5 kB / 0.6738 GB, free: 1.324 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001874/0.2627, allocations: 29.03 kB / 0.6738 GB, free: 1.293 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001886/0.2629, allocations: 59.77 kB / 0.6739 GB, free: 1.234 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001634/0.2631, allocations: 59.77 kB / 0.6739 GB, free: 1.176 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 2.868e-05/0.2631, allocations: 11.98 kB / 0.6739 GB, free: 1.164 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002476/0.2634, allocations: 71.89 kB / 0.674 GB, free: 1.094 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0001236/0.2635, allocations: 47.83 kB / 0.674 GB, free: 1.047 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0001021/0.2636, allocations: 59.67 kB / 0.6741 GB, free: 0.9883 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0004931/0.2641, allocations: 199.4 kB / 0.6743 GB, free: 0.793 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 6.331e-06/0.2641, allocations: 0 / 0.6743 GB, free: 0.793 MB / 0.5137 GB Notification: Performance of FrontEnd: time 3.737e-06/0.2642, allocations: 3.984 kB / 0.6743 GB, free: 0.7891 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 9.327e-06/0.2642, allocations: 0 / 0.6743 GB, free: 0.7891 MB / 0.5137 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.00101/0.2652, allocations: 492.2 kB / 0.6748 GB, free: 260 kB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 5.629e-05/0.2652, allocations: 8.031 kB / 0.6748 GB, free: 252 kB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001075/0.2654, allocations: 16.75 kB / 0.6748 GB, free: 236 kB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005707/0.2659, allocations: 257.6 kB / 0.675 GB, free: 15.94 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.506e-05/0.266, allocations: 0 / 0.675 GB, free: 15.94 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.833e-05/0.266, allocations: 4 kB / 0.675 GB, free: 15.93 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002767/0.2663, allocations: 100.2 kB / 0.6751 GB, free: 15.82 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.355e-05/0.2663, allocations: 0 / 0.6751 GB, free: 15.82 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.827e-05/0.2663, allocations: 0 / 0.6751 GB, free: 15.82 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.843e-05/0.2664, allocations: 4 kB / 0.6751 GB, free: 15.82 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001388/0.2665, allocations: 31.92 kB / 0.6752 GB, free: 15.79 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006795/0.2672, allocations: 356.7 kB / 0.6755 GB, free: 15.39 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002655/0.2675, allocations: 86.75 kB / 0.6756 GB, free: 15.29 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.895e-05/0.2676, allocations: 36.78 kB / 0.6756 GB, free: 15.25 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 3.99e-05/0.2676, allocations: 7.984 kB / 0.6756 GB, free: 15.25 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002039/0.2678, allocations: 79.38 kB / 0.6757 GB, free: 15.16 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=8): time 1.894e-06/0.2679, allocations: 0 / 0.6757 GB, free: 15.16 MB / 0.5294 GB Notification: Performance of matching and sorting (n=8): time 0.000447/0.2683, allocations: 137.5 kB / 0.6758 GB, free: 15.02 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001021/0.2684, allocations: 114.7 kB / 0.6759 GB, free: 14.88 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003685/0.2688, allocations: 262.8 kB / 0.6762 GB, free: 14.61 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 3.083e-05/0.2688, allocations: 29.7 kB / 0.6762 GB, free: 14.57 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.000124/0.269, allocations: 120 kB / 0.6763 GB, free: 14.45 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 4.598e-05/0.269, allocations: 27.72 kB / 0.6764 GB, free: 14.43 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.69e-05/0.2691, allocations: 29.66 kB / 0.6764 GB, free: 14.39 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001655/0.2693, allocations: 326.8 kB / 0.6767 GB, free: 14.06 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.526e-05/0.2694, allocations: 31.92 kB / 0.6767 GB, free: 14.03 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001024/0.2695, allocations: 64.28 kB / 0.6768 GB, free: 13.95 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001599/0.2697, allocations: 77.94 kB / 0.6769 GB, free: 13.87 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.2697, allocations: 0 / 0.6769 GB, free: 13.87 MB / 0.5294 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002502/0.2699, allocations: 113.5 kB / 0.677 GB, free: 13.75 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.509e-05/0.27, allocations: 4 kB / 0.677 GB, free: 13.75 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.146e-05/0.27, allocations: 0 / 0.677 GB, free: 13.75 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.641e-05/0.27, allocations: 0 / 0.677 GB, free: 13.75 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001318/0.2701, allocations: 19.88 kB / 0.677 GB, free: 13.73 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.42e-05/0.2702, allocations: 3.984 kB / 0.677 GB, free: 13.73 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.214e-05/0.2702, allocations: 8.031 kB / 0.677 GB, free: 13.72 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.411e-05/0.2703, allocations: 8 kB / 0.677 GB, free: 13.71 MB / 0.5294 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.0002013/0.2705, allocations: 147.1 kB / 0.6772 GB, free: 13.56 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.311e-05/0.2705, allocations: 15.81 kB / 0.6772 GB, free: 13.54 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.708e-05/0.2706, allocations: 25.39 kB / 0.6772 GB, free: 13.51 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.476e-05/0.2706, allocations: 3.938 kB / 0.6772 GB, free: 13.51 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.284e-05/0.2706, allocations: 4 kB / 0.6772 GB, free: 13.5 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.915e-06/0.2707, allocations: 4 kB / 0.6772 GB, free: 13.5 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002759/0.2709, allocations: 217.5 kB / 0.6774 GB, free: 13.24 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-06/0.271, allocations: 4 kB / 0.6774 GB, free: 13.23 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.417e-05/0.271, allocations: 7.984 kB / 0.6774 GB, free: 13.23 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.271, allocations: 48 / 0.6774 GB, free: 13.23 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.831e-05/0.271, allocations: 11.98 kB / 0.6774 GB, free: 13.21 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.306e-06/0.2711, allocations: 3.938 kB / 0.6774 GB, free: 13.21 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.007e-06/0.2711, allocations: 0 / 0.6774 GB, free: 13.21 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002815/0.2714, allocations: 140.8 kB / 0.6776 GB, free: 13.05 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 9.719e-05/0.2715, allocations: 96.86 kB / 0.6777 GB, free: 12.94 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.496e-05/0.2715, allocations: 8 kB / 0.6777 GB, free: 12.93 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.777e-05/0.2716, allocations: 11.92 kB / 0.6777 GB, free: 12.92 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.535e-05/0.2717, allocations: 4 kB / 0.6777 GB, free: 12.92 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.215e-05/0.2717, allocations: 7.984 kB / 0.6777 GB, free: 12.91 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0002203/0.2719, allocations: 192.4 kB / 0.6779 GB, free: 12.72 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2719, allocations: 4 kB / 0.6779 GB, free: 12.72 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0002983/0.2722, allocations: 32 kB / 0.6779 GB, free: 12.69 MB / 0.5294 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.001381/0.2736, allocations: 429.7 kB / 0.6783 GB, free: 12.42 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0003419/0.274, allocations: 75.88 kB / 0.6784 GB, free: 12.35 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.274, allocations: 0 / 0.6784 GB, free: 12.35 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0001108/0.2741, allocations: 31.98 kB / 0.6784 GB, free: 12.32 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003932/0.2745, allocations: 36.72 kB / 0.6785 GB, free: 12.28 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008198/0.2754, allocations: 294.8 kB / 0.6788 GB, free: 11.97 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005036/0.2759, allocations: 0.7241 MB / 0.6795 GB, free: 11.22 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 8.799e-05/0.276, allocations: 25.31 kB / 0.6795 GB, free: 11.2 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.852e-05/0.276, allocations: 23.42 kB / 0.6795 GB, free: 11.17 MB / 0.5294 GB Notification: Performance of SimCode: time 2.2e-07/0.276, allocations: 0 / 0.6795 GB, free: 11.17 MB / 0.5294 GB Notification: Performance of Templates: time 0.007681/0.2837, allocations: 2.58 MB / 0.682 GB, free: 8.605 MB / 0.5294 GB make -j1 -f Buildings_3.0.0_Buildings.Utilities.Math.Examples.IntegerReplicator.makefile (rm -f Buildings_3.0.0_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo Buildings_3.0.0_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/Buildings_3.0.0_Buildings.Utilities.Math.Examples.IntegerReplicator.sim & ./Buildings_3.0.0_Buildings.Utilities.Math.Examples.IntegerReplicator -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1)