Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.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.Electrical.Machines.Examples.DCMachines.DCSE_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001648/0.001649, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.0022/0.0022, allocations: 188.9 kB / 16.25 MB, free: 6.625 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.124/2.124, allocations: 205.1 MB / 222.1 MB, free: 4.699 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.001515/0.001515, allocations: 55.88 kB / 278.2 MB, free: 12.66 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2983/0.2999, allocations: 46.63 MB / 324.9 MB, free: 1.934 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.01008/0.31, allocations: 8.013 MB / 332.9 MB, free: 11.59 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.006763/0.3168, allocations: 2.625 MB / 335.5 MB, free: 9.402 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001502/0.3184, allocations: 27.72 kB / 335.5 MB, free: 9.395 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00206/0.3205, allocations: 0.5102 MB / 336 MB, free: 8.887 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001799/0.3223, allocations: 401.2 kB / 336.4 MB, free: 8.492 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005276/0.3229, allocations: 219.8 kB / 336.6 MB, free: 8.277 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001707/0.3246, allocations: 1.463 MB / 338.1 MB, free: 6.809 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008945/0.3255, allocations: 0.5807 MB / 338.7 MB, free: 6.207 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007933/0.3263, allocations: 0.5563 MB / 339.2 MB, free: 5.648 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006286/0.327, allocations: 0.595 MB / 339.8 MB, free: 5.051 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001765/0.3272, allocations: 140 kB / 340 MB, free: 4.914 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003627/0.3275, allocations: 176 kB / 340.1 MB, free: 4.742 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003218/0.3279, allocations: 282.9 kB / 340.4 MB, free: 4.465 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006414/0.3285, allocations: 0.657 MB / 341.1 MB, free: 3.805 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001673/0.3302, allocations: 1.705 MB / 342.8 MB, free: 2.094 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/0.3302, allocations: 4 kB / 342.8 MB, free: 2.09 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.3302, allocations: 0 / 342.8 MB, free: 2.09 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.563e-05/0.3303, allocations: 0 / 342.8 MB, free: 2.09 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.002327/0.3326, allocations: 1.445 MB / 344.2 MB, free: 0.5898 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.691e-05/0.3326, allocations: 12.03 kB / 344.2 MB, free: 0.5781 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006722/0.3333, allocations: 187.3 kB / 344.4 MB, free: 404 kB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001093/0.3344, allocations: 0.7263 MB / 345.2 MB, free: 15.62 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.942e-05/0.3345, allocations: 74 kB / 345.2 MB, free: 15.55 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002227/0.3347, allocations: 99.91 kB / 345.3 MB, free: 15.45 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001648/0.3364, allocations: 0.9346 MB / 346.3 MB, free: 14.49 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.312e-05/0.3364, allocations: 4 kB / 346.3 MB, free: 14.48 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.017e-05/0.3365, allocations: 40 kB / 346.3 MB, free: 14.45 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.187e-05/0.3365, allocations: 27.94 kB / 346.3 MB, free: 14.42 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001139/0.3377, allocations: 0.6324 MB / 347 MB, free: 13.78 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00555/0.3433, allocations: 3.93 MB / 350.9 MB, free: 9.629 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007575/0.344, allocations: 436.6 kB / 351.3 MB, free: 9.176 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005346/0.3446, allocations: 257.4 kB / 351.6 MB, free: 8.922 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.14e-05/0.3446, allocations: 4.328 kB / 351.6 MB, free: 8.918 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.83e-05/0.3447, allocations: 38.89 kB / 351.6 MB, free: 8.871 MB / 286.1 MB Notification: Performance of pre-optimization done (n=40): time 2.124e-06/0.3447, allocations: 0 / 351.6 MB, free: 8.871 MB / 286.1 MB Notification: Performance of matching and sorting (n=44): time 0.002923/0.3476, allocations: 1.399 MB / 353 MB, free: 7.395 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.03e-05/0.3477, allocations: 85.11 kB / 353.1 MB, free: 7.293 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001098/0.3488, allocations: 0.8214 MB / 353.9 MB, free: 6.465 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.304e-05/0.3488, allocations: 29.7 kB / 353.9 MB, free: 6.43 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004145/0.3493, allocations: 0.5603 MB / 354.5 MB, free: 5.859 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000119/0.3494, allocations: 161.7 kB / 354.7 MB, free: 5.699 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001864/0.3496, allocations: 126.6 kB / 354.8 MB, free: 5.566 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001432/0.3497, allocations: 330 kB / 355.1 MB, free: 5.238 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003789/0.3501, allocations: 173.9 kB / 355.3 MB, free: 5.07 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005065/0.3506, allocations: 459.9 kB / 355.7 MB, free: 4.488 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008496/0.3515, allocations: 0.6583 MB / 356.4 MB, free: 3.695 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.23e-06/0.3515, allocations: 4 kB / 356.4 MB, free: 3.691 MB / 286.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001235/0.3527, allocations: 0.7666 MB / 357.2 MB, free: 2.914 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.232e-05/0.3528, allocations: 12 kB / 357.2 MB, free: 2.902 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.412e-05/0.3528, allocations: 11.98 kB / 357.2 MB, free: 2.891 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002754/0.3531, allocations: 89.86 kB / 357.3 MB, free: 2.797 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004634/0.3536, allocations: 155.7 kB / 357.4 MB, free: 2.645 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002578/0.3561, allocations: 3.145 MB / 360.6 MB, free: 15.22 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005885/0.3567, allocations: 36.05 kB / 360.6 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.171e-05/0.3568, allocations: 36 kB / 360.6 MB, free: 15.15 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004346/0.3572, allocations: 261.5 kB / 360.9 MB, free: 14.88 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001362/0.3574, allocations: 90.95 kB / 361 MB, free: 14.79 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009/0.3583, allocations: 499.4 kB / 361.5 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.45e-06/0.3583, allocations: 4 kB / 361.5 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.635e-06/0.3583, allocations: 0 / 361.5 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.039e-06/0.3583, allocations: 0 / 361.5 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002082/0.3604, allocations: 1.446 MB / 362.9 MB, free: 12.76 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.048e-06/0.3604, allocations: 0 / 362.9 MB, free: 12.76 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002925/0.3607, allocations: 72.03 kB / 363 MB, free: 12.69 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001972/0.3609, allocations: 73.89 kB / 363.1 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.694e-05/0.361, allocations: 12 kB / 363.1 MB, free: 12.6 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00223/0.3632, allocations: 3.118 MB / 366.2 MB, free: 9.199 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.959e-06/0.3632, allocations: 8.016 kB / 366.2 MB, free: 9.191 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001159/0.3644, allocations: 0.7496 MB / 366.9 MB, free: 8.398 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002723/0.3647, allocations: 200.2 kB / 367.1 MB, free: 8.184 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.444e-05/0.3648, allocations: 19.94 kB / 367.2 MB, free: 8.164 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000396/0.3652, allocations: 28.09 kB / 367.2 MB, free: 8.137 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.451e-05/0.3653, allocations: 39.89 kB / 367.2 MB, free: 8.098 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.429e-05/0.3653, allocations: 12 kB / 367.2 MB, free: 8.086 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000758/0.3661, allocations: 0.5654 MB / 367.8 MB, free: 7.527 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3661, allocations: 4 kB / 367.8 MB, free: 7.523 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008724/0.367, allocations: 200 kB / 368 MB, free: 7.328 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002442/0.3672, allocations: 123.1 kB / 368.1 MB, free: 7.195 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001278/0.3685, allocations: 0.6988 MB / 368.8 MB, free: 6.473 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/0.3685, allocations: 4.062 kB / 368.8 MB, free: 6.469 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005993/0.3691, allocations: 441 kB / 369.3 MB, free: 6.012 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001125/0.3703, allocations: 234.4 kB / 369.5 MB, free: 5.785 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003076/0.3734, allocations: 2.133 MB / 371.6 MB, free: 3.602 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006508/0.374, allocations: 1.005 MB / 372.6 MB, free: 2.562 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004821/0.3745, allocations: 107.2 kB / 372.7 MB, free: 2.453 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001269/0.3747, allocations: 59.44 kB / 372.8 MB, free: 2.398 MB / 302.1 MB Notification: Performance of SimCode: time 1.482e-06/0.3747, allocations: 0 / 372.8 MB, free: 2.398 MB / 302.1 MB Notification: Performance of Templates: time 0.02131/0.396, allocations: 10.45 MB / 383.2 MB, free: 7.93 MB / 318.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & ./Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1)