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.001294/0.001295, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001271/0.001271, allocations: 195.5 kB / 16.25 MB, free: 6.621 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.523/1.523, allocations: 205.1 MB / 222.1 MB, free: 4.691 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.001169/0.001169, allocations: 51.92 kB / 278.2 MB, free: 12.69 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2813/0.2825, allocations: 46.63 MB / 324.8 MB, free: 1.941 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003424/0.286, allocations: 1.872 MB / 326.7 MB, free: 480 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.001313/0.2873, allocations: 0.6472 MB / 327.4 MB, free: 15.96 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001165/0.2874, allocations: 6.594 kB / 327.4 MB, free: 15.96 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001696/0.2876, allocations: 23.8 kB / 327.4 MB, free: 15.93 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001403/0.2878, allocations: 26.28 kB / 327.4 MB, free: 15.91 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003203/0.2881, allocations: 70.5 kB / 327.5 MB, free: 15.86 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002961/0.2884, allocations: 174.8 kB / 327.6 MB, free: 15.76 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002127/0.2886, allocations: 65.34 kB / 327.7 MB, free: 15.72 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001718/0.2888, allocations: 82.75 kB / 327.8 MB, free: 15.66 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001811/0.289, allocations: 87.66 kB / 327.9 MB, free: 15.6 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.593e-05/0.2891, allocations: 14.06 kB / 327.9 MB, free: 15.6 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.081e-05/0.2892, allocations: 22.41 kB / 327.9 MB, free: 15.6 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.026e-05/0.2892, allocations: 42.03 kB / 328 MB, free: 15.57 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001094/0.2894, allocations: 88.12 kB / 328 MB, free: 15.5 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003187/0.2897, allocations: 190.7 kB / 328.2 MB, free: 15.36 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.532e-06/0.2897, allocations: 1.375 kB / 328.2 MB, free: 15.36 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.2897, allocations: 0 / 328.2 MB, free: 15.36 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.243e-06/0.2897, allocations: 0 / 328.2 MB, free: 15.36 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.0009515/0.2907, allocations: 0.5047 MB / 328.7 MB, free: 14.88 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.091e-05/0.2907, allocations: 9.562 kB / 328.7 MB, free: 14.88 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.62e-05/0.2908, allocations: 26.88 kB / 328.8 MB, free: 14.87 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002564/0.2911, allocations: 238.1 kB / 329 MB, free: 14.62 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.599e-05/0.2911, allocations: 14.91 kB / 329 MB, free: 14.61 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.269e-05/0.2911, allocations: 15.94 kB / 329 MB, free: 14.61 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003993/0.2915, allocations: 220.8 kB / 329.2 MB, free: 14.45 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.083e-05/0.2916, allocations: 0 / 329.2 MB, free: 14.45 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.067e-05/0.2916, allocations: 10.17 kB / 329.3 MB, free: 14.44 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.443e-05/0.2916, allocations: 10.47 kB / 329.3 MB, free: 14.44 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003411/0.292, allocations: 145 kB / 329.4 MB, free: 14.37 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001103/0.2931, allocations: 0.7831 MB / 330.2 MB, free: 13.65 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006519/0.2937, allocations: 187.8 kB / 330.4 MB, free: 13.55 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001534/0.2939, allocations: 69.31 kB / 330.4 MB, free: 13.52 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.76e-05/0.2939, allocations: 6.016 kB / 330.5 MB, free: 13.51 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002965/0.2943, allocations: 151.4 kB / 330.6 MB, free: 13.39 MB / 270.1 MB Notification: Performance of pre-optimization done (n=15): time 1.593e-06/0.2943, allocations: 0 / 330.6 MB, free: 13.39 MB / 270.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006256/0.2949, allocations: 244.9 kB / 330.8 MB, free: 13.27 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.487e-05/0.295, allocations: 83.36 kB / 330.9 MB, free: 13.17 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002022/0.2952, allocations: 217.6 kB / 331.1 MB, free: 13 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.545e-05/0.2952, allocations: 35.89 kB / 331.2 MB, free: 12.96 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.449e-05/0.2953, allocations: 151.2 kB / 331.3 MB, free: 12.82 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.323e-05/0.2953, allocations: 25.34 kB / 331.3 MB, free: 12.8 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.434e-05/0.2954, allocations: 59.53 kB / 331.4 MB, free: 12.76 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001101/0.2955, allocations: 335.8 kB / 331.7 MB, free: 12.43 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001521/0.2957, allocations: 65.98 kB / 331.8 MB, free: 12.4 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001869/0.2959, allocations: 130.4 kB / 331.9 MB, free: 12.29 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003449/0.2963, allocations: 211.6 kB / 332.1 MB, free: 12.13 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.2963, allocations: 5.094 kB / 332.1 MB, free: 12.13 MB / 270.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004635/0.2967, allocations: 250.1 kB / 332.4 MB, free: 12 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.898e-05/0.2968, allocations: 10.06 kB / 332.4 MB, free: 11.99 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.752e-06/0.2968, allocations: 2.188 kB / 332.4 MB, free: 11.99 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.803e-05/0.2968, allocations: 3.594 kB / 332.4 MB, free: 11.99 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001794/0.297, allocations: 43.56 kB / 332.4 MB, free: 11.98 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.985e-06/0.297, allocations: 3.5 kB / 332.4 MB, free: 11.98 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001653/0.2972, allocations: 40.83 kB / 332.5 MB, free: 11.95 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.591e-05/0.2972, allocations: 15.52 kB / 332.5 MB, free: 11.94 MB / 270.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.0001355/0.2974, allocations: 141.4 kB / 332.6 MB, free: 11.81 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.391e-05/0.2974, allocations: 20.7 kB / 332.6 MB, free: 11.8 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000238/0.2976, allocations: 130.5 kB / 332.8 MB, free: 11.71 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.488e-06/0.2977, allocations: 5.453 kB / 332.8 MB, free: 11.71 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.2977, allocations: 1 kB / 332.8 MB, free: 11.71 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.2977, allocations: 5.219 kB / 332.8 MB, free: 11.7 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005941/0.2983, allocations: 482.5 kB / 333.3 MB, free: 11.27 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.2983, allocations: 320 / 333.3 MB, free: 11.27 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001189/0.2984, allocations: 27.92 kB / 333.3 MB, free: 11.25 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.2984, allocations: 0 / 333.3 MB, free: 11.25 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.524e-05/0.2984, allocations: 3.984 kB / 333.3 MB, free: 11.24 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.925e-06/0.2985, allocations: 7.938 kB / 333.3 MB, free: 11.23 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.2985, allocations: 0 / 333.3 MB, free: 11.23 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000383/0.2989, allocations: 284.1 kB / 333.6 MB, free: 10.94 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.972e-05/0.2989, allocations: 92.86 kB / 333.7 MB, free: 10.83 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.366e-05/0.299, allocations: 8 kB / 333.7 MB, free: 10.82 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001644/0.2991, allocations: 19.91 kB / 333.7 MB, free: 10.8 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.043e-05/0.2992, allocations: 31.91 kB / 333.7 MB, free: 10.77 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.723e-05/0.2992, allocations: 4 kB / 333.7 MB, free: 10.77 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001059/0.2993, allocations: 144.6 kB / 333.9 MB, free: 10.62 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2994, allocations: 0 / 333.9 MB, free: 10.62 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0002825/0.2996, allocations: 40.09 kB / 333.9 MB, free: 10.59 MB / 270.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.0001469/0.2998, allocations: 115.2 kB / 334 MB, free: 10.46 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0003781/0.3002, allocations: 183.7 kB / 334.2 MB, free: 10.29 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.3002, allocations: 4 kB / 334.2 MB, free: 10.28 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001687/0.3004, allocations: 75.89 kB / 334.3 MB, free: 10.21 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003312/0.3007, allocations: 23.98 kB / 334.3 MB, free: 10.18 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006607/0.3014, allocations: 418.2 kB / 334.7 MB, free: 9.746 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002942/0.3017, allocations: 0.7281 MB / 335.4 MB, free: 8.992 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0001029/0.3018, allocations: 41.52 kB / 335.5 MB, free: 8.953 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.9e-05/0.3019, allocations: 23.42 kB / 335.5 MB, free: 8.93 MB / 270.1 MB Notification: Performance of SimCode: time 4.41e-07/0.3019, allocations: 4 kB / 335.5 MB, free: 8.926 MB / 270.1 MB Notification: Performance of Templates: time 0.004459/0.3063, allocations: 1.951 MB / 337.5 MB, free: 6.977 MB / 270.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)