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.001225/0.001225, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001435/0.001435, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.664/1.664, allocations: 205.1 MB / 223.7 MB, free: 12.29 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.001177/0.001177, allocations: 47.94 kB / 280 MB, free: 3.172 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1281/0.1292, allocations: 46.63 MB / 326.6 MB, free: 4.477 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003588/0.1329, allocations: 1.817 MB / 328.4 MB, free: 2.637 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001265/0.1342, allocations: 0.6715 MB / 329.1 MB, free: 1.957 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001195/0.1343, allocations: 4 kB / 329.1 MB, free: 1.953 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001501/0.1345, allocations: 23.67 kB / 329.1 MB, free: 1.93 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000143/0.1346, allocations: 31.67 kB / 329.2 MB, free: 1.898 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003306/0.135, allocations: 83.78 kB / 329.2 MB, free: 1.816 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002486/0.1352, allocations: 175.4 kB / 329.4 MB, free: 1.645 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00018/0.1354, allocations: 70.64 kB / 329.5 MB, free: 1.574 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001364/0.1356, allocations: 75.64 kB / 329.6 MB, free: 1.5 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001664/0.1357, allocations: 87.61 kB / 329.6 MB, free: 1.414 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.315e-05/0.1358, allocations: 12 kB / 329.6 MB, free: 1.402 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.041e-05/0.1359, allocations: 27.98 kB / 329.7 MB, free: 1.375 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.251e-05/0.136, allocations: 43.83 kB / 329.7 MB, free: 1.332 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 9.904e-05/0.1361, allocations: 87.47 kB / 329.8 MB, free: 1.246 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002505/0.1363, allocations: 191.5 kB / 330 MB, free: 1.059 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.1363, allocations: 0 / 330 MB, free: 1.059 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.1363, allocations: 0 / 330 MB, free: 1.059 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.813e-06/0.1364, allocations: 0 / 330 MB, free: 1.059 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.000975/0.1373, allocations: 0.5025 MB / 330.5 MB, free: 0.5078 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.558e-05/0.1374, allocations: 8.031 kB / 330.5 MB, free: 0.5 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.499e-05/0.1375, allocations: 24.66 kB / 330.5 MB, free: 488 kB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002857/0.1378, allocations: 243.8 kB / 330.8 MB, free: 204 kB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.09e-05/0.1378, allocations: 12.38 kB / 330.8 MB, free: 192 kB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.411e-05/0.1378, allocations: 20.38 kB / 330.8 MB, free: 172 kB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004126/0.1382, allocations: 217.3 kB / 331 MB, free: 15.94 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.049e-05/0.1383, allocations: 0 / 331 MB, free: 15.94 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.3e-05/0.1383, allocations: 11.98 kB / 331 MB, free: 15.93 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.194e-05/0.1383, allocations: 11.94 kB / 331 MB, free: 15.91 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003417/0.1387, allocations: 143.7 kB / 331.2 MB, free: 15.77 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001202/0.1399, allocations: 0.7894 MB / 332 MB, free: 14.92 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006272/0.1405, allocations: 182.7 kB / 332.1 MB, free: 14.73 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001427/0.1407, allocations: 64.77 kB / 332.2 MB, free: 14.67 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.948e-05/0.1407, allocations: 8 kB / 332.2 MB, free: 14.66 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002714/0.141, allocations: 148.9 kB / 332.4 MB, free: 14.5 MB / 286.1 MB Notification: Performance of pre-optimization done (n=15): time 1.443e-06/0.141, allocations: 0 / 332.4 MB, free: 14.5 MB / 286.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005966/0.1416, allocations: 237.6 kB / 332.6 MB, free: 14.26 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.292e-05/0.1417, allocations: 89.05 kB / 332.7 MB, free: 14.15 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002083/0.1419, allocations: 222.7 kB / 332.9 MB, free: 13.92 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.643e-05/0.1419, allocations: 29.8 kB / 332.9 MB, free: 13.89 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.756e-05/0.1421, allocations: 144.1 kB / 333.1 MB, free: 13.74 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.945e-05/0.1421, allocations: 43.53 kB / 333.1 MB, free: 13.7 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.982e-05/0.1422, allocations: 53.69 kB / 333.2 MB, free: 13.64 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001267/0.1423, allocations: 330.8 kB / 333.5 MB, free: 13.31 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001615/0.1425, allocations: 71.95 kB / 333.6 MB, free: 13.24 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001847/0.1427, allocations: 136.5 kB / 333.7 MB, free: 13.07 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003363/0.143, allocations: 208.4 kB / 333.9 MB, free: 12.84 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.143, allocations: 7.938 kB / 333.9 MB, free: 12.83 MB / 286.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004367/0.1435, allocations: 253 kB / 334.1 MB, free: 12.58 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.198e-05/0.1435, allocations: 8 kB / 334.2 MB, free: 12.57 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-06/0.1435, allocations: 4 kB / 334.2 MB, free: 12.57 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.768e-05/0.1436, allocations: 0 / 334.2 MB, free: 12.57 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001712/0.1437, allocations: 40.17 kB / 334.2 MB, free: 12.53 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.033e-05/0.1438, allocations: 4 kB / 334.2 MB, free: 12.52 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001679/0.1439, allocations: 35.81 kB / 334.2 MB, free: 12.49 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.883e-05/0.144, allocations: 11.94 kB / 334.2 MB, free: 12.48 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.0001479/0.1441, allocations: 148.5 kB / 334.4 MB, free: 12.32 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.828e-05/0.1442, allocations: 15.81 kB / 334.4 MB, free: 12.31 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000263/0.1444, allocations: 135 kB / 334.5 MB, free: 12.17 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.597e-06/0.1444, allocations: 0 / 334.5 MB, free: 12.17 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.1444, allocations: 0 / 334.5 MB, free: 12.17 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.744e-06/0.1445, allocations: 4.312 kB / 334.5 MB, free: 12.16 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006036/0.1451, allocations: 486.1 kB / 335 MB, free: 11.63 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.1451, allocations: 4 kB / 335 MB, free: 11.63 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001116/0.1452, allocations: 23.91 kB / 335 MB, free: 11.61 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.1452, allocations: 0 / 335 MB, free: 11.61 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.076e-05/0.1453, allocations: 12 kB / 335.1 MB, free: 11.59 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.497e-06/0.1453, allocations: 3.938 kB / 335.1 MB, free: 11.59 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.1453, allocations: 0 / 335.1 MB, free: 11.59 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003994/0.1457, allocations: 285.4 kB / 335.3 MB, free: 11.29 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.819e-05/0.1458, allocations: 100.8 kB / 335.4 MB, free: 11.18 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.132e-05/0.1458, allocations: 0 / 335.4 MB, free: 11.18 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001661/0.146, allocations: 27.92 kB / 335.5 MB, free: 11.15 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.786e-05/0.1461, allocations: 23.91 kB / 335.5 MB, free: 11.12 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.154e-05/0.1461, allocations: 11.98 kB / 335.5 MB, free: 11.11 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001131/0.1462, allocations: 144.4 kB / 335.6 MB, free: 10.97 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.575e-06/0.1462, allocations: 0 / 335.6 MB, free: 10.97 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000315/0.1465, allocations: 43.94 kB / 335.7 MB, free: 10.93 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.000166/0.1467, allocations: 107.2 kB / 335.8 MB, free: 10.82 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.000429/0.1472, allocations: 183.7 kB / 336 MB, free: 10.64 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.1472, allocations: 0 / 336 MB, free: 10.64 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001849/0.1474, allocations: 75.89 kB / 336 MB, free: 10.56 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004206/0.1478, allocations: 33.28 kB / 336.1 MB, free: 10.53 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007995/0.1486, allocations: 353.7 kB / 336.4 MB, free: 10.16 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004587/0.1491, allocations: 0.7358 MB / 337.2 MB, free: 9.395 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001058/0.1492, allocations: 33.52 kB / 337.2 MB, free: 9.363 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.375e-05/0.1493, allocations: 19.44 kB / 337.2 MB, free: 9.344 MB / 286.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1493, allocations: 0 / 337.2 MB, free: 9.344 MB / 286.1 MB Notification: Performance of Templates: time 0.005781/0.1551, allocations: 2.105 MB / 339.3 MB, free: 7.242 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)