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.006977/0.006983, allocations: 95.48 kB / 15.73 MB, free: 6.484 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.00145/0.00145, allocations: 190.9 kB / 16.67 MB, free: 6.391 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.599/1.599, allocations: 205.1 MB / 222.6 MB, free: 4.508 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.001213/0.001213, allocations: 50.03 kB / 326.5 MB, free: 14.42 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.117/0.1182, 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.003155/0.1214, allocations: 1.81 MB / 375 MB, free: 15.51 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001144/0.1226, allocations: 0.6707 MB / 375.6 MB, free: 14.83 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001178/0.1227, allocations: 7.938 kB / 375.6 MB, free: 14.82 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001548/0.1229, allocations: 23.67 kB / 375.7 MB, free: 14.8 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001409/0.123, allocations: 31.73 kB / 375.7 MB, free: 14.77 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003243/0.1233, allocations: 83.78 kB / 375.8 MB, free: 14.68 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002644/0.1236, allocations: 175.5 kB / 376 MB, free: 14.51 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002203/0.1238, allocations: 78.56 kB / 376 MB, free: 14.43 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001251/0.124, allocations: 71.69 kB / 376.1 MB, free: 14.36 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001699/0.1242, allocations: 87.55 kB / 376.2 MB, free: 14.28 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.847e-05/0.1242, allocations: 16 kB / 376.2 MB, free: 14.26 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.257e-05/0.1243, allocations: 20 kB / 376.2 MB, free: 14.24 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.357e-05/0.1244, allocations: 51.77 kB / 376.3 MB, free: 14.19 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.449e-05/0.1245, allocations: 87.47 kB / 376.4 MB, free: 14.11 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003364/0.1248, allocations: 195.1 kB / 376.6 MB, free: 13.91 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.1249, allocations: 4 kB / 376.6 MB, free: 13.91 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.1249, allocations: 4 kB / 376.6 MB, free: 13.91 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.492e-06/0.1249, 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.0009513/0.1258, allocations: 0.5062 MB / 377.1 MB, free: 13.35 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/0.1259, allocations: 12.03 kB / 377.1 MB, free: 13.34 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.07e-05/0.1259, allocations: 20.8 kB / 377.1 MB, free: 13.32 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003082/0.1263, allocations: 252 kB / 377.3 MB, free: 13.04 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.887e-05/0.1263, allocations: 20.31 kB / 377.4 MB, free: 13.02 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.129e-05/0.1263, allocations: 16.38 kB / 377.4 MB, free: 13 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004239/0.1268, allocations: 205.6 kB / 377.6 MB, free: 12.78 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.231e-05/0.1268, allocations: 4 kB / 377.6 MB, free: 12.78 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.945e-05/0.1268, allocations: 4 kB / 377.6 MB, free: 12.77 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.516e-05/0.1268, allocations: 19.8 kB / 377.6 MB, free: 12.75 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003311/0.1272, allocations: 139.8 kB / 377.7 MB, free: 12.62 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0011/0.1283, allocations: 0.7818 MB / 378.5 MB, free: 11.77 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006376/0.1289, allocations: 190.6 kB / 378.7 MB, free: 11.58 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001473/0.1291, allocations: 60.83 kB / 378.8 MB, free: 11.52 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.768e-05/0.1291, allocations: 7.984 kB / 378.8 MB, free: 11.51 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002659/0.1294, allocations: 141 kB / 378.9 MB, free: 11.35 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.453e-06/0.1294, allocations: 0 / 378.9 MB, free: 11.35 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006141/0.1301, allocations: 253.3 kB / 379.2 MB, free: 11.1 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.423e-05/0.1301, allocations: 85.11 kB / 379.2 MB, free: 11 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002061/0.1304, allocations: 222.8 kB / 379.5 MB, free: 10.77 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.834e-05/0.1304, allocations: 29.7 kB / 379.5 MB, free: 10.73 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.385e-05/0.1305, allocations: 136.4 kB / 379.6 MB, free: 10.6 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.237e-05/0.1305, allocations: 35.78 kB / 379.7 MB, free: 10.56 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.397e-05/0.1306, allocations: 57.69 kB / 379.7 MB, free: 10.5 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001428/0.1308, allocations: 338.8 kB / 380 MB, free: 10.16 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001637/0.131, allocations: 67.95 kB / 380.1 MB, free: 10.09 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001907/0.1311, allocations: 136.4 kB / 380.2 MB, free: 9.93 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003447/0.1315, allocations: 220.3 kB / 380.5 MB, free: 9.684 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.1315, allocations: 0 / 380.5 MB, free: 9.684 MB / 318.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004504/0.132, allocations: 245.3 kB / 380.7 MB, free: 9.438 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.9e-05/0.132, allocations: 8 kB / 380.7 MB, free: 9.43 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.071e-06/0.132, allocations: 256 / 380.7 MB, free: 9.43 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.799e-05/0.1321, allocations: 8 kB / 380.7 MB, free: 9.422 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001706/0.1322, allocations: 43.91 kB / 380.8 MB, free: 9.379 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.407e-06/0.1323, allocations: 4.375 kB / 380.8 MB, free: 9.375 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001634/0.1324, allocations: 31.77 kB / 380.8 MB, free: 9.344 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.297e-05/0.1325, allocations: 15.94 kB / 380.8 MB, free: 9.328 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.0001479/0.1326, allocations: 144 kB / 381 MB, free: 9.176 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.046e-05/0.1327, allocations: 27.84 kB / 381 MB, free: 9.148 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002614/0.1329, allocations: 131 kB / 381.1 MB, free: 9.012 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.1329, allocations: 4 kB / 381.1 MB, free: 9.008 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.1329, allocations: 3.938 kB / 381.1 MB, free: 9.004 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.558e-06/0.133, allocations: 320 / 381.1 MB, free: 9.004 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006202/0.1336, allocations: 482.2 kB / 381.6 MB, free: 8.477 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.426e-06/0.1336, allocations: 4 kB / 381.6 MB, free: 8.473 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001098/0.1337, allocations: 23.98 kB / 381.6 MB, free: 8.449 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.1337, allocations: 4 kB / 381.6 MB, free: 8.445 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.599e-05/0.1337, allocations: 4 kB / 381.6 MB, free: 8.441 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.476e-06/0.1338, allocations: 3.938 kB / 381.6 MB, free: 8.438 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.1338, allocations: 0 / 381.6 MB, free: 8.438 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004077/0.1342, allocations: 292 kB / 381.9 MB, free: 8.133 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.53e-05/0.1342, allocations: 100.9 kB / 382 MB, free: 8.016 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.157e-05/0.1343, allocations: 8 kB / 382 MB, free: 8.008 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001653/0.1345, allocations: 19.91 kB / 382 MB, free: 7.988 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.726e-05/0.1345, allocations: 19.98 kB / 382.1 MB, free: 7.969 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.176e-05/0.1346, allocations: 11.98 kB / 382.1 MB, free: 7.957 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001169/0.1347, allocations: 148.4 kB / 382.2 MB, free: 7.812 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1347, allocations: 0 / 382.2 MB, free: 7.812 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000298/0.135, allocations: 36 kB / 382.2 MB, free: 7.777 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.0002222/0.1352, allocations: 107.2 kB / 382.4 MB, free: 7.664 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004323/0.1357, allocations: 171.7 kB / 382.5 MB, free: 7.496 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.1357, allocations: 0 / 382.5 MB, free: 7.496 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001915/0.1359, allocations: 80.08 kB / 382.6 MB, free: 7.418 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003461/0.1362, allocations: 40.55 kB / 382.6 MB, free: 7.379 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007626/0.137, allocations: 365.6 kB / 383 MB, free: 6.988 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003892/0.1374, allocations: 0.7319 MB / 383.7 MB, free: 6.23 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001058/0.1375, allocations: 37.5 kB / 383.8 MB, free: 6.195 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.635e-05/0.1376, allocations: 19.44 kB / 383.8 MB, free: 6.176 MB / 318.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1376, allocations: 0 / 383.8 MB, free: 6.176 MB / 318.1 MB Notification: Performance of Templates: time 0.006099/0.1437, allocations: 2.115 MB / 385.9 MB, free: 4.059 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)