Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_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 1.6.0+build.1/package.mo", uses=false) Using package Buildings with version 1.6 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/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_1.6_Buildings.Utilities.Math.Examples.IntegerReplicator") translateModel(Buildings.Utilities.Math.Examples.IntegerReplicator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_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.008785/0.008786, allocations: 101.7 kB / 15.73 MB, free: 5.586 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.001585/0.001585, allocations: 192.2 kB / 16.67 MB, free: 5.523 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.601/1.601, allocations: 205.1 MB / 222.5 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo): time 0.4633/0.4633, allocations: 95.48 MB / 365.4 MB, free: 12.16 MB / 318.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: Buildings requested package Modelica of version 3.2.1. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001406/0.001407, allocations: 71.89 kB / 0.5036 GB, free: 11.85 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4911/0.4926, allocations: 69.09 MB / 0.5711 GB, free: 4.152 MB / 430.1 MB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.004063/0.4967, allocations: 1.74 MB / 0.5728 GB, free: 2.398 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0021/0.4989, allocations: 1.023 MB / 0.5738 GB, free: 1.371 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001026/0.499, allocations: 0 / 0.5738 GB, free: 1.371 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003728/0.4994, allocations: 55.75 kB / 0.5738 GB, free: 1.316 MB / 430.1 MB [/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.00029/0.4997, allocations: 79.64 kB / 0.5739 GB, free: 1.238 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006024/0.5003, allocations: 195.4 kB / 0.5741 GB, free: 1.051 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002234/0.5005, allocations: 147.6 kB / 0.5742 GB, free: 0.9062 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001226/0.5007, allocations: 28.47 kB / 0.5743 GB, free: 0.8828 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001042/0.5008, allocations: 67.75 kB / 0.5743 GB, free: 0.8164 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000104/0.5009, allocations: 63.75 kB / 0.5744 GB, free: 0.7539 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 2.165e-05/0.5009, allocations: 8 kB / 0.5744 GB, free: 0.7461 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00017/0.5011, allocations: 71.89 kB / 0.5745 GB, free: 0.6758 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 9.799e-05/0.5012, allocations: 39.84 kB / 0.5745 GB, free: 0.6367 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 8.414e-05/0.5013, allocations: 63.61 kB / 0.5746 GB, free: 0.5742 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000347/0.5016, allocations: 197.8 kB / 0.5748 GB, free: 392 kB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.123e-06/0.5017, allocations: 0 / 0.5748 GB, free: 392 kB / 430.1 MB Notification: Performance of FrontEnd: time 1.704e-06/0.5017, allocations: 0 / 0.5748 GB, free: 392 kB / 430.1 MB Notification: Performance of Transformations before backend: time 1.063e-05/0.5017, allocations: 0 / 0.5748 GB, free: 392 kB / 430.1 MB 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.0009243/0.5026, allocations: 496.3 kB / 0.5752 GB, free: 15.84 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.348e-05/0.5027, allocations: 11.98 kB / 0.5752 GB, free: 15.83 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.643e-05/0.5028, allocations: 20.66 kB / 0.5753 GB, free: 15.81 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005523/0.5033, allocations: 249.8 kB / 0.5755 GB, free: 15.53 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.035e-05/0.5033, allocations: 7.938 kB / 0.5755 GB, free: 15.52 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.737e-05/0.5034, allocations: 7.984 kB / 0.5755 GB, free: 15.51 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002987/0.5037, allocations: 92.23 kB / 0.5756 GB, free: 15.41 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.106e-05/0.5037, allocations: 0 / 0.5756 GB, free: 15.41 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.619e-05/0.5037, allocations: 0 / 0.5756 GB, free: 15.41 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.711e-05/0.5038, allocations: 4 kB / 0.5756 GB, free: 15.4 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00014/0.5039, allocations: 35.92 kB / 0.5756 GB, free: 15.37 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007823/0.5047, allocations: 352.7 kB / 0.576 GB, free: 14.97 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003063/0.505, allocations: 94.69 kB / 0.5761 GB, free: 14.87 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001166/0.5051, allocations: 28.84 kB / 0.5761 GB, free: 14.84 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.392e-05/0.5052, allocations: 4 kB / 0.5761 GB, free: 14.84 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002428/0.5054, allocations: 87.22 kB / 0.5762 GB, free: 14.74 MB / 446.1 MB Notification: Performance of pre-optimization done (n=8): time 1.764e-06/0.5055, allocations: 0 / 0.5762 GB, free: 14.74 MB / 446.1 MB Notification: Performance of matching and sorting (n=8): time 0.0004931/0.506, allocations: 137.5 kB / 0.5763 GB, free: 14.6 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.029e-05/0.5061, allocations: 114.8 kB / 0.5764 GB, free: 14.46 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003332/0.5064, allocations: 272.1 kB / 0.5767 GB, free: 14.18 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.6e-05/0.5065, allocations: 33.7 kB / 0.5767 GB, free: 14.14 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000123/0.5066, allocations: 112.1 kB / 0.5768 GB, free: 14.03 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.431e-05/0.5066, allocations: 15.8 kB / 0.5768 GB, free: 14.02 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.92e-05/0.5067, allocations: 25.72 kB / 0.5769 GB, free: 13.98 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0003016/0.507, allocations: 330.8 kB / 0.5772 GB, free: 13.65 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.438e-05/0.5071, allocations: 27.98 kB / 0.5772 GB, free: 13.62 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001277/0.5072, allocations: 68.28 kB / 0.5773 GB, free: 13.54 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001962/0.5074, allocations: 73.62 kB / 0.5773 GB, free: 13.46 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.5075, allocations: 0 / 0.5773 GB, free: 13.46 MB / 446.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002764/0.5077, allocations: 109.5 kB / 0.5774 GB, free: 13.35 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.867e-05/0.5078, allocations: 12.03 kB / 0.5774 GB, free: 13.34 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.128e-06/0.5078, allocations: 3.938 kB / 0.5775 GB, free: 13.34 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.299e-05/0.5078, allocations: 0 / 0.5775 GB, free: 13.34 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001377/0.508, allocations: 19.92 kB / 0.5775 GB, free: 13.32 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.015e-05/0.508, allocations: 0 / 0.5775 GB, free: 13.32 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.751e-05/0.5081, allocations: 11.84 kB / 0.5775 GB, free: 13.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.454e-05/0.5081, allocations: 4 kB / 0.5775 GB, free: 13.3 MB / 446.1 MB 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.0001981/0.5083, allocations: 137.8 kB / 0.5776 GB, free: 13.16 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.598e-05/0.5083, allocations: 15.81 kB / 0.5776 GB, free: 13.14 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.695e-05/0.5084, allocations: 29.33 kB / 0.5777 GB, free: 13.11 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.748e-06/0.5084, allocations: 48 / 0.5777 GB, free: 13.11 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.099e-05/0.5085, allocations: 3.984 kB / 0.5777 GB, free: 13.1 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.5085, allocations: 0 / 0.5777 GB, free: 13.1 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002754/0.5087, allocations: 225.6 kB / 0.5779 GB, free: 12.83 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.5088, allocations: 0 / 0.5779 GB, free: 12.83 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.056e-05/0.5088, allocations: 7.984 kB / 0.5779 GB, free: 12.82 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.5088, allocations: 0 / 0.5779 GB, free: 12.82 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.57e-05/0.5088, allocations: 3.938 kB / 0.5779 GB, free: 12.82 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.938e-06/0.5088, allocations: 7.938 kB / 0.5779 GB, free: 12.81 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.5088, allocations: 0 / 0.5779 GB, free: 12.81 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002928/0.5091, allocations: 141.3 kB / 0.578 GB, free: 12.66 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001032/0.5093, allocations: 101 kB / 0.5781 GB, free: 12.54 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.194e-05/0.5093, allocations: 3.938 kB / 0.5781 GB, free: 12.54 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.493e-05/0.5094, allocations: 11.92 kB / 0.5781 GB, free: 12.52 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.559e-05/0.5095, allocations: 8 kB / 0.5782 GB, free: 12.52 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.102e-05/0.5095, allocations: 7.984 kB / 0.5782 GB, free: 12.51 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001986/0.5097, allocations: 192.6 kB / 0.5783 GB, free: 12.32 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5097, allocations: 0 / 0.5783 GB, free: 12.32 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002745/0.51, allocations: 36 kB / 0.5784 GB, free: 12.29 MB / 446.1 MB 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.001099/0.5111, allocations: 426.5 kB / 0.5788 GB, free: 12.02 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0002476/0.5114, allocations: 79.88 kB / 0.5789 GB, free: 11.95 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.175e-06/0.5114, allocations: 0 / 0.5789 GB, free: 11.95 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 9.607e-05/0.5115, allocations: 35.92 kB / 0.5789 GB, free: 11.91 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003233/0.5118, allocations: 43.97 kB / 0.5789 GB, free: 11.87 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006812/0.5125, allocations: 290.8 kB / 0.5792 GB, free: 11.55 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004775/0.513, allocations: 0.7201 MB / 0.5799 GB, free: 10.81 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0001047/0.5131, allocations: 25.33 kB / 0.5799 GB, free: 10.79 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.537e-05/0.5132, allocations: 23.42 kB / 0.58 GB, free: 10.76 MB / 446.1 MB Notification: Performance of SimCode: time 2.31e-07/0.5132, allocations: 0 / 0.58 GB, free: 10.76 MB / 446.1 MB Notification: Performance of Templates: time 0.007439/0.5206, allocations: 2.54 MB / 0.5824 GB, free: 8.246 MB / 446.1 MB make -j1 -f Buildings_1.6_Buildings.Utilities.Math.Examples.IntegerReplicator.makefile (rm -f Buildings_1.6_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo Buildings_1.6_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/Buildings_1.6_Buildings.Utilities.Math.Examples.IntegerReplicator.sim & ./Buildings_1.6_Buildings.Utilities.Math.Examples.IntegerReplicator -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1)