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.001693/0.001693, allocations: 103.9 kB / 16.51 MB, free: 6.699 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.001516/0.001516, allocations: 193.2 kB / 17.42 MB, free: 6.09 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.769/1.769, allocations: 205.1 MB / 223.3 MB, free: 12.48 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.001377/0.001377, allocations: 43.94 kB / 279.3 MB, free: 3.598 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1229/0.1243, allocations: 46.63 MB / 325.9 MB, free: 4.902 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.004633/0.129, allocations: 1.878 MB / 327.8 MB, free: 3.004 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001542/0.1306, allocations: 0.6515 MB / 328.5 MB, free: 2.344 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001475/0.1308, allocations: 3.938 kB / 328.5 MB, free: 2.34 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000225/0.131, allocations: 27.78 kB / 328.5 MB, free: 2.312 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001665/0.1312, allocations: 19.81 kB / 328.5 MB, free: 2.293 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003709/0.1316, allocations: 79.86 kB / 328.6 MB, free: 2.215 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000345/0.132, allocations: 163.5 kB / 328.8 MB, free: 2.055 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002339/0.1322, allocations: 70.62 kB / 328.8 MB, free: 1.984 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001318/0.1323, allocations: 71.64 kB / 328.9 MB, free: 1.914 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002101/0.1326, allocations: 83.61 kB / 329 MB, free: 1.832 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.521e-05/0.1326, allocations: 8 kB / 329 MB, free: 1.824 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.398e-05/0.1327, allocations: 12 kB / 329 MB, free: 1.812 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 9.436e-05/0.1328, allocations: 43.83 kB / 329 MB, free: 1.77 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001168/0.1329, allocations: 79.47 kB / 329.1 MB, free: 1.691 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002693/0.1332, allocations: 171.6 kB / 329.3 MB, free: 1.523 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.1332, allocations: 4 kB / 329.3 MB, free: 1.52 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1332, allocations: 0 / 329.3 MB, free: 1.52 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.504e-06/0.1332, allocations: 0 / 329.3 MB, free: 1.52 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.001086/0.1343, allocations: 0.5025 MB / 329.8 MB, free: 0.9688 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.884e-05/0.1344, allocations: 12.03 kB / 329.8 MB, free: 0.957 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.915e-05/0.1344, allocations: 20.66 kB / 329.8 MB, free: 0.9375 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003141/0.1348, allocations: 247.8 kB / 330.1 MB, free: 0.6562 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.385e-05/0.1348, allocations: 12.31 kB / 330.1 MB, free: 0.6445 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.681e-05/0.1348, allocations: 20.38 kB / 330.1 MB, free: 0.625 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004329/0.1353, allocations: 213.4 kB / 330.3 MB, free: 408 kB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.265e-05/0.1353, allocations: 0 / 330.3 MB, free: 408 kB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.596e-05/0.1353, allocations: 11.98 kB / 330.3 MB, free: 396 kB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.683e-05/0.1354, allocations: 8 kB / 330.3 MB, free: 388 kB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003421/0.1357, allocations: 139.8 kB / 330.5 MB, free: 248 kB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001316/0.137, allocations: 0.7855 MB / 331.3 MB, free: 15.39 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000693/0.1378, allocations: 186.6 kB / 331.4 MB, free: 15.2 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001527/0.1379, allocations: 64.81 kB / 331.5 MB, free: 15.14 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.982e-05/0.138, allocations: 7.938 kB / 331.5 MB, free: 15.13 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002714/0.1382, allocations: 148.9 kB / 331.7 MB, free: 14.96 MB / 286.1 MB Notification: Performance of pre-optimization done (n=15): time 1.272e-06/0.1383, allocations: 0 / 331.7 MB, free: 14.96 MB / 286.1 MB Notification: Performance of matching and sorting (n=15): time 0.000567/0.1388, allocations: 245.3 kB / 331.9 MB, free: 14.72 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.453e-05/0.1389, allocations: 81.11 kB / 332 MB, free: 14.62 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001933/0.1391, allocations: 218.7 kB / 332.2 MB, free: 14.39 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.733e-05/0.1391, allocations: 33.7 kB / 332.2 MB, free: 14.36 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.018e-05/0.1392, allocations: 148.2 kB / 332.4 MB, free: 14.21 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.803e-05/0.1393, allocations: 35.55 kB / 332.4 MB, free: 14.17 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.959e-05/0.1394, allocations: 57.69 kB / 332.5 MB, free: 14.11 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001351/0.1395, allocations: 334.8 kB / 332.8 MB, free: 13.77 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001526/0.1397, allocations: 63.95 kB / 332.8 MB, free: 13.71 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001772/0.1399, allocations: 136.5 kB / 333 MB, free: 13.55 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000328/0.1402, allocations: 216.3 kB / 333.2 MB, free: 13.3 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.1402, allocations: 0 / 333.2 MB, free: 13.3 MB / 286.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000435/0.1406, allocations: 249.1 kB / 333.4 MB, free: 13.05 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.062e-05/0.1407, allocations: 8 kB / 333.4 MB, free: 13.05 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.1407, allocations: 0 / 333.4 MB, free: 13.05 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.898e-05/0.1407, allocations: 4 kB / 333.4 MB, free: 13.04 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001957/0.1409, allocations: 39.91 kB / 333.5 MB, free: 13 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.083e-05/0.1409, allocations: 4 kB / 333.5 MB, free: 13 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001577/0.1411, allocations: 28.08 kB / 333.5 MB, free: 12.97 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.305e-05/0.1411, allocations: 23.92 kB / 333.5 MB, free: 12.95 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.0001349/0.1413, allocations: 144.5 kB / 333.7 MB, free: 12.8 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.981e-05/0.1413, allocations: 15.81 kB / 333.7 MB, free: 12.78 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002741/0.1416, allocations: 131 kB / 333.8 MB, free: 12.64 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.4e-06/0.1416, allocations: 4.469 kB / 333.8 MB, free: 12.64 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.1416, allocations: 0 / 333.8 MB, free: 12.64 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.793e-06/0.1416, allocations: 3.984 kB / 333.8 MB, free: 12.64 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006013/0.1422, allocations: 494 kB / 334.3 MB, free: 12.1 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.1423, allocations: 320 / 334.3 MB, free: 12.1 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001212/0.1424, allocations: 23.92 kB / 334.3 MB, free: 12.07 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.1424, allocations: 0 / 334.3 MB, free: 12.07 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.029e-05/0.1424, allocations: 11.98 kB / 334.3 MB, free: 12.06 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.347e-06/0.1424, allocations: 7.938 kB / 334.4 MB, free: 12.05 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.1424, allocations: 0 / 334.4 MB, free: 12.05 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000418/0.1429, allocations: 281.1 kB / 334.6 MB, free: 11.76 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.87e-05/0.1429, allocations: 96.77 kB / 334.7 MB, free: 11.65 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.275e-05/0.143, allocations: 11.94 kB / 334.7 MB, free: 11.64 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001664/0.1431, allocations: 19.91 kB / 334.8 MB, free: 11.62 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.132e-05/0.1432, allocations: 19.97 kB / 334.8 MB, free: 11.6 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.819e-05/0.1433, allocations: 8 kB / 334.8 MB, free: 11.59 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001119/0.1434, allocations: 144.6 kB / 334.9 MB, free: 11.45 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1434, allocations: 4 kB / 334.9 MB, free: 11.45 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002974/0.1437, allocations: 35.98 kB / 335 MB, free: 11.41 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.000168/0.1439, allocations: 111.2 kB / 335.1 MB, free: 11.29 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003968/0.1443, allocations: 172.2 kB / 335.2 MB, free: 11.12 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.1443, allocations: 0 / 335.2 MB, free: 11.12 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001928/0.1445, allocations: 75.89 kB / 335.3 MB, free: 11.05 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000347/0.1448, allocations: 29.11 kB / 335.3 MB, free: 11.02 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006804/0.1455, allocations: 419.4 kB / 335.7 MB, free: 10.59 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004417/0.146, allocations: 0.7323 MB / 336.5 MB, free: 9.828 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001066/0.1461, allocations: 37.52 kB / 336.5 MB, free: 9.793 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.623e-05/0.1462, allocations: 19.44 kB / 336.5 MB, free: 9.773 MB / 286.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1462, allocations: 288 / 336.5 MB, free: 9.773 MB / 286.1 MB Notification: Performance of Templates: time 0.005046/0.1512, allocations: 1.867 MB / 338.4 MB, free: 7.91 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)