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.000914/0.000914, allocations: 94.11 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009095/0.0009095, allocations: 191.8 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.371/1.371, allocations: 227.7 MB / 246.4 MB, free: 9.785 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001963/0.0001963, allocations: 8 kB / 307.1 MB, free: 0.9297 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08959/0.0898, allocations: 51.52 MB / 358.6 MB, free: 13.41 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive): time 0.1781/0.2679, allocations: 20.66 MB / 379.3 MB, free: 8.77 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009366/0.2773, allocations: 6.483 MB / 385.8 MB, free: 6.52 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002489/0.2798, allocations: 95.69 kB / 385.9 MB, free: 6.5 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001568/0.2814, allocations: 0.6232 MB / 386.5 MB, free: 6.211 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001848/0.2833, allocations: 0.7062 MB / 387.2 MB, free: 5.711 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001458/0.2848, allocations: 478.1 kB / 387.7 MB, free: 5.438 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004194/0.289, allocations: 3.102 MB / 390.8 MB, free: 3.793 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002085/0.2911, allocations: 1.29 MB / 392.1 MB, free: 3.223 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001807/0.2929, allocations: 0.9597 MB / 393 MB, free: 2.781 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001272/0.2942, allocations: 1.089 MB / 394.1 MB, free: 2.234 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000288/0.2945, allocations: 154.3 kB / 394.3 MB, free: 2.234 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006041/0.2951, allocations: 192.1 kB / 394.4 MB, free: 2.227 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003472/0.2954, allocations: 447.7 kB / 394.9 MB, free: 1.941 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006159/0.296, allocations: 0.567 MB / 395.4 MB, free: 1.605 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003391/0.2994, allocations: 3.582 MB / 399 MB, free: 15.11 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.223e-06/0.2995, allocations: 4 kB / 399 MB, free: 15.1 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.2995, allocations: 0 / 399 MB, free: 15.1 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.184e-05/0.2996, allocations: 1.125 kB / 399 MB, free: 15.1 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.005417/0.305, allocations: 2.606 MB / 401.6 MB, free: 13.29 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.134e-05/0.3051, allocations: 9.156 kB / 401.6 MB, free: 13.29 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001163/0.3063, allocations: 373.3 kB / 402 MB, free: 13.11 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002421/0.3087, allocations: 1.409 MB / 403.4 MB, free: 11.99 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001585/0.3089, allocations: 194.3 kB / 403.6 MB, free: 11.9 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003857/0.3092, allocations: 265.8 kB / 403.9 MB, free: 11.8 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004465/0.3137, allocations: 2.462 MB / 406.3 MB, free: 10.26 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.027e-05/0.3138, allocations: 10.3 kB / 406.3 MB, free: 10.25 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001892/0.314, allocations: 116.1 kB / 406.5 MB, free: 10.16 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.926e-05/0.314, allocations: 63.09 kB / 406.5 MB, free: 10.16 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003113/0.3172, allocations: 1.675 MB / 408.2 MB, free: 9.34 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01319/0.3304, allocations: 10.37 MB / 418.6 MB, free: 15.02 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001723/0.3321, allocations: 0.8708 MB / 419.4 MB, free: 14.12 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009449/0.3331, allocations: 0.4965 MB / 419.9 MB, free: 13.62 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.883e-05/0.3331, allocations: 12.98 kB / 419.9 MB, free: 13.61 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.327e-05/0.3332, allocations: 47.5 kB / 420 MB, free: 13.55 MB / 334.1 MB Notification: Performance of pre-optimization done (n=83): time 4.718e-06/0.3332, allocations: 0 / 420 MB, free: 13.55 MB / 334.1 MB Notification: Performance of matching and sorting (n=89): time 0.005216/0.3384, allocations: 2.77 MB / 422.8 MB, free: 10.72 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.208e-05/0.3385, allocations: 119.8 kB / 422.9 MB, free: 10.58 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002163/0.3407, allocations: 1.553 MB / 424.4 MB, free: 9.023 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.15e-05/0.3407, allocations: 45.7 kB / 424.5 MB, free: 8.973 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008435/0.3416, allocations: 1.288 MB / 425.8 MB, free: 7.668 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002467/0.3418, allocations: 327.4 kB / 426.1 MB, free: 7.344 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.174e-05/0.3419, allocations: 36 kB / 426.1 MB, free: 7.309 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001507/0.3421, allocations: 365.9 kB / 426.5 MB, free: 6.945 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007964/0.3429, allocations: 419.8 kB / 426.9 MB, free: 6.535 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00129/0.3442, allocations: 1.127 MB / 428 MB, free: 5.074 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001012/0.3452, allocations: 0.5885 MB / 428.6 MB, free: 4.484 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.447e-06/0.3452, allocations: 8 kB / 428.6 MB, free: 4.477 MB / 334.1 MB Notification: Performance of matching and sorting (n=213) (initialization): time 0.00277/0.348, allocations: 1.699 MB / 430.3 MB, free: 2.766 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004916/0.3485, allocations: 0.7876 MB / 431.1 MB, free: 1.648 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.935e-05/0.3485, allocations: 24 kB / 431.1 MB, free: 1.625 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001622/0.3487, allocations: 56.8 kB / 431.2 MB, free: 1.566 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001292/0.35, allocations: 407.4 kB / 431.6 MB, free: 1.168 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009631/0.351, allocations: 1.327 MB / 432.9 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001111/0.3521, allocations: 99.98 kB / 433 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001365/0.3522, allocations: 80 kB / 433.1 MB, free: 15.54 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.326e-06/0.3523, allocations: 4 kB / 433.1 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002303/0.3546, allocations: 1.462 MB / 434.5 MB, free: 14.06 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.41e-05/0.3546, allocations: 24 kB / 434.6 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001049/0.3547, allocations: 60.88 kB / 434.6 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001205/0.3559, allocations: 391.3 kB / 435 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009647/0.3569, allocations: 1.323 MB / 436.3 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009955/0.3579, allocations: 88.03 kB / 436.4 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.142e-05/0.358, allocations: 80 kB / 436.5 MB, free: 11.98 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009826/0.359, allocations: 0.5521 MB / 437 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002125/0.3592, allocations: 177.8 kB / 437.2 MB, free: 11.24 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001785/0.361, allocations: 0.95 MB / 438.2 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.865e-06/0.361, allocations: 8 kB / 438.2 MB, free: 10.26 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.3611, allocations: 0 / 438.2 MB, free: 10.26 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.217e-06/0.3611, allocations: 11.98 kB / 438.2 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004516/0.3656, allocations: 2.925 MB / 441.1 MB, free: 7.219 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.37e-06/0.3656, allocations: 480 / 441.1 MB, free: 7.219 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008441/0.3665, allocations: 195.8 kB / 441.3 MB, free: 7.027 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001049/0.3666, allocations: 32.78 kB / 441.3 MB, free: 6.992 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.381e-05/0.3666, allocations: 24 kB / 441.4 MB, free: 6.969 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000959/0.3676, allocations: 1.284 MB / 442.6 MB, free: 5.551 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/0.3676, allocations: 7.938 kB / 442.7 MB, free: 5.543 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002451/0.3701, allocations: 1.508 MB / 444.2 MB, free: 3.973 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005937/0.3707, allocations: 330.8 kB / 444.5 MB, free: 3.629 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001865/0.3709, allocations: 23.98 kB / 444.5 MB, free: 3.605 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007046/0.3716, allocations: 71.95 kB / 444.6 MB, free: 3.535 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001244/0.3717, allocations: 72.52 kB / 444.6 MB, free: 3.465 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.963e-05/0.3718, allocations: 24 kB / 444.7 MB, free: 3.441 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001514/0.3733, allocations: 1.016 MB / 445.7 MB, free: 2.434 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.384e-06/0.3733, allocations: 0 / 445.7 MB, free: 2.434 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002411/0.3757, allocations: 0.7617 MB / 446.4 MB, free: 1.672 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002497/0.376, allocations: 149.3 kB / 446.6 MB, free: 1.52 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003502/0.3795, allocations: 2.061 MB / 448.7 MB, free: 15.43 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/0.3795, allocations: 0 / 448.7 MB, free: 15.43 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008535/0.3804, allocations: 0.5358 MB / 449.2 MB, free: 14.89 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001746/0.3821, allocations: 406.3 kB / 449.6 MB, free: 14.5 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006662/0.3888, allocations: 4.853 MB / 454.4 MB, free: 9.562 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001101/0.3899, allocations: 1.471 MB / 455.9 MB, free: 8.055 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001092/0.391, allocations: 246.3 kB / 456.2 MB, free: 7.809 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000264/0.3913, allocations: 107.4 kB / 456.3 MB, free: 7.703 MB / 366.1 MB Notification: Performance of SimCode: time 7.32e-07/0.3913, allocations: 0 / 456.3 MB, free: 7.703 MB / 366.1 MB Notification: Performance of Templates: time 0.03214/0.4235, allocations: 18.08 MB / 474.3 MB, free: 5.801 MB / 382.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)