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.01058/0.01058, allocations: 101.7 kB / 15.73 MB, free: 5.59 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.001806/0.001807, allocations: 191.7 kB / 16.67 MB, free: 5.523 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.762/1.762, allocations: 205.1 MB / 222.5 MB, free: 12.23 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.001193/0.001193, allocations: 48.41 kB / 326.5 MB, free: 3.309 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1246/0.1258, allocations: 46.62 MB / 373.1 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003322/0.1292, allocations: 1.816 MB / 375 MB, free: 2.75 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001441/0.1306, allocations: 0.6629 MB / 375.6 MB, free: 2.078 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001236/0.1308, allocations: 11.94 kB / 375.6 MB, free: 2.066 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001901/0.131, allocations: 31.67 kB / 375.7 MB, free: 2.035 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001484/0.1311, allocations: 31.72 kB / 375.7 MB, free: 2.004 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003205/0.1315, allocations: 83.77 kB / 375.8 MB, free: 1.922 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002434/0.1317, allocations: 179.4 kB / 376 MB, free: 1.746 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001945/0.1319, allocations: 70.62 kB / 376 MB, free: 1.676 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001325/0.1321, allocations: 83.62 kB / 376.1 MB, free: 1.594 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001543/0.1322, allocations: 83.61 kB / 376.2 MB, free: 1.512 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.158e-05/0.1323, allocations: 12 kB / 376.2 MB, free: 1.5 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.163e-05/0.1323, allocations: 20 kB / 376.2 MB, free: 1.48 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.064e-05/0.1324, allocations: 51.84 kB / 376.3 MB, free: 1.43 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.62e-05/0.1325, allocations: 87.45 kB / 376.4 MB, free: 1.344 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002745/0.1328, allocations: 203.1 kB / 376.6 MB, free: 1.145 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.1328, allocations: 3.984 kB / 376.6 MB, free: 1.141 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.1328, allocations: 0 / 376.6 MB, free: 1.141 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.965e-06/0.1329, allocations: 0 / 376.6 MB, free: 1.141 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.001099/0.134, allocations: 0.4948 MB / 377.1 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.363e-05/0.134, allocations: 12.03 kB / 377.1 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.127e-05/0.1341, allocations: 24.69 kB / 377.1 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003081/0.1344, allocations: 251.8 kB / 377.3 MB, free: 284 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.859e-05/0.1344, allocations: 12.38 kB / 377.3 MB, free: 272 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.024e-05/0.1345, allocations: 12.38 kB / 377.4 MB, free: 260 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004033/0.1349, allocations: 221.5 kB / 377.6 MB, free: 20 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.385e-05/0.1349, allocations: 0 / 377.6 MB, free: 20 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.322e-05/0.1349, allocations: 8 kB / 377.6 MB, free: 12 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.75e-05/0.135, allocations: 7.859 kB / 377.6 MB, free: 4 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2676/0.4026, allocations: 141.6 kB / 377.7 MB, free: 13.17 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001438/0.4041, allocations: 0.7792 MB / 378.5 MB, free: 12.66 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007197/0.4049, allocations: 192.5 kB / 378.7 MB, free: 12.64 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001685/0.405, allocations: 60.39 kB / 378.8 MB, free: 12.63 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.356e-05/0.4051, allocations: 3.266 kB / 378.8 MB, free: 12.63 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003153/0.4054, allocations: 151.2 kB / 378.9 MB, free: 12.57 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 2.043e-06/0.4054, allocations: 0 / 378.9 MB, free: 12.57 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006906/0.4061, allocations: 245.2 kB / 379.1 MB, free: 12.53 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.142e-05/0.4062, allocations: 84.88 kB / 379.2 MB, free: 12.43 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002507/0.4065, allocations: 220.7 kB / 379.4 MB, free: 12.32 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.512e-05/0.4065, allocations: 27.97 kB / 379.5 MB, free: 12.29 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.664e-05/0.4066, allocations: 140.6 kB / 379.6 MB, free: 12.2 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.884e-05/0.4066, allocations: 38.97 kB / 379.6 MB, free: 12.18 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.853e-05/0.4067, allocations: 58.16 kB / 379.7 MB, free: 12.16 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.829e-05/0.4068, allocations: 334.9 kB / 380 MB, free: 11.85 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001887/0.407, allocations: 67.36 kB / 380.1 MB, free: 11.85 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002326/0.4073, allocations: 145.1 kB / 380.2 MB, free: 11.77 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004855/0.4078, allocations: 212.2 kB / 380.4 MB, free: 11.68 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.4078, allocations: 0 / 380.4 MB, free: 11.68 MB / 318.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0006272/0.4084, allocations: 249.5 kB / 380.7 MB, free: 11.62 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.685e-05/0.4085, allocations: 6.922 kB / 380.7 MB, free: 11.62 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.24e-05/0.4085, allocations: 2.062 kB / 380.7 MB, free: 11.62 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.073e-05/0.4085, allocations: 4.625 kB / 380.7 MB, free: 11.62 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002456/0.4088, allocations: 45.17 kB / 380.7 MB, free: 11.62 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.843e-05/0.4088, allocations: 4.344 kB / 380.8 MB, free: 11.62 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002148/0.409, allocations: 34.06 kB / 380.8 MB, free: 11.61 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.282e-05/0.4091, allocations: 8.281 kB / 380.8 MB, free: 11.61 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.0001953/0.4093, allocations: 152.4 kB / 380.9 MB, free: 11.49 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.497e-05/0.4093, allocations: 16.98 kB / 381 MB, free: 11.48 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003155/0.4097, allocations: 135.1 kB / 381.1 MB, free: 11.42 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.08e-06/0.4097, allocations: 2.5 kB / 381.1 MB, free: 11.42 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.263e-06/0.4097, allocations: 0 / 381.1 MB, free: 11.42 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.4097, allocations: 2.094 kB / 381.1 MB, free: 11.42 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007192/0.4104, allocations: 482.6 kB / 381.6 MB, free: 11.05 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.4104, allocations: 1.578 kB / 381.6 MB, free: 11.05 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001267/0.4106, allocations: 18.47 kB / 381.6 MB, free: 11.05 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.34e-06/0.4106, allocations: 4.438 kB / 381.6 MB, free: 11.05 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.031e-05/0.4106, allocations: 12.66 kB / 381.6 MB, free: 11.04 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.198e-06/0.4106, allocations: 3.312 kB / 381.6 MB, free: 11.04 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.4106, allocations: 3.281 kB / 381.6 MB, free: 11.04 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000415/0.4111, allocations: 281.9 kB / 381.9 MB, free: 10.86 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.479e-05/0.4111, allocations: 99.55 kB / 382 MB, free: 10.75 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.556e-05/0.4112, allocations: 2.984 kB / 382 MB, free: 10.75 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001714/0.4113, allocations: 18.73 kB / 382 MB, free: 10.75 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.755e-05/0.4114, allocations: 23.48 kB / 382 MB, free: 10.74 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.018e-05/0.4115, allocations: 5.578 kB / 382 MB, free: 10.74 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001272/0.4116, allocations: 150.2 kB / 382.2 MB, free: 10.64 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.4116, allocations: 0 / 382.2 MB, free: 10.64 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003309/0.4119, allocations: 39.78 kB / 382.2 MB, free: 10.63 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.0001654/0.4121, allocations: 118.9 kB / 382.3 MB, free: 10.53 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004417/0.4126, allocations: 167 kB / 382.5 MB, free: 10.49 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.4126, allocations: 1.188 kB / 382.5 MB, free: 10.49 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002122/0.4128, allocations: 78.23 kB / 382.6 MB, free: 10.47 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003956/0.4132, allocations: 45.92 kB / 382.6 MB, free: 10.45 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008403/0.414, allocations: 358.5 kB / 383 MB, free: 10.23 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002711/0.4143, allocations: 0.7338 MB / 383.7 MB, free: 9.527 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001362/0.4145, allocations: 30.55 kB / 383.7 MB, free: 9.523 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.8e-05/0.4146, allocations: 24.94 kB / 383.8 MB, free: 9.512 MB / 318.1 MB Notification: Performance of SimCode: time 5.61e-07/0.4146, allocations: 1.031 kB / 383.8 MB, free: 9.512 MB / 318.1 MB Notification: Performance of Templates: time 0.006748/0.4213, allocations: 2.108 MB / 385.9 MB, free: 9.375 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)