Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.1_Modelica.Blocks.Examples.IntegerNetwork1") translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.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.005567/0.005567, allocations: 100.8 kB / 15.73 MB, free: 6.047 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.001139/0.001139, allocations: 186.5 kB / 16.67 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.567/1.567, allocations: 205.1 MB / 222.5 MB, free: 4.406 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.00126/0.00126, allocations: 58.25 kB / 326.5 MB, free: 14.45 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1131/0.1143, allocations: 46.61 MB / 373.2 MB, free: 1.324 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003388/0.1178, allocations: 1.817 MB / 375 MB, free: 15.49 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001397/0.1192, allocations: 0.6746 MB / 375.6 MB, free: 14.8 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001247/0.1194, allocations: 4 kB / 375.6 MB, free: 14.8 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001655/0.1195, allocations: 27.66 kB / 375.7 MB, free: 14.77 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001421/0.1197, allocations: 31.72 kB / 375.7 MB, free: 14.74 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002938/0.12, allocations: 83.8 kB / 375.8 MB, free: 14.66 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002321/0.1202, allocations: 175.4 kB / 376 MB, free: 14.49 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001916/0.1204, allocations: 78.56 kB / 376 MB, free: 14.41 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001221/0.1206, allocations: 75.7 kB / 376.1 MB, free: 14.34 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001565/0.1207, allocations: 83.55 kB / 376.2 MB, free: 14.25 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.987e-05/0.1208, allocations: 16 kB / 376.2 MB, free: 14.24 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.675e-05/0.1209, allocations: 27.98 kB / 376.2 MB, free: 14.21 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.481e-05/0.1209, allocations: 47.83 kB / 376.3 MB, free: 14.16 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001025/0.1211, allocations: 83.47 kB / 376.4 MB, free: 14.08 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002646/0.1213, allocations: 199.2 kB / 376.6 MB, free: 13.89 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.1213, allocations: 0 / 376.6 MB, free: 13.89 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1213, allocations: 0 / 376.6 MB, free: 13.89 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.702e-06/0.1214, allocations: 0 / 376.6 MB, free: 13.89 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.0009681/0.1223, allocations: 0.5064 MB / 377.1 MB, free: 13.33 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.141e-05/0.1224, allocations: 12.03 kB / 377.1 MB, free: 13.32 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.864e-05/0.1225, allocations: 24.66 kB / 377.1 MB, free: 13.3 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003022/0.1228, allocations: 247.8 kB / 377.3 MB, free: 13.02 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.679e-05/0.1228, allocations: 16.36 kB / 377.4 MB, free: 13 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.076e-05/0.1228, allocations: 16.38 kB / 377.4 MB, free: 12.98 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004149/0.1233, allocations: 217.6 kB / 377.6 MB, free: 12.75 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.086e-05/0.1233, allocations: 0 / 377.6 MB, free: 12.75 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.021e-05/0.1233, allocations: 4 kB / 377.6 MB, free: 12.75 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.458e-05/0.1233, allocations: 11.86 kB / 377.6 MB, free: 12.74 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003188/0.1237, allocations: 143.7 kB / 377.7 MB, free: 12.6 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001033/0.1247, allocations: 0.7778 MB / 378.5 MB, free: 11.76 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005922/0.1253, allocations: 182.7 kB / 378.7 MB, free: 11.57 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001476/0.1255, allocations: 64.81 kB / 378.8 MB, free: 11.5 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.767e-05/0.1255, allocations: 7.984 kB / 378.8 MB, free: 11.5 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000255/0.1258, allocations: 145 kB / 378.9 MB, free: 11.34 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.593e-06/0.1258, allocations: 4 kB / 378.9 MB, free: 11.33 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.000604/0.1264, allocations: 237.3 kB / 379.1 MB, free: 11.09 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.494e-05/0.1265, allocations: 85.09 kB / 379.2 MB, free: 10.99 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002084/0.1267, allocations: 230.6 kB / 379.5 MB, free: 10.76 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.453e-05/0.1267, allocations: 29.7 kB / 379.5 MB, free: 10.72 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001045/0.1269, allocations: 144.3 kB / 379.6 MB, free: 10.58 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.027e-05/0.1269, allocations: 27.64 kB / 379.7 MB, free: 10.55 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.69e-05/0.127, allocations: 61.61 kB / 379.7 MB, free: 10.48 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001565/0.1271, allocations: 334.8 kB / 380 MB, free: 10.15 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001688/0.1273, allocations: 67.95 kB / 380.1 MB, free: 10.08 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001917/0.1275, allocations: 140.8 kB / 380.2 MB, free: 9.914 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003273/0.1279, allocations: 208.3 kB / 380.4 MB, free: 9.68 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.1279, allocations: 0 / 380.4 MB, free: 9.68 MB / 318.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004377/0.1283, allocations: 249.2 kB / 380.7 MB, free: 9.43 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.253e-05/0.1283, allocations: 13.03 kB / 380.7 MB, free: 9.418 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.972e-06/0.1284, allocations: 0 / 380.7 MB, free: 9.418 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.871e-05/0.1284, allocations: 4 kB / 380.7 MB, free: 9.414 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001737/0.1286, allocations: 39.91 kB / 380.7 MB, free: 9.375 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.061e-05/0.1286, allocations: 4 kB / 380.7 MB, free: 9.371 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001599/0.1287, allocations: 32.38 kB / 380.8 MB, free: 9.34 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.757e-05/0.1288, allocations: 15.94 kB / 380.8 MB, free: 9.324 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.0001639/0.1289, allocations: 156 kB / 380.9 MB, free: 9.16 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.154e-05/0.129, allocations: 19.72 kB / 381 MB, free: 9.141 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002614/0.1293, allocations: 135 kB / 381.1 MB, free: 9 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.541e-06/0.1293, allocations: 0 / 381.1 MB, free: 9 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.1293, allocations: 3.938 kB / 381.1 MB, free: 8.996 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.511e-06/0.1293, allocations: 4 kB / 381.1 MB, free: 8.992 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006115/0.1299, allocations: 478.2 kB / 381.6 MB, free: 8.469 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.456e-06/0.1299, allocations: 4 kB / 381.6 MB, free: 8.465 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001111/0.13, allocations: 15.98 kB / 381.6 MB, free: 8.449 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.347e-06/0.1301, allocations: 0 / 381.6 MB, free: 8.449 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.884e-05/0.1301, allocations: 11.98 kB / 381.6 MB, free: 8.438 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.258e-06/0.1301, allocations: 3.938 kB / 381.6 MB, free: 8.434 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/0.1301, allocations: 3.938 kB / 381.6 MB, free: 8.43 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003945/0.1305, allocations: 288 kB / 381.9 MB, free: 8.129 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.853e-05/0.1306, allocations: 92.92 kB / 382 MB, free: 8.02 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.923e-05/0.1306, allocations: 3.984 kB / 382 MB, free: 8.016 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001592/0.1308, allocations: 19.92 kB / 382 MB, free: 7.996 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.751e-05/0.1309, allocations: 23.97 kB / 382 MB, free: 7.973 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.789e-05/0.1309, allocations: 4 kB / 382 MB, free: 7.969 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001166/0.131, allocations: 152.4 kB / 382.2 MB, free: 7.82 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.131, allocations: 0 / 382.2 MB, free: 7.82 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003148/0.1313, allocations: 48.02 kB / 382.2 MB, free: 7.773 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.0001595/0.1315, allocations: 107.2 kB / 382.3 MB, free: 7.66 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00041/0.1319, allocations: 172.2 kB / 382.5 MB, free: 7.492 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.1319, allocations: 0 / 382.5 MB, free: 7.492 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001747/0.1321, allocations: 79.89 kB / 382.6 MB, free: 7.414 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000338/0.1325, allocations: 27.92 kB / 382.6 MB, free: 7.387 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007011/0.1332, allocations: 374 kB / 383 MB, free: 6.988 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003228/0.1335, allocations: 0.7319 MB / 383.7 MB, free: 6.23 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001609/0.1337, allocations: 41.52 kB / 383.7 MB, free: 6.191 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.177e-05/0.1338, allocations: 27.42 kB / 383.8 MB, free: 6.164 MB / 318.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1338, allocations: 4 kB / 383.8 MB, free: 6.16 MB / 318.1 MB Notification: Performance of Templates: time 0.00619/0.14, allocations: 2.104 MB / 385.9 MB, free: 4.055 MB / 318.1 MB make -j1 -f Modelica_3.1_Modelica.Blocks.Examples.IntegerNetwork1.makefile (rm -f Modelica_3.1_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_3.1_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_3.1_Modelica.Blocks.Examples.IntegerNetwork1.sim & ./Modelica_3.1_Modelica.Blocks.Examples.IntegerNetwork1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1)