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.00164/0.001641, allocations: 116.8 kB / 17.33 MB, free: 6.004 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002123/0.002123, allocations: 205.8 kB / 18.26 MB, free: 5.094 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.397/1.397, allocations: 227.4 MB / 246.4 MB, free: 9.086 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001202/0.001202, allocations: 61.25 kB / 306.4 MB, free: 0.7031 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09437/0.09559, allocations: 50.53 MB / 357 MB, free: 14.17 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive): time 0.1775/0.2732, allocations: 23.11 MB / 380.1 MB, free: 9.316 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01493/0.2882, allocations: 6.629 MB / 386.7 MB, free: 5.281 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005417/0.2937, allocations: 99.03 kB / 386.8 MB, free: 5.262 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002875/0.2966, allocations: 0.6743 MB / 387.5 MB, free: 4.949 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00295/0.2996, allocations: 0.7374 MB / 388.2 MB, free: 4.418 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00148/0.301, allocations: 0.7068 MB / 388.9 MB, free: 3.895 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003519/0.3046, allocations: 3.458 MB / 392.4 MB, free: 2.012 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002261/0.3068, allocations: 1.971 MB / 394.4 MB, free: 1.004 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001732/0.3086, allocations: 1.295 MB / 395.7 MB, free: 296 kB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001644/0.3102, allocations: 1.403 MB / 397.1 MB, free: 15.49 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005339/0.3108, allocations: 379.2 kB / 397.4 MB, free: 15.49 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007659/0.3116, allocations: 421.7 kB / 397.8 MB, free: 15.48 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005216/0.3121, allocations: 0.7078 MB / 398.6 MB, free: 14.95 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001477/0.3136, allocations: 1.609 MB / 400.2 MB, free: 13.88 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004128/0.3177, allocations: 4.437 MB / 404.6 MB, free: 10.64 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.837e-06/0.3177, allocations: 4 kB / 404.6 MB, free: 10.64 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3178, allocations: 4 kB / 404.6 MB, free: 10.63 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.537e-05/0.3178, allocations: 0 / 404.6 MB, free: 10.63 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.005818/0.3237, allocations: 3.049 MB / 407.7 MB, free: 8.449 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.589e-05/0.3237, allocations: 10.97 kB / 407.7 MB, free: 8.449 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009653/0.3247, allocations: 375.9 kB / 408 MB, free: 8.27 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002153/0.3269, allocations: 1.448 MB / 409.5 MB, free: 7.109 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001151/0.327, allocations: 192.7 kB / 409.7 MB, free: 7.02 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003003/0.3273, allocations: 273.2 kB / 409.9 MB, free: 6.922 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004111/0.3314, allocations: 2.459 MB / 412.4 MB, free: 4.969 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.312e-05/0.3315, allocations: 11.84 kB / 412.4 MB, free: 4.957 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002003/0.3317, allocations: 112 kB / 412.5 MB, free: 4.848 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.683e-05/0.3317, allocations: 64 kB / 412.6 MB, free: 4.785 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003134/0.3349, allocations: 1.658 MB / 414.2 MB, free: 3.113 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01381/0.3487, allocations: 10.3 MB / 424.5 MB, free: 8.305 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00175/0.3505, allocations: 0.8589 MB / 425.4 MB, free: 7.418 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009845/0.3515, allocations: 495.6 kB / 425.9 MB, free: 6.938 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.804e-05/0.3516, allocations: 9 kB / 425.9 MB, free: 6.93 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.446e-05/0.3516, allocations: 47.56 kB / 425.9 MB, free: 6.871 MB / 334.1 MB Notification: Performance of pre-optimization done (n=83): time 2.875e-06/0.3516, allocations: 0 / 425.9 MB, free: 6.871 MB / 334.1 MB Notification: Performance of matching and sorting (n=89): time 0.005151/0.3568, allocations: 2.668 MB / 428.6 MB, free: 4.141 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.803e-05/0.3569, allocations: 115.8 kB / 428.7 MB, free: 4.004 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001958/0.3588, allocations: 1.569 MB / 430.3 MB, free: 2.434 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.175e-05/0.3589, allocations: 45.7 kB / 430.3 MB, free: 2.383 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008176/0.3597, allocations: 1.292 MB / 431.6 MB, free: 1.074 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002392/0.36, allocations: 335.3 kB / 432 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003889/0.3604, allocations: 311.2 kB / 432.3 MB, free: 444 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.01e-05/0.3605, allocations: 301.1 kB / 432.5 MB, free: 140 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008055/0.3613, allocations: 416.7 kB / 433 MB, free: 15.73 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001245/0.3626, allocations: 1.108 MB / 434.1 MB, free: 14.29 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002116/0.3647, allocations: 1.607 MB / 435.7 MB, free: 12.35 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.06e-05/0.3647, allocations: 4 kB / 435.7 MB, free: 12.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=213) (initialization): time 0.002792/0.3675, allocations: 1.684 MB / 437.4 MB, free: 10.65 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.773e-05/0.3675, allocations: 16 kB / 437.4 MB, free: 10.63 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.652e-05/0.3676, allocations: 31.92 kB / 437.4 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001692/0.3678, allocations: 52.84 kB / 437.5 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001225/0.369, allocations: 399.7 kB / 437.8 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001015/0.37, allocations: 1.425 MB / 439.3 MB, free: 8.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001155/0.3712, allocations: 79.97 kB / 439.4 MB, free: 8.512 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001041/0.3713, allocations: 88 kB / 439.4 MB, free: 8.426 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001338/0.3726, allocations: 0.746 MB / 440.2 MB, free: 7.676 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001154/0.3738, allocations: 1.084 MB / 441.3 MB, free: 6.262 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001932/0.3757, allocations: 1.561 MB / 442.8 MB, free: 4.375 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.061e-05/0.3758, allocations: 8 kB / 442.8 MB, free: 4.367 MB / 350.1 MB Notification: Performance of matching and sorting (n=213) (initialization_lambda0): time 0.002578/0.3784, allocations: 1.63 MB / 444.5 MB, free: 2.723 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.055e-05/0.3784, allocations: 12 kB / 444.5 MB, free: 2.711 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.297e-05/0.3784, allocations: 27.98 kB / 444.5 MB, free: 2.684 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001114/0.3785, allocations: 48.86 kB / 444.6 MB, free: 2.633 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00116/0.3797, allocations: 391.5 kB / 444.9 MB, free: 2.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009341/0.3806, allocations: 1.425 MB / 446.4 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001098/0.3818, allocations: 75.97 kB / 446.4 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.31e-05/0.3819, allocations: 80 kB / 446.5 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.0003187/0.3822, allocations: 309.7 kB / 446.8 MB, free: 228 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002172/0.3824, allocations: 177.8 kB / 447 MB, free: 48 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001843/0.3843, allocations: 0.9032 MB / 447.9 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.325e-05/0.3843, allocations: 15.97 kB / 447.9 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.3843, allocations: 0 / 447.9 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.042e-05/0.3843, allocations: 3.984 kB / 447.9 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004334/0.3887, allocations: 2.886 MB / 450.8 MB, free: 12.11 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.043e-06/0.3887, allocations: 4.469 kB / 450.8 MB, free: 12.11 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008461/0.3895, allocations: 187.8 kB / 451 MB, free: 11.93 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.552e-05/0.3896, allocations: 28.78 kB / 451 MB, free: 11.89 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.784e-05/0.3897, allocations: 27.98 kB / 451 MB, free: 11.87 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009255/0.3906, allocations: 1.382 MB / 452.4 MB, free: 10.34 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.349e-06/0.3907, allocations: 12.09 kB / 452.4 MB, free: 10.33 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002353/0.393, allocations: 1.449 MB / 453.9 MB, free: 8.816 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005193/0.3935, allocations: 326.8 kB / 454.2 MB, free: 8.477 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001893/0.3937, allocations: 20 kB / 454.2 MB, free: 8.457 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007118/0.3945, allocations: 51.95 kB / 454.3 MB, free: 8.406 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001383/0.3946, allocations: 72.5 kB / 454.3 MB, free: 8.336 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.163e-05/0.3947, allocations: 35.92 kB / 454.4 MB, free: 8.301 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001394/0.3961, allocations: 1.024 MB / 455.4 MB, free: 7.285 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3961, allocations: 0 / 455.4 MB, free: 7.285 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002204/0.3983, allocations: 0.7617 MB / 456.2 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.0002826/0.3986, allocations: 157.3 kB / 456.3 MB, free: 6.363 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003706/0.4023, allocations: 2.047 MB / 458.4 MB, free: 4.301 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.4023, allocations: 384 / 458.4 MB, free: 4.301 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009063/0.4032, allocations: 0.5216 MB / 458.9 MB, free: 3.77 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001992/0.4052, allocations: 435.4 kB / 459.3 MB, free: 3.359 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007228/0.4125, allocations: 4.999 MB / 464.3 MB, free: 14.28 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001132/0.4136, allocations: 1.471 MB / 465.8 MB, free: 12.78 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001196/0.4148, allocations: 246.2 kB / 466 MB, free: 12.53 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000272/0.4151, allocations: 115.4 kB / 466.1 MB, free: 12.42 MB / 382.1 MB Notification: Performance of SimCode: time 5.71e-07/0.4151, allocations: 0 / 466.1 MB, free: 12.42 MB / 382.1 MB Notification: Performance of Templates: time 0.034/0.4491, allocations: 19.5 MB / 485.6 MB, free: 9.102 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)