Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001347/0.001347, allocations: 115 kB / 17.33 MB, free: 6.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001443/0.001443, allocations: 213.8 kB / 18.27 MB, free: 5.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.472/1.472, allocations: 227.4 MB / 246.5 MB, free: 10.75 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001892/0.001892, allocations: 64.17 kB / 306.5 MB, free: 0.9062 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09319/0.09509, allocations: 50.55 MB / 357 MB, free: 14.36 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive): time 0.1743/0.2694, allocations: 23.11 MB / 380.2 MB, free: 9.508 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01207/0.2815, allocations: 6.657 MB / 386.8 MB, free: 5.465 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00478/0.2863, allocations: 98.53 kB / 386.9 MB, free: 5.445 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003252/0.2896, allocations: 0.6837 MB / 387.6 MB, free: 5.125 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003237/0.2929, allocations: 0.7363 MB / 388.3 MB, free: 4.594 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001534/0.2945, allocations: 0.7014 MB / 389 MB, free: 4.074 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004235/0.2987, allocations: 3.463 MB / 392.5 MB, free: 2.188 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002373/0.3011, allocations: 1.968 MB / 394.5 MB, free: 1.184 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001954/0.3031, allocations: 1.304 MB / 395.8 MB, free: 472 kB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001717/0.3048, allocations: 1.407 MB / 397.2 MB, free: 15.66 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004883/0.3053, allocations: 379.6 kB / 397.5 MB, free: 15.66 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008961/0.3062, allocations: 418.5 kB / 397.9 MB, free: 15.66 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006283/0.3068, allocations: 0.7069 MB / 398.7 MB, free: 15.12 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001642/0.3085, allocations: 1.609 MB / 400.3 MB, free: 14.05 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004645/0.3131, allocations: 4.434 MB / 404.7 MB, free: 10.79 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.301e-06/0.3132, allocations: 1.125 kB / 404.7 MB, free: 10.79 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.3132, allocations: 0 / 404.7 MB, free: 10.79 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.926e-05/0.3132, allocations: 0 / 404.7 MB, free: 10.79 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: 658 * Number of variables: 658 Notification: Performance of Generate backend data structure: time 0.005973/0.3192, allocations: 3.063 MB / 407.8 MB, free: 8.598 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.843e-05/0.3193, allocations: 10.22 kB / 407.8 MB, free: 8.598 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009604/0.3202, allocations: 366.5 kB / 408.1 MB, free: 8.426 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002358/0.3226, allocations: 1.453 MB / 409.6 MB, free: 7.262 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001433/0.3228, allocations: 196.8 kB / 409.8 MB, free: 7.168 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003081/0.3231, allocations: 267.5 kB / 410 MB, free: 7.074 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004622/0.3277, allocations: 2.468 MB / 412.5 MB, free: 4.969 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.491e-05/0.3278, allocations: 11.84 kB / 412.5 MB, free: 4.957 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002109/0.328, allocations: 108 kB / 412.6 MB, free: 4.852 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.916e-05/0.3281, allocations: 64 kB / 412.7 MB, free: 4.789 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003493/0.3316, allocations: 1.658 MB / 414.3 MB, free: 3.117 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01529/0.3469, allocations: 10.31 MB / 424.6 MB, free: 8.301 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001977/0.3489, allocations: 0.8551 MB / 425.5 MB, free: 7.418 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001076/0.35, allocations: 492.3 kB / 426 MB, free: 6.938 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.305e-05/0.3501, allocations: 13 kB / 426 MB, free: 6.926 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.6e-05/0.3502, allocations: 43.56 kB / 426 MB, free: 6.871 MB / 334.1 MB Notification: Performance of pre-optimization done (n=83): time 2.845e-06/0.3502, allocations: 0 / 426 MB, free: 6.871 MB / 334.1 MB Notification: Performance of matching and sorting (n=89): time 0.005687/0.3559, allocations: 2.671 MB / 428.7 MB, free: 4.141 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.377e-05/0.356, allocations: 119.8 kB / 428.8 MB, free: 4 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002314/0.3583, allocations: 1.565 MB / 430.4 MB, free: 2.434 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.856e-05/0.3584, allocations: 45.64 kB / 430.4 MB, free: 2.383 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009898/0.3594, allocations: 1.289 MB / 431.7 MB, free: 1.078 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002979/0.3597, allocations: 327.4 kB / 432 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004826/0.3602, allocations: 307.2 kB / 432.3 MB, free: 460 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001315/0.3603, allocations: 309.1 kB / 432.6 MB, free: 148 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008793/0.3612, allocations: 416.6 kB / 433.1 MB, free: 15.73 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001484/0.3627, allocations: 1.108 MB / 434.2 MB, free: 14.29 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002495/0.3652, allocations: 1.611 MB / 435.8 MB, free: 12.35 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.285e-05/0.3652, allocations: 8 kB / 435.8 MB, free: 12.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=213) (initialization): time 0.003156/0.3684, allocations: 1.673 MB / 437.5 MB, free: 10.66 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.591e-05/0.3684, allocations: 16 kB / 437.5 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.145e-05/0.3685, allocations: 27.94 kB / 437.5 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002073/0.3687, allocations: 56.84 kB / 437.5 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001302/0.37, allocations: 391.3 kB / 437.9 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001251/0.3713, allocations: 1.425 MB / 439.4 MB, free: 8.609 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001197/0.3725, allocations: 87.86 kB / 439.4 MB, free: 8.523 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001161/0.3726, allocations: 84 kB / 439.5 MB, free: 8.441 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001497/0.3741, allocations: 0.7538 MB / 440.3 MB, free: 7.684 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001384/0.3755, allocations: 1.08 MB / 441.4 MB, free: 6.273 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002244/0.3778, allocations: 1.561 MB / 442.9 MB, free: 4.387 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.217e-05/0.3778, allocations: 8 kB / 442.9 MB, free: 4.379 MB / 350.1 MB Notification: Performance of matching and sorting (n=213) (initialization_lambda0): time 0.002889/0.3807, allocations: 1.626 MB / 444.6 MB, free: 2.738 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.193e-05/0.3807, allocations: 20.16 kB / 444.6 MB, free: 2.719 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.597e-05/0.3807, allocations: 24 kB / 444.6 MB, free: 2.695 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001286/0.3809, allocations: 56.84 kB / 444.7 MB, free: 2.637 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001242/0.3821, allocations: 387.3 kB / 445 MB, free: 2.258 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001173/0.3833, allocations: 1.433 MB / 446.5 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001146/0.3845, allocations: 75.97 kB / 446.5 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001009/0.3846, allocations: 80 kB / 446.6 MB, free: 0.5312 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 107 * Number of states: 0 () * Number of discrete variables: 3 (switch.control,dcdcInverter2.idealDcDc.powerController.local_reset,dcdcInverter1.idealDcDc.powerController.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (212): * Single equations (assignments): 211 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003553/0.3849, allocations: 300.6 kB / 446.9 MB, free: 236 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002388/0.3852, allocations: 177.8 kB / 447.1 MB, free: 56 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001942/0.3871, allocations: 0.9071 MB / 448 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.375e-06/0.3872, allocations: 8 kB / 448 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.3872, allocations: 4 kB / 448 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.304e-05/0.3872, allocations: 7.984 kB / 448 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004728/0.3919, allocations: 2.879 MB / 450.9 MB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.244e-06/0.392, allocations: 4 kB / 450.9 MB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008672/0.3928, allocations: 188.2 kB / 451.1 MB, free: 11.94 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.646e-05/0.3929, allocations: 28.78 kB / 451.1 MB, free: 11.91 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.835e-05/0.393, allocations: 24 kB / 451.1 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001155/0.3942, allocations: 1.394 MB / 452.5 MB, free: 10.35 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.568e-06/0.3942, allocations: 4 kB / 452.5 MB, free: 10.34 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002523/0.3967, allocations: 1.446 MB / 454 MB, free: 8.832 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005414/0.3973, allocations: 326.8 kB / 454.3 MB, free: 8.492 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001923/0.3975, allocations: 27.98 kB / 454.3 MB, free: 8.465 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007462/0.3982, allocations: 51.95 kB / 454.4 MB, free: 8.414 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001376/0.3984, allocations: 76.39 kB / 454.4 MB, free: 8.34 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.991e-05/0.3984, allocations: 28 kB / 454.5 MB, free: 8.312 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00152/0.4, allocations: 1.028 MB / 455.5 MB, free: 7.293 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4, allocations: 3.938 kB / 455.5 MB, free: 7.289 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002501/0.4025, allocations: 0.7656 MB / 456.3 MB, free: 6.523 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 16 (dcpm1.inertiaRotor.w,dcpm1.la.i,dcpm2.la.i,coupling.flange_a.phi,dcdcInverter1.vDCFilter.y,dcdcInverter1.iMotFilter.y,dcdcInverter1.idealDcDc.deadTime.y,dcdcInverter1.idealDcDc.powerController.y,dcdcInverter1.vMotFilter.y,dcdcInverter1.iDCFilter.y,dcdcInverter2.vDCFilter.y,dcdcInverter2.iMotFilter.y,dcdcInverter2.idealDcDc.deadTime.y,dcdcInverter2.idealDcDc.powerController.y,dcdcInverter2.vMotFilter.y,dcdcInverter2.iDCFilter.y) * Number of discrete variables: 1 (switch.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (88): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(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.0003846/0.4029, allocations: 149.3 kB / 456.4 MB, free: 6.371 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004091/0.407, allocations: 2.046 MB / 458.5 MB, free: 4.309 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.053e-06/0.407, allocations: 4 kB / 458.5 MB, free: 4.305 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009547/0.4079, allocations: 0.5188 MB / 459 MB, free: 3.777 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001949/0.4099, allocations: 448.2 kB / 459.4 MB, free: 3.363 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008377/0.4183, allocations: 4.984 MB / 464.4 MB, free: 14.3 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001453/0.4198, allocations: 1.475 MB / 465.9 MB, free: 12.79 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00133/0.4211, allocations: 246.3 kB / 466.1 MB, free: 12.55 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002885/0.4214, allocations: 115.4 kB / 466.2 MB, free: 12.43 MB / 382.1 MB Notification: Performance of SimCode: time 1.072e-06/0.4215, allocations: 3.938 kB / 466.2 MB, free: 12.43 MB / 382.1 MB Notification: Performance of Templates: time 0.0381/0.4596, allocations: 19.49 MB / 485.7 MB, free: 9.117 MB / 398.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.pipe 2>&1)