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.005622/0.005622, allocations: 100.7 kB / 15.73 MB, free: 6.469 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.001192/0.001192, allocations: 196.7 kB / 16.67 MB, free: 6.379 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.622/1.622, allocations: 205.1 MB / 222.5 MB, free: 4.543 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.001347/0.001347, allocations: 47.12 kB / 326.5 MB, free: 14.25 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.125/0.1263, allocations: 46.62 MB / 373.2 MB, free: 1.336 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003467/0.1298, allocations: 1.814 MB / 375 MB, free: 15.5 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001347/0.1312, allocations: 0.6707 MB / 375.6 MB, free: 14.82 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001182/0.1314, allocations: 7.938 kB / 375.6 MB, free: 14.82 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001723/0.1315, allocations: 27.67 kB / 375.7 MB, free: 14.79 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001405/0.1317, allocations: 27.73 kB / 375.7 MB, free: 14.76 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003114/0.132, allocations: 83.78 kB / 375.8 MB, free: 14.68 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002679/0.1323, allocations: 175.5 kB / 376 MB, free: 14.51 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002109/0.1325, allocations: 78.5 kB / 376 MB, free: 14.43 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001259/0.1326, allocations: 79.69 kB / 376.1 MB, free: 14.35 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001821/0.1328, allocations: 83.56 kB / 376.2 MB, free: 14.27 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.823e-05/0.1329, allocations: 16 kB / 376.2 MB, free: 14.25 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001016/0.133, allocations: 27.92 kB / 376.2 MB, free: 14.23 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001054/0.1331, allocations: 47.83 kB / 376.3 MB, free: 14.18 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001032/0.1332, allocations: 79.47 kB / 376.4 MB, free: 14.1 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003275/0.1335, allocations: 195.3 kB / 376.6 MB, free: 13.91 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.1336, allocations: 4 kB / 376.6 MB, free: 13.91 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.1336, allocations: 0 / 376.6 MB, free: 13.91 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.824e-06/0.1336, allocations: 0 / 376.6 MB, free: 13.91 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.0009843/0.1346, allocations: 0.5064 MB / 377.1 MB, free: 13.35 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.1346, allocations: 8.031 kB / 377.1 MB, free: 13.34 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.031e-05/0.1347, allocations: 24.66 kB / 377.1 MB, free: 13.32 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003527/0.135, allocations: 251.8 kB / 377.3 MB, free: 13.04 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.672e-05/0.1351, allocations: 16.36 kB / 377.4 MB, free: 13.02 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.037e-05/0.1351, allocations: 12.38 kB / 377.4 MB, free: 13.01 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004115/0.1355, allocations: 209.6 kB / 377.6 MB, free: 12.79 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.69e-05/0.1356, allocations: 7.922 kB / 377.6 MB, free: 12.78 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.365e-05/0.1356, allocations: 8 kB / 377.6 MB, free: 12.77 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.334e-05/0.1356, allocations: 11.86 kB / 377.6 MB, free: 12.76 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003111/0.1359, allocations: 143.8 kB / 377.7 MB, free: 12.62 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001158/0.1371, allocations: 0.7778 MB / 378.5 MB, free: 11.78 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006444/0.1378, allocations: 194.6 kB / 378.7 MB, free: 11.58 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001487/0.1379, allocations: 60.83 kB / 378.8 MB, free: 11.52 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.005e-05/0.138, allocations: 0 / 378.8 MB, free: 11.52 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003208/0.1383, allocations: 145 kB / 378.9 MB, free: 11.36 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.303e-06/0.1383, allocations: 3.938 kB / 378.9 MB, free: 11.35 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0007675/0.1391, allocations: 249.3 kB / 379.2 MB, free: 11.1 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.109e-05/0.1392, allocations: 77.11 kB / 379.2 MB, free: 11.01 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003654/0.1395, allocations: 226.7 kB / 379.5 MB, free: 10.78 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.844e-05/0.1396, allocations: 38.02 kB / 379.5 MB, free: 10.73 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00011/0.1397, allocations: 128.3 kB / 379.6 MB, free: 10.61 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.939e-05/0.1397, allocations: 39.62 kB / 379.7 MB, free: 10.57 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.983e-05/0.1398, allocations: 53.61 kB / 379.7 MB, free: 10.51 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001765/0.14, allocations: 346.7 kB / 380 MB, free: 10.16 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001583/0.1402, allocations: 63.95 kB / 380.1 MB, free: 10.1 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002119/0.1404, allocations: 140.5 kB / 380.2 MB, free: 9.93 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003532/0.1408, allocations: 212.3 kB / 380.5 MB, free: 9.691 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.1408, allocations: 4 kB / 380.5 MB, free: 9.688 MB / 318.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004533/0.1412, allocations: 237.2 kB / 380.7 MB, free: 9.449 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.453e-05/0.1413, allocations: 9.328 kB / 380.7 MB, free: 9.441 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.014e-05/0.1413, allocations: 8 kB / 380.7 MB, free: 9.434 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.473e-05/0.1413, allocations: 4 kB / 380.7 MB, free: 9.43 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001718/0.1415, allocations: 35.92 kB / 380.7 MB, free: 9.395 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.358e-06/0.1415, allocations: 7.938 kB / 380.8 MB, free: 9.387 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001671/0.1417, allocations: 31.81 kB / 380.8 MB, free: 9.355 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.04e-05/0.1417, allocations: 11.94 kB / 380.8 MB, free: 9.344 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.0001758/0.1419, allocations: 152 kB / 380.9 MB, free: 9.184 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.31e-05/0.1419, allocations: 19.72 kB / 381 MB, free: 9.164 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002843/0.1422, allocations: 131 kB / 381.1 MB, free: 9.027 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.1422, allocations: 4 kB / 381.1 MB, free: 9.023 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.233e-06/0.1423, allocations: 320 / 381.1 MB, free: 9.023 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.422e-06/0.1423, allocations: 3.938 kB / 381.1 MB, free: 9.02 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006358/0.1429, allocations: 486.2 kB / 381.6 MB, free: 8.488 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.967e-06/0.1429, allocations: 3.984 kB / 381.6 MB, free: 8.484 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001151/0.143, allocations: 19.98 kB / 381.6 MB, free: 8.465 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.1431, allocations: 4 kB / 381.6 MB, free: 8.461 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.698e-05/0.1431, allocations: 4 kB / 381.6 MB, free: 8.457 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.3e-06/0.1431, allocations: 7.938 kB / 381.6 MB, free: 8.449 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1431, allocations: 0 / 381.6 MB, free: 8.449 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004811/0.1436, allocations: 288 kB / 381.9 MB, free: 8.148 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.73e-05/0.1437, allocations: 97.09 kB / 382 MB, free: 8.035 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.546e-05/0.1437, allocations: 4 kB / 382 MB, free: 8.031 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001718/0.1439, allocations: 23.86 kB / 382 MB, free: 8.008 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.49e-05/0.144, allocations: 19.97 kB / 382 MB, free: 7.988 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.922e-05/0.144, allocations: 4 kB / 382 MB, free: 7.984 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001375/0.1441, allocations: 152.4 kB / 382.2 MB, free: 7.836 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1442, allocations: 0 / 382.2 MB, free: 7.836 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002996/0.1445, allocations: 43.84 kB / 382.2 MB, free: 7.793 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.0001607/0.1446, allocations: 107.2 kB / 382.3 MB, free: 7.68 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004065/0.145, allocations: 171.7 kB / 382.5 MB, free: 7.512 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.1451, allocations: 0 / 382.5 MB, free: 7.512 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001902/0.1452, allocations: 76.39 kB / 382.6 MB, free: 7.438 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003556/0.1456, allocations: 35.91 kB / 382.6 MB, free: 7.402 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006772/0.1463, allocations: 369.8 kB / 383 MB, free: 7.008 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003171/0.1466, allocations: 0.7319 MB / 383.7 MB, free: 6.25 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 9.881e-05/0.1467, allocations: 33.52 kB / 383.7 MB, free: 6.219 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.375e-05/0.1468, allocations: 23.44 kB / 383.8 MB, free: 6.195 MB / 318.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1468, allocations: 0 / 383.8 MB, free: 6.195 MB / 318.1 MB Notification: Performance of Templates: time 0.005533/0.1524, allocations: 2.19 MB / 385.9 MB, free: 4.004 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)