Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_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.1_Modelica.Blocks.Examples.IntegerNetwork1") translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_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.008483/0.008483, allocations: 95.97 kB / 15.73 MB, free: 6.055 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.00136/0.00136, allocations: 202.7 kB / 16.68 MB, free: 5.977 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.634/1.634, allocations: 205.1 MB / 222.5 MB, free: 4.367 MB / 174.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.001153/0.001153, allocations: 53.64 kB / 326.5 MB, free: 14.45 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1206/0.1217, allocations: 46.62 MB / 373.2 MB, free: 1.305 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003414/0.1252, allocations: 1.821 MB / 375 MB, free: 15.46 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001297/0.1265, allocations: 0.6668 MB / 375.6 MB, free: 14.79 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001195/0.1267, allocations: 7.938 kB / 375.7 MB, free: 14.78 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001579/0.1268, allocations: 31.67 kB / 375.7 MB, free: 14.75 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001506/0.127, allocations: 27.72 kB / 375.7 MB, free: 14.72 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003305/0.1273, allocations: 83.78 kB / 375.8 MB, free: 14.64 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002988/0.1276, allocations: 175.4 kB / 376 MB, free: 14.47 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001942/0.1278, allocations: 82.55 kB / 376 MB, free: 14.39 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001235/0.128, allocations: 67.77 kB / 376.1 MB, free: 14.32 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001693/0.1282, allocations: 91.48 kB / 376.2 MB, free: 14.23 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.022e-05/0.1282, allocations: 16 kB / 376.2 MB, free: 14.21 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.813e-05/0.1283, allocations: 27.98 kB / 376.2 MB, free: 14.19 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.181e-05/0.1284, allocations: 39.84 kB / 376.3 MB, free: 14.15 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.648e-05/0.1285, allocations: 91.45 kB / 376.4 MB, free: 14.06 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002904/0.1288, allocations: 199.1 kB / 376.6 MB, free: 13.86 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.1288, allocations: 0 / 376.6 MB, free: 13.86 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.1288, allocations: 0 / 376.6 MB, free: 13.86 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.698e-06/0.1288, allocations: 0 / 376.6 MB, free: 13.86 MB / 318.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.0009482/0.1298, allocations: 0.5101 MB / 377.1 MB, free: 13.3 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.872e-05/0.1298, allocations: 8.031 kB / 377.1 MB, free: 13.3 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.639e-05/0.1299, allocations: 28.8 kB / 377.1 MB, free: 13.27 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000309/0.1302, allocations: 248 kB / 377.4 MB, free: 12.99 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.208e-05/0.1302, allocations: 12.38 kB / 377.4 MB, free: 12.98 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.733e-05/0.1303, allocations: 16.38 kB / 377.4 MB, free: 12.96 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004556/0.1307, allocations: 217.6 kB / 377.6 MB, free: 12.73 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.358e-05/0.1308, allocations: 0 / 377.6 MB, free: 12.73 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.536e-05/0.1308, allocations: 8 kB / 377.6 MB, free: 12.72 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.418e-05/0.1308, allocations: 7.859 kB / 377.6 MB, free: 12.71 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003241/0.1311, allocations: 147.6 kB / 377.8 MB, free: 12.57 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001416/0.1326, allocations: 0.774 MB / 378.5 MB, free: 11.73 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006498/0.1332, allocations: 202.6 kB / 378.7 MB, free: 11.53 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001528/0.1334, allocations: 56.83 kB / 378.8 MB, free: 11.47 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.249e-05/0.1334, allocations: 0 / 378.8 MB, free: 11.47 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002881/0.1337, allocations: 160.9 kB / 378.9 MB, free: 11.29 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.293e-06/0.1338, allocations: 0 / 378.9 MB, free: 11.29 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006409/0.1344, allocations: 241.4 kB / 379.2 MB, free: 11.05 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.957e-05/0.1345, allocations: 81.05 kB / 379.3 MB, free: 10.95 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002049/0.1347, allocations: 218.9 kB / 379.5 MB, free: 10.73 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.595e-05/0.1347, allocations: 41.69 kB / 379.5 MB, free: 10.68 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.837e-05/0.1348, allocations: 132.4 kB / 379.6 MB, free: 10.55 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.435e-05/0.1349, allocations: 35.8 kB / 379.7 MB, free: 10.52 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.517e-05/0.135, allocations: 49.7 kB / 379.7 MB, free: 10.46 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001436/0.1351, allocations: 338.8 kB / 380.1 MB, free: 10.12 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001651/0.1353, allocations: 71.89 kB / 380.1 MB, free: 10.05 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002037/0.1355, allocations: 136.5 kB / 380.3 MB, free: 9.887 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003623/0.1359, allocations: 208.3 kB / 380.5 MB, free: 9.652 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.1359, allocations: 4 kB / 380.5 MB, free: 9.648 MB / 318.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004259/0.1363, allocations: 245.3 kB / 380.7 MB, free: 9.402 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.977e-05/0.1363, allocations: 7.984 kB / 380.7 MB, free: 9.395 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.18e-05/0.1364, allocations: 7.938 kB / 380.7 MB, free: 9.387 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.24e-05/0.1364, allocations: 4 kB / 380.7 MB, free: 9.383 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001817/0.1366, allocations: 35.98 kB / 380.8 MB, free: 9.348 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.376e-05/0.1366, allocations: 7.938 kB / 380.8 MB, free: 9.34 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001745/0.1368, allocations: 40.31 kB / 380.8 MB, free: 9.301 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.175e-05/0.1368, allocations: 15.94 kB / 380.8 MB, free: 9.285 MB / 318.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.000162/0.137, allocations: 144 kB / 381 MB, free: 9.133 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.088e-05/0.137, allocations: 15.91 kB / 381 MB, free: 9.117 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002654/0.1373, allocations: 143.3 kB / 381.1 MB, free: 8.969 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.161e-06/0.1373, allocations: 7.938 kB / 381.1 MB, free: 8.961 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/0.1373, allocations: 0 / 381.1 MB, free: 8.961 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.97e-06/0.1373, allocations: 0 / 381.1 MB, free: 8.961 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006502/0.138, allocations: 478.3 kB / 381.6 MB, free: 8.438 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.138, allocations: 0 / 381.6 MB, free: 8.438 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001156/0.1381, allocations: 23.97 kB / 381.6 MB, free: 8.414 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.779e-06/0.1381, allocations: 4 kB / 381.6 MB, free: 8.41 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.809e-05/0.1382, allocations: 0 / 381.6 MB, free: 8.41 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.609e-06/0.1382, allocations: 3.938 kB / 381.6 MB, free: 8.406 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/0.1382, allocations: 4 kB / 381.6 MB, free: 8.402 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004429/0.1386, allocations: 292 kB / 381.9 MB, free: 8.098 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.065e-05/0.1387, allocations: 100.9 kB / 382 MB, free: 7.98 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.37e-05/0.1388, allocations: 8 kB / 382 MB, free: 7.973 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000167/0.1389, allocations: 15.92 kB / 382 MB, free: 7.957 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.75e-05/0.139, allocations: 23.97 kB / 382.1 MB, free: 7.934 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.005e-05/0.1391, allocations: 8 kB / 382.1 MB, free: 7.926 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001269/0.1392, allocations: 148.4 kB / 382.2 MB, free: 7.781 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1392, allocations: 0 / 382.2 MB, free: 7.781 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003164/0.1395, allocations: 40 kB / 382.2 MB, free: 7.742 MB / 318.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.0002017/0.1397, allocations: 107.2 kB / 382.4 MB, free: 7.629 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004648/0.1402, allocations: 172.2 kB / 382.5 MB, free: 7.461 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.1402, allocations: 0 / 382.5 MB, free: 7.461 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000199/0.1404, allocations: 79.88 kB / 382.6 MB, free: 7.383 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003936/0.1408, allocations: 36.47 kB / 382.6 MB, free: 7.348 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007597/0.1416, allocations: 369.6 kB / 383 MB, free: 6.953 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003117/0.1419, allocations: 0.7358 MB / 383.7 MB, free: 6.191 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 9.993e-05/0.142, allocations: 45.52 kB / 383.8 MB, free: 6.148 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.715e-05/0.1421, allocations: 19.38 kB / 383.8 MB, free: 6.129 MB / 318.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1421, allocations: 4 kB / 383.8 MB, free: 6.125 MB / 318.1 MB Notification: Performance of Templates: time 0.005746/0.1479, allocations: 2.1 MB / 385.9 MB, free: 4.023 MB / 318.1 MB make -j1 -f Modelica_3.2.1_Modelica.Blocks.Examples.IntegerNetwork1.makefile (rm -f Modelica_3.2.1_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_3.2.1_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_3.2.1_Modelica.Blocks.Examples.IntegerNetwork1.sim & ./Modelica_3.2.1_Modelica.Blocks.Examples.IntegerNetwork1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1)