Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Blocks.Examples.IntegerNetwork1.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) 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(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Blocks.Examples.IntegerNetwork1") translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Blocks.Examples.IntegerNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001079/0.001079, allocations: 92.75 kB / 16.65 MB, free: 6.59 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.001197/0.001197, allocations: 184.2 kB / 17.57 MB, free: 6.199 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.032/2.032, allocations: 205.4 MB / 223.7 MB, free: 13.07 MB / 190.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.0004827/0.0004827, allocations: 8 kB / 280.7 MB, free: 3.43 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1268/0.1273, allocations: 47.59 MB / 328.3 MB, free: 3.77 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.00236/0.1297, allocations: 1.524 MB / 329.8 MB, free: 2.23 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001489/0.1312, allocations: 0.6438 MB / 330.5 MB, free: 1.578 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001935/0.1315, allocations: 4 kB / 330.5 MB, free: 1.574 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001597/0.1316, allocations: 15.8 kB / 330.5 MB, free: 1.559 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000198/0.1318, allocations: 27.78 kB / 330.5 MB, free: 1.531 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003871/0.1322, allocations: 67.89 kB / 330.6 MB, free: 1.465 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000259/0.1325, allocations: 175.4 kB / 330.8 MB, free: 1.293 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002472/0.1328, allocations: 62.66 kB / 330.8 MB, free: 1.227 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000132/0.1329, allocations: 55.7 kB / 330.9 MB, free: 1.172 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001677/0.1331, allocations: 75.56 kB / 331 MB, free: 1.098 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.416e-05/0.1331, allocations: 8 kB / 331 MB, free: 1.09 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.571e-05/0.1332, allocations: 11.98 kB / 331 MB, free: 1.078 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.703e-05/0.1333, allocations: 35.84 kB / 331 MB, free: 1.043 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001139/0.1334, allocations: 97.17 kB / 331.1 MB, free: 0.9414 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002626/0.1337, allocations: 167.6 kB / 331.3 MB, free: 0.7773 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.1337, allocations: 0 / 331.3 MB, free: 0.7773 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.1337, allocations: 0 / 331.3 MB, free: 0.7773 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.811e-06/0.1337, allocations: 0 / 331.3 MB, free: 0.7773 MB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.0009067/0.1346, allocations: 494.7 kB / 331.7 MB, free: 252 kB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.014e-05/0.1347, allocations: 12.03 kB / 331.8 MB, free: 240 kB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.67e-05/0.1348, allocations: 16.75 kB / 331.8 MB, free: 224 kB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003162/0.1351, allocations: 244 kB / 332 MB, free: 15.94 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.435e-05/0.1351, allocations: 8.375 kB / 332 MB, free: 15.93 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.368e-05/0.1352, allocations: 20.38 kB / 332 MB, free: 15.91 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004129/0.1356, allocations: 225.3 kB / 332.3 MB, free: 15.67 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.225e-05/0.1356, allocations: 0 / 332.3 MB, free: 15.67 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.053e-05/0.1356, allocations: 4 kB / 332.3 MB, free: 15.67 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.721e-05/0.1357, allocations: 11.98 kB / 332.3 MB, free: 15.66 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003559/0.136, allocations: 155.8 kB / 332.4 MB, free: 15.5 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001144/0.1372, allocations: 0.8049 MB / 333.2 MB, free: 14.64 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006787/0.1379, allocations: 202.7 kB / 333.4 MB, free: 14.43 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001522/0.138, allocations: 68.81 kB / 333.5 MB, free: 14.36 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.674e-05/0.1381, allocations: 4 kB / 333.5 MB, free: 14.36 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002987/0.1384, allocations: 153 kB / 333.7 MB, free: 14.19 MB / 286.1 MB Notification: Performance of pre-optimization done (n=15): time 1.603e-06/0.1384, allocations: 0 / 333.7 MB, free: 14.19 MB / 286.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006192/0.139, allocations: 261.2 kB / 333.9 MB, free: 13.93 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.592e-05/0.1391, allocations: 81.11 kB / 334 MB, free: 13.83 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002176/0.1393, allocations: 222.7 kB / 334.2 MB, free: 13.6 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.935e-05/0.1394, allocations: 29.7 kB / 334.2 MB, free: 13.56 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001231/0.1395, allocations: 144.1 kB / 334.4 MB, free: 13.42 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.012e-05/0.1396, allocations: 39.53 kB / 334.4 MB, free: 13.38 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.199e-05/0.1396, allocations: 41.7 kB / 334.5 MB, free: 13.33 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001557/0.1398, allocations: 334.8 kB / 334.8 MB, free: 13 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001586/0.1399, allocations: 67.95 kB / 334.8 MB, free: 12.93 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002096/0.1402, allocations: 144.5 kB / 335 MB, free: 12.76 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000375/0.1405, allocations: 216.3 kB / 335.2 MB, free: 12.52 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/0.1406, allocations: 0 / 335.2 MB, free: 12.52 MB / 286.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004509/0.141, allocations: 257.2 kB / 335.5 MB, free: 12.26 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.919e-05/0.141, allocations: 7.984 kB / 335.5 MB, free: 12.25 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.796e-06/0.1411, allocations: 4 kB / 335.5 MB, free: 12.25 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.659e-05/0.1411, allocations: 4.25 kB / 335.5 MB, free: 12.24 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001634/0.1413, allocations: 39.92 kB / 335.5 MB, free: 12.2 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.011e-05/0.1413, allocations: 4 kB / 335.5 MB, free: 12.2 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001782/0.1415, allocations: 35.81 kB / 335.5 MB, free: 12.16 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.905e-05/0.1415, allocations: 15.94 kB / 335.6 MB, free: 12.15 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 25 (product.y,product.u[2],product.u[1],sum.u[1],triggeredAdd.y,$PRE.triggeredAdd.y,$whenCondition3,$whenCondition2,multiSwitch1.expr[2],multiSwitch1.expr[1],booleanPulse2.pulseStart,$PRE.booleanPulse2.pulseStart,multiSwitch1.firstActiveIndex,multiSwitch1.y,$PRE.multiSwitch1.y,multiSwitch1.u[2],multiSwitch1.u[1],booleanPulse1.pulseStart,$PRE.booleanPulse1.pulseStart,$whenCondition1,triggeredAdd.local_set,triggeredAdd.local_reset,showValue2.number,showValue1.number,showValue.number) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * Array equations: 0 * 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.0001557/0.1417, allocations: 152.5 kB / 335.7 MB, free: 11.99 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.923e-05/0.1417, allocations: 19.72 kB / 335.7 MB, free: 11.97 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002707/0.142, allocations: 131 kB / 335.9 MB, free: 11.83 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.336e-06/0.142, allocations: 0 / 335.9 MB, free: 11.83 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.031e-06/0.142, allocations: 0 / 335.9 MB, free: 11.83 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.532e-06/0.142, allocations: 4 kB / 335.9 MB, free: 11.83 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006401/0.1426, allocations: 482.7 kB / 336.3 MB, free: 11.3 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.487e-06/0.1427, allocations: 12.33 kB / 336.3 MB, free: 11.29 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001132/0.1428, allocations: 19.92 kB / 336.4 MB, free: 11.27 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.424e-06/0.1428, allocations: 4 kB / 336.4 MB, free: 11.27 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.804e-05/0.1428, allocations: 8 kB / 336.4 MB, free: 11.26 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.869e-06/0.1428, allocations: 7.938 kB / 336.4 MB, free: 11.25 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.358e-06/0.1428, allocations: 7.922 kB / 336.4 MB, free: 11.24 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004249/0.1433, allocations: 292 kB / 336.7 MB, free: 10.94 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.806e-05/0.1433, allocations: 96.84 kB / 336.8 MB, free: 10.82 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.113e-05/0.1434, allocations: 8 kB / 336.8 MB, free: 10.82 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001685/0.1436, allocations: 23.92 kB / 336.8 MB, free: 10.79 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.898e-05/0.1436, allocations: 19.97 kB / 336.8 MB, free: 10.77 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.405e-05/0.1437, allocations: 11.98 kB / 336.8 MB, free: 10.76 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001389/0.1438, allocations: 144.6 kB / 337 MB, free: 10.62 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1438, allocations: 0 / 337 MB, free: 10.62 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002971/0.1441, allocations: 35.91 kB / 337 MB, free: 10.59 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 14 (multiSwitch1.u[1],$whenCondition3,$whenCondition2,$whenCondition1,triggeredAdd.y,booleanPulse1.pulseStart,multiSwitch1.u[2],multiSwitch1.y,multiSwitch1.firstActiveIndex,booleanPulse2.pulseStart,sum.u[1],product.u[1],product.u[2],product.y) * Number of discrete states: 2 (multiSwitch1.y,triggeredAdd.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0001885/0.1443, allocations: 123.1 kB / 337.1 MB, free: 10.46 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0004083/0.1447, allocations: 175.8 kB / 337.3 MB, free: 10.29 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.1447, allocations: 0 / 337.3 MB, free: 10.29 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001878/0.1449, allocations: 84.39 kB / 337.4 MB, free: 10.2 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000408/0.1454, allocations: 27.94 kB / 337.4 MB, free: 10.18 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007702/0.1461, allocations: 419.6 kB / 337.8 MB, free: 9.738 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003295/0.1465, allocations: 0.7362 MB / 338.6 MB, free: 8.977 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 9.833e-05/0.1466, allocations: 33.47 kB / 338.6 MB, free: 8.945 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.844e-05/0.1467, allocations: 19.42 kB / 338.6 MB, free: 8.926 MB / 286.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1467, allocations: 4 kB / 338.6 MB, free: 8.922 MB / 286.1 MB Notification: Performance of Templates: time 0.005148/0.1518, allocations: 1.836 MB / 340.4 MB, free: 7.09 MB / 286.1 MB make -j1 -f Modelica_3.2.2_Modelica.Blocks.Examples.IntegerNetwork1.makefile (rm -f Modelica_3.2.2_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_3.2.2_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_3.2.2_Modelica.Blocks.Examples.IntegerNetwork1.sim & ./Modelica_3.2.2_Modelica.Blocks.Examples.IntegerNetwork1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1)