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.0008968/0.0008967, allocations: 91.45 kB / 15.36 MB, free: 0.7383 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.007812/0.007812, allocations: 169.8 kB / 16.26 MB, free: 6.676 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.751/1.751, allocations: 205.4 MB / 222.5 MB, free: 5.559 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.0005289/0.0005289, allocations: 8 kB / 279.4 MB, free: 12.52 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.289/0.2896, allocations: 47.59 MB / 327 MB, free: 1.398 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.002345/0.292, allocations: 1.52 MB / 328.5 MB, free: 200 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.001597/0.2936, allocations: 0.6358 MB / 329.2 MB, free: 15.69 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001161/0.2938, allocations: 2.375 kB / 329.2 MB, free: 15.69 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000142/0.2939, allocations: 21.08 kB / 329.2 MB, free: 15.67 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001427/0.2941, allocations: 31.31 kB / 329.2 MB, free: 15.64 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002789/0.2944, allocations: 69.53 kB / 329.3 MB, free: 15.59 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002691/0.2946, allocations: 167.3 kB / 329.5 MB, free: 15.5 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002481/0.2949, allocations: 67.45 kB / 329.5 MB, free: 15.45 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001471/0.295, allocations: 62.02 kB / 329.6 MB, free: 15.41 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001885/0.2952, allocations: 70.38 kB / 329.7 MB, free: 15.37 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.12e-05/0.2953, allocations: 5.219 kB / 329.7 MB, free: 15.37 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.412e-05/0.2954, allocations: 8.125 kB / 329.7 MB, free: 15.37 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 9.434e-05/0.2955, allocations: 38.7 kB / 329.7 MB, free: 15.34 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001358/0.2956, allocations: 98.83 kB / 329.8 MB, free: 15.25 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002973/0.2959, allocations: 163.5 kB / 330 MB, free: 15.14 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.2959, allocations: 3.938 kB / 330 MB, free: 15.13 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.415e-06/0.296, allocations: 1.344 kB / 330 MB, free: 15.13 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.625e-06/0.296, allocations: 0 / 330 MB, free: 15.13 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.001096/0.2971, allocations: 485.4 kB / 330.4 MB, free: 14.68 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.572e-05/0.2971, allocations: 17.2 kB / 330.5 MB, free: 14.67 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.058e-05/0.2972, allocations: 23.94 kB / 330.5 MB, free: 14.66 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003214/0.2975, allocations: 245.2 kB / 330.7 MB, free: 14.41 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.267e-05/0.2976, allocations: 12.22 kB / 330.7 MB, free: 14.4 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.506e-05/0.2976, allocations: 15.22 kB / 330.8 MB, free: 14.4 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004812/0.2981, allocations: 228 kB / 331 MB, free: 14.23 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.342e-05/0.2982, allocations: 1.438 kB / 331 MB, free: 14.23 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.499e-05/0.2982, allocations: 5.375 kB / 331 MB, free: 14.23 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.744e-05/0.2982, allocations: 6.094 kB / 331 MB, free: 14.23 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003826/0.2986, allocations: 153 kB / 331.1 MB, free: 14.16 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001285/0.2999, allocations: 0.7985 MB / 331.9 MB, free: 13.44 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007468/0.3007, allocations: 215.3 kB / 332.1 MB, free: 13.34 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001557/0.3008, allocations: 63.92 kB / 332.2 MB, free: 13.3 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.242e-05/0.3009, allocations: 3.312 kB / 332.2 MB, free: 13.3 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002938/0.3012, allocations: 159 kB / 332.4 MB, free: 13.18 MB / 270.1 MB Notification: Performance of pre-optimization done (n=15): time 1.593e-06/0.3012, allocations: 0 / 332.4 MB, free: 13.18 MB / 270.1 MB Notification: Performance of matching and sorting (n=15): time 0.000659/0.3019, allocations: 255.1 kB / 332.6 MB, free: 13.05 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.765e-05/0.3019, allocations: 88.7 kB / 332.7 MB, free: 12.95 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002279/0.3022, allocations: 224.8 kB / 332.9 MB, free: 12.78 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.538e-05/0.3022, allocations: 31.95 kB / 333 MB, free: 12.75 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001083/0.3023, allocations: 138.4 kB / 333.1 MB, free: 12.62 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.194e-05/0.3024, allocations: 33.94 kB / 333.1 MB, free: 12.59 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.366e-05/0.3024, allocations: 34.33 kB / 333.2 MB, free: 12.56 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001265/0.3026, allocations: 336.5 kB / 333.5 MB, free: 12.23 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001648/0.3027, allocations: 76.8 kB / 333.6 MB, free: 12.2 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002156/0.303, allocations: 134 kB / 333.7 MB, free: 12.08 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003795/0.3033, allocations: 216.1 kB / 333.9 MB, free: 11.93 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.939e-06/0.3034, allocations: 0.9688 kB / 333.9 MB, free: 11.93 MB / 270.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005107/0.3039, allocations: 265.3 kB / 334.2 MB, free: 11.79 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.016e-05/0.3039, allocations: 5.688 kB / 334.2 MB, free: 11.79 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.405e-06/0.3039, allocations: 5.938 kB / 334.2 MB, free: 11.79 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.997e-05/0.304, allocations: 4.719 kB / 334.2 MB, free: 11.79 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001805/0.3041, allocations: 41.09 kB / 334.2 MB, free: 11.77 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.028e-05/0.3042, allocations: 3.188 kB / 334.2 MB, free: 11.77 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001845/0.3043, allocations: 46.75 kB / 334.3 MB, free: 11.75 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.44e-05/0.3044, allocations: 15.5 kB / 334.3 MB, free: 11.74 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.0001571/0.3045, allocations: 145.4 kB / 334.4 MB, free: 11.6 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.27e-05/0.3046, allocations: 17.66 kB / 334.4 MB, free: 11.59 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002625/0.3049, allocations: 138.9 kB / 334.6 MB, free: 11.45 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.689e-06/0.3049, allocations: 4 kB / 334.6 MB, free: 11.44 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.843e-06/0.3049, allocations: 0 / 334.6 MB, free: 11.44 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.3049, allocations: 0 / 334.6 MB, free: 11.44 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005853/0.3055, allocations: 482.2 kB / 335 MB, free: 10.91 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.3055, allocations: 320 / 335 MB, free: 10.91 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001182/0.3056, allocations: 23.98 kB / 335.1 MB, free: 10.89 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.3056, allocations: 7.938 kB / 335.1 MB, free: 10.88 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.204e-05/0.3057, allocations: 11.98 kB / 335.1 MB, free: 10.87 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.878e-06/0.3057, allocations: 7.875 kB / 335.1 MB, free: 10.86 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.3057, allocations: 0 / 335.1 MB, free: 10.86 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004103/0.3061, allocations: 292 kB / 335.4 MB, free: 10.56 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.018e-05/0.3062, allocations: 92.86 kB / 335.5 MB, free: 10.45 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.414e-05/0.3062, allocations: 8 kB / 335.5 MB, free: 10.44 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001731/0.3064, allocations: 27.91 kB / 335.5 MB, free: 10.41 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.523e-05/0.3065, allocations: 19.97 kB / 335.5 MB, free: 10.39 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.845e-05/0.3065, allocations: 4 kB / 335.5 MB, free: 10.39 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001126/0.3066, allocations: 152.6 kB / 335.7 MB, free: 10.24 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3066, allocations: 0 / 335.7 MB, free: 10.24 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0002946/0.3069, allocations: 36 kB / 335.7 MB, free: 10.21 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.0001578/0.3071, allocations: 111.4 kB / 335.8 MB, free: 10.09 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0003955/0.3075, allocations: 179.8 kB / 336 MB, free: 9.914 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.3075, allocations: 0 / 336 MB, free: 9.914 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001774/0.3077, allocations: 79.89 kB / 336.1 MB, free: 9.836 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003769/0.3081, allocations: 28.36 kB / 336.1 MB, free: 9.809 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007253/0.3088, allocations: 431.8 kB / 336.5 MB, free: 9.359 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00031/0.3091, allocations: 0.7323 MB / 337.3 MB, free: 8.602 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0001038/0.3092, allocations: 37.5 kB / 337.3 MB, free: 8.566 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.2e-05/0.3093, allocations: 19.44 kB / 337.3 MB, free: 8.547 MB / 270.1 MB Notification: Performance of SimCode: time 2.1e-07/0.3093, allocations: 3.938 kB / 337.3 MB, free: 8.543 MB / 270.1 MB Notification: Performance of Templates: time 0.005191/0.3145, allocations: 1.853 MB / 339.2 MB, free: 6.691 MB / 270.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)