Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Annex60_1.0.0_Annex60.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/Annex60 1.0.0/package.mo", uses=false) Using package Annex60 with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.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) Running command: translateModel(Annex60.Utilities.Math.Examples.IntegerReplicator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.Utilities.Math.Examples.IntegerReplicator") translateModel(Annex60.Utilities.Math.Examples.IntegerReplicator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.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.006297/0.006297, allocations: 100.4 kB / 15.73 MB, free: 6.023 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.001369/0.001369, allocations: 192.9 kB / 16.67 MB, free: 5.957 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.518/1.518, allocations: 205.1 MB / 222.5 MB, free: 4.551 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo): time 0.3954/0.3954, allocations: 54.94 MB / 324.8 MB, free: 15.84 MB / 270.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: Annex60 requested package Modelica of version 3.2.2. 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.001477/0.001477, allocations: 67.73 kB / 456.2 MB, free: 38.62 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.13/0.1315, allocations: 59.6 MB / 0.5037 GB, free: 9.73 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Annex60.Utilities.Math.Examples.IntegerReplicator): time 0.003092/0.1346, allocations: 1.733 MB / 0.5054 GB, free: 8.371 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001661/0.1363, allocations: 1.024 MB / 0.5064 GB, free: 7.578 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.667e-05/0.1364, allocations: 5.312 kB / 0.5064 GB, free: 7.574 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003317/0.1368, allocations: 58.98 kB / 0.5065 GB, free: 7.535 MB / 382.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.000233/0.137, allocations: 84.27 kB / 0.5065 GB, free: 7.473 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005384/0.1376, allocations: 196.4 kB / 0.5067 GB, free: 7.344 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002398/0.1378, allocations: 145.3 kB / 0.5069 GB, free: 7.258 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001224/0.1379, allocations: 16.12 kB / 0.5069 GB, free: 7.254 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001077/0.1381, allocations: 64.5 kB / 0.5069 GB, free: 7.215 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001272/0.1382, allocations: 63 kB / 0.507 GB, free: 7.18 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.556e-05/0.1382, allocations: 6.594 kB / 0.507 GB, free: 7.18 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000197/0.1384, allocations: 80.86 kB / 0.5071 GB, free: 7.141 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.115e-05/0.1385, allocations: 41.92 kB / 0.5071 GB, free: 7.113 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.928e-05/0.1386, allocations: 53.72 kB / 0.5072 GB, free: 7.074 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003034/0.1389, allocations: 198.1 kB / 0.5074 GB, free: 6.945 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.139, allocations: 1.594 kB / 0.5074 GB, free: 6.945 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.139, allocations: 0 / 0.5074 GB, free: 6.945 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.841e-06/0.139, allocations: 0 / 0.5074 GB, free: 6.945 MB / 382.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.0006164/0.1396, allocations: 490.5 kB / 0.5078 GB, free: 6.457 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.575e-05/0.1396, allocations: 9.875 kB / 0.5078 GB, free: 6.457 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.158e-05/0.1397, allocations: 19.56 kB / 0.5079 GB, free: 6.445 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000293/0.14, allocations: 260 kB / 0.5081 GB, free: 6.18 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.202e-05/0.14, allocations: 6.344 kB / 0.5081 GB, free: 6.176 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.847e-05/0.14, allocations: 3.656 kB / 0.5081 GB, free: 6.176 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001807/0.1402, allocations: 91.42 kB / 0.5082 GB, free: 6.094 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.965e-06/0.1402, allocations: 0 / 0.5082 GB, free: 6.094 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.142e-05/0.1403, allocations: 1.219 kB / 0.5082 GB, free: 6.094 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.693e-05/0.1403, allocations: 2.375 kB / 0.5082 GB, free: 6.094 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.798e-05/0.1404, allocations: 45.78 kB / 0.5083 GB, free: 6.066 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004019/0.1408, allocations: 360.3 kB / 0.5086 GB, free: 5.711 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000194/0.141, allocations: 80.61 kB / 0.5087 GB, free: 5.66 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.251e-05/0.1411, allocations: 32.09 kB / 0.5087 GB, free: 5.641 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.682e-05/0.1411, allocations: 9.297 kB / 0.5087 GB, free: 5.633 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001368/0.1412, allocations: 83.81 kB / 0.5088 GB, free: 5.559 MB / 382.1 MB Notification: Performance of pre-optimization done (n=8): time 1.393e-06/0.1412, allocations: 0 / 0.5088 GB, free: 5.559 MB / 382.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003025/0.1416, allocations: 135.5 kB / 0.5089 GB, free: 5.48 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.061e-05/0.1416, allocations: 112.1 kB / 0.509 GB, free: 5.348 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002389/0.1418, allocations: 259.6 kB / 0.5093 GB, free: 5.176 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.614e-05/0.1419, allocations: 33.69 kB / 0.5093 GB, free: 5.137 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.37e-05/0.1419, allocations: 120 kB / 0.5094 GB, free: 5.016 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.274e-05/0.142, allocations: 23.69 kB / 0.5094 GB, free: 4.992 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.887e-05/0.142, allocations: 25.7 kB / 0.5095 GB, free: 4.961 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.19e-05/0.1421, allocations: 326.8 kB / 0.5098 GB, free: 4.633 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.312e-05/0.1421, allocations: 31.92 kB / 0.5098 GB, free: 4.602 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.407e-05/0.1422, allocations: 68.27 kB / 0.5099 GB, free: 4.52 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001135/0.1423, allocations: 69.7 kB / 0.5099 GB, free: 4.445 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.372e-06/0.1423, allocations: 0 / 0.5099 GB, free: 4.445 MB / 382.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001798/0.1425, allocations: 121.4 kB / 0.5101 GB, free: 4.32 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.054e-05/0.1425, allocations: 4 kB / 0.5101 GB, free: 4.316 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.1425, allocations: 0 / 0.5101 GB, free: 4.316 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.355e-05/0.1426, allocations: 4 kB / 0.5101 GB, free: 4.312 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.06e-05/0.1426, allocations: 15.92 kB / 0.5101 GB, free: 4.297 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.62e-06/0.1427, allocations: 4.031 kB / 0.5101 GB, free: 4.293 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.685e-05/0.1427, allocations: 7.938 kB / 0.5101 GB, free: 4.285 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.196e-06/0.1427, allocations: 4 kB / 0.5101 GB, free: 4.281 MB / 382.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 9.708e-05/0.1428, allocations: 145.8 kB / 0.5102 GB, free: 4.129 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.532e-05/0.1429, allocations: 11.81 kB / 0.5103 GB, free: 4.117 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.738e-05/0.1429, allocations: 17.41 kB / 0.5103 GB, free: 4.098 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.037e-05/0.1429, allocations: 7.938 kB / 0.5103 GB, free: 4.09 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.1429, allocations: 0 / 0.5103 GB, free: 4.09 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.1429, allocations: 3.984 kB / 0.5103 GB, free: 4.086 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000126/0.1431, allocations: 229.4 kB / 0.5105 GB, free: 3.812 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.1431, allocations: 0 / 0.5105 GB, free: 3.812 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.709e-05/0.1431, allocations: 4 kB / 0.5105 GB, free: 3.809 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.815e-06/0.1431, allocations: 4.188 kB / 0.5105 GB, free: 3.805 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.506e-06/0.1432, allocations: 0 / 0.5105 GB, free: 3.805 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.1432, allocations: 7.875 kB / 0.5105 GB, free: 3.797 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.52e-07/0.1432, allocations: 0 / 0.5105 GB, free: 3.797 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001936/0.1434, allocations: 148.8 kB / 0.5107 GB, free: 3.633 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.193e-05/0.1434, allocations: 93 kB / 0.5107 GB, free: 3.523 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.753e-05/0.1434, allocations: 4 kB / 0.5107 GB, free: 3.52 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.297e-05/0.1435, allocations: 3.938 kB / 0.5108 GB, free: 3.516 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.327e-05/0.1436, allocations: 11.98 kB / 0.5108 GB, free: 3.504 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.01e-05/0.1436, allocations: 4 kB / 0.5108 GB, free: 3.5 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001286/0.1437, allocations: 196.4 kB / 0.511 GB, free: 3.309 MB / 382.1 MB Notification: Performance of sort global known variables: time 8.61e-07/0.1437, allocations: 0 / 0.511 GB, free: 3.309 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002358/0.144, allocations: 43.83 kB / 0.511 GB, free: 3.266 MB / 382.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.0008352/0.1448, allocations: 426.2 kB / 0.5114 GB, free: 3.004 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001896/0.145, allocations: 75.89 kB / 0.5115 GB, free: 2.93 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.145, allocations: 0 / 0.5115 GB, free: 2.93 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 7.661e-05/0.1451, allocations: 35.98 kB / 0.5115 GB, free: 2.895 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002663/0.1454, allocations: 39.84 kB / 0.5115 GB, free: 2.855 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003876/0.1458, allocations: 294.8 kB / 0.5118 GB, free: 2.543 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001283/0.1459, allocations: 0.7318 MB / 0.5125 GB, free: 1.785 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.441e-05/0.146, allocations: 21.38 kB / 0.5126 GB, free: 1.766 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.936e-05/0.146, allocations: 19.44 kB / 0.5126 GB, free: 1.746 MB / 382.1 MB Notification: Performance of SimCode: time 2.5e-07/0.146, allocations: 0 / 0.5126 GB, free: 1.746 MB / 382.1 MB Notification: Performance of Templates: time 0.004971/0.151, allocations: 2.54 MB / 0.5151 GB, free: 15.22 MB / 398.1 MB make -j1 -f Annex60_1.0.0_Annex60.Utilities.Math.Examples.IntegerReplicator.makefile (rm -f Annex60_1.0.0_Annex60.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo Annex60_1.0.0_Annex60.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < Annex60_1.0.0_Annex60.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/Annex60_1.0.0_Annex60.Utilities.Math.Examples.IntegerReplicator.sim & ./Annex60_1.0.0_Annex60.Utilities.Math.Examples.IntegerReplicator -abortSlowSimulation -alarm=480 -lv LOG_STATS > Annex60_1.0.0_Annex60.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1)