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.0009143/0.0009144, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.006544/0.006544, allocations: 170.1 kB / 16.27 MB, free: 6.328 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.403/1.403, allocations: 205.4 MB / 222.4 MB, free: 5.562 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.0004498/0.0004501, allocations: 12 kB / 279.4 MB, free: 12.53 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3011/0.3016, allocations: 47.58 MB / 327 MB, free: 1.426 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.001918/0.3035, allocations: 1.524 MB / 328.5 MB, free: 224 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.00116/0.3047, allocations: 0.6347 MB / 329.2 MB, free: 15.72 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001112/0.3049, allocations: 6.375 kB / 329.2 MB, free: 15.71 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001274/0.305, allocations: 22.2 kB / 329.2 MB, free: 15.7 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001427/0.3051, allocations: 27.44 kB / 329.2 MB, free: 15.67 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002698/0.3054, allocations: 69.25 kB / 329.3 MB, free: 15.62 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002281/0.3057, allocations: 163.9 kB / 329.5 MB, free: 15.53 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001929/0.3059, allocations: 70.88 kB / 329.5 MB, free: 15.48 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001243/0.306, allocations: 57.59 kB / 329.6 MB, free: 15.44 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001491/0.3062, allocations: 74.61 kB / 329.7 MB, free: 15.39 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.487e-05/0.3062, allocations: 4.938 kB / 329.7 MB, free: 15.39 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.83e-05/0.3063, allocations: 13.03 kB / 329.7 MB, free: 15.39 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.826e-05/0.3063, allocations: 34.12 kB / 329.7 MB, free: 15.36 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001018/0.3065, allocations: 102.3 kB / 329.8 MB, free: 15.27 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002197/0.3067, allocations: 155.6 kB / 330 MB, free: 15.16 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.3067, allocations: 1.125 kB / 330 MB, free: 15.16 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.3067, allocations: 4 kB / 330 MB, free: 15.16 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.36e-06/0.3067, allocations: 0 / 330 MB, free: 15.16 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.0009249/0.3077, allocations: 486.1 kB / 330.4 MB, free: 14.71 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.428e-05/0.3077, allocations: 17.36 kB / 330.5 MB, free: 14.7 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.551e-05/0.3078, allocations: 28.12 kB / 330.5 MB, free: 14.68 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002788/0.3081, allocations: 245.2 kB / 330.7 MB, free: 14.43 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.701e-05/0.3081, allocations: 15.5 kB / 330.7 MB, free: 14.42 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.4e-05/0.3081, allocations: 15.75 kB / 330.7 MB, free: 14.42 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004355/0.3086, allocations: 232.2 kB / 331 MB, free: 14.25 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.094e-05/0.3086, allocations: 0 / 331 MB, free: 14.25 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.149e-05/0.3086, allocations: 5.906 kB / 331 MB, free: 14.25 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.209e-05/0.3086, allocations: 6.438 kB / 331 MB, free: 14.25 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003379/0.309, allocations: 144.7 kB / 331.1 MB, free: 14.19 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0011/0.3101, allocations: 0.7983 MB / 331.9 MB, free: 13.46 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000666/0.3108, allocations: 215.7 kB / 332.1 MB, free: 13.36 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001655/0.311, allocations: 64.42 kB / 332.2 MB, free: 13.33 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.476e-05/0.311, allocations: 2.688 kB / 332.2 MB, free: 13.33 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003094/0.3113, allocations: 154.5 kB / 332.4 MB, free: 13.21 MB / 270.1 MB Notification: Performance of pre-optimization done (n=15): time 1.553e-06/0.3113, allocations: 4.969 kB / 332.4 MB, free: 13.2 MB / 270.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006347/0.312, allocations: 258.9 kB / 332.6 MB, free: 13.07 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.449e-05/0.312, allocations: 84.05 kB / 332.7 MB, free: 12.98 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002296/0.3123, allocations: 226 kB / 332.9 MB, free: 12.8 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.539e-05/0.3123, allocations: 32.05 kB / 332.9 MB, free: 12.77 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.851e-05/0.3124, allocations: 138.5 kB / 333.1 MB, free: 12.64 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.648e-05/0.3125, allocations: 29.39 kB / 333.1 MB, free: 12.62 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.596e-05/0.3125, allocations: 38.77 kB / 333.1 MB, free: 12.59 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001381/0.3127, allocations: 335.6 kB / 333.5 MB, free: 12.25 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001671/0.3129, allocations: 69.89 kB / 333.5 MB, free: 12.23 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002006/0.3131, allocations: 138.2 kB / 333.7 MB, free: 12.11 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003846/0.3135, allocations: 223.3 kB / 333.9 MB, free: 11.95 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.3135, allocations: 0 / 333.9 MB, free: 11.95 MB / 270.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004667/0.3139, allocations: 261.3 kB / 334.2 MB, free: 11.81 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.638e-05/0.314, allocations: 6.562 kB / 334.2 MB, free: 11.81 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.013e-05/0.314, allocations: 2.188 kB / 334.2 MB, free: 11.81 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.197e-05/0.314, allocations: 3.375 kB / 334.2 MB, free: 11.81 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001882/0.3142, allocations: 45.53 kB / 334.2 MB, free: 11.8 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.124e-05/0.3142, allocations: 3.156 kB / 334.2 MB, free: 11.8 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001916/0.3144, allocations: 47.69 kB / 334.3 MB, free: 11.77 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.437e-05/0.3145, allocations: 12.03 kB / 334.3 MB, free: 11.77 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.0001582/0.3146, allocations: 148.5 kB / 334.4 MB, free: 11.62 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.877e-05/0.3147, allocations: 15.81 kB / 334.4 MB, free: 11.61 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002724/0.3149, allocations: 138.9 kB / 334.6 MB, free: 11.46 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.315, allocations: 4 kB / 334.6 MB, free: 11.46 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.315, allocations: 3.984 kB / 334.6 MB, free: 11.45 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.315, allocations: 4 kB / 334.6 MB, free: 11.45 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005777/0.3156, allocations: 482.2 kB / 335 MB, free: 10.92 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.3156, allocations: 0 / 335 MB, free: 10.92 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001132/0.3157, allocations: 23.92 kB / 335.1 MB, free: 10.9 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.857e-06/0.3157, allocations: 0 / 335.1 MB, free: 10.9 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.459e-05/0.3157, allocations: 11.92 kB / 335.1 MB, free: 10.89 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.835e-06/0.3157, allocations: 7.938 kB / 335.1 MB, free: 10.88 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.3158, allocations: 0 / 335.1 MB, free: 10.88 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004106/0.3162, allocations: 292 kB / 335.4 MB, free: 10.57 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.932e-05/0.3162, allocations: 96.86 kB / 335.5 MB, free: 10.46 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.355e-05/0.3163, allocations: 8.125 kB / 335.5 MB, free: 10.45 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001703/0.3164, allocations: 27.91 kB / 335.5 MB, free: 10.43 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.07e-05/0.3165, allocations: 23.91 kB / 335.5 MB, free: 10.4 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.866e-05/0.3166, allocations: 8 kB / 335.5 MB, free: 10.39 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001131/0.3167, allocations: 144.6 kB / 335.7 MB, free: 10.25 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3167, allocations: 4 kB / 335.7 MB, free: 10.25 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0002919/0.317, allocations: 40 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.0001575/0.3172, allocations: 103.2 kB / 335.8 MB, free: 10.1 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0004053/0.3176, allocations: 176.3 kB / 336 MB, free: 9.93 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.3176, allocations: 0 / 336 MB, free: 9.93 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001874/0.3178, allocations: 84.08 kB / 336.1 MB, free: 9.848 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003631/0.3182, allocations: 28.11 kB / 336.1 MB, free: 9.82 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006819/0.3188, allocations: 435.5 kB / 336.5 MB, free: 9.367 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002415/0.3191, allocations: 0.7284 MB / 337.3 MB, free: 8.613 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0001009/0.3192, allocations: 37.52 kB / 337.3 MB, free: 8.578 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.668e-05/0.3193, allocations: 19.44 kB / 337.3 MB, free: 8.559 MB / 270.1 MB Notification: Performance of SimCode: time 1.382e-06/0.3193, allocations: 0 / 337.3 MB, free: 8.559 MB / 270.1 MB Notification: Performance of Templates: time 0.004914/0.3242, allocations: 1.857 MB / 339.2 MB, free: 6.703 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)