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.001554/0.001554, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002316/0.002316, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.374/1.374, allocations: 227.4 MB / 246.8 MB, free: 10.65 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001185/0.001185, allocations: 64.48 kB / 306.9 MB, free: 0.6172 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09344/0.09464, allocations: 50.53 MB / 357.5 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive): time 0.1912/0.2859, allocations: 23.4 MB / 380.9 MB, free: 9.289 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01302/0.299, allocations: 6.833 MB / 387.7 MB, free: 4.973 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005293/0.3044, allocations: 107.7 kB / 387.8 MB, free: 4.945 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00306/0.3074, allocations: 0.805 MB / 388.6 MB, free: 4.508 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003241/0.3107, allocations: 0.8688 MB / 389.5 MB, free: 3.863 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001914/0.3126, allocations: 0.8048 MB / 390.3 MB, free: 3.332 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00476/0.3174, allocations: 3.448 MB / 393.7 MB, free: 1.457 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002651/0.3201, allocations: 1.977 MB / 395.7 MB, free: 452 kB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002415/0.3225, allocations: 1.286 MB / 397 MB, free: 15.73 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001974/0.3245, allocations: 1.404 MB / 398.4 MB, free: 14.94 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004866/0.325, allocations: 379.6 kB / 398.8 MB, free: 14.94 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008017/0.3258, allocations: 423.3 kB / 399.2 MB, free: 14.93 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005049/0.3263, allocations: 0.7141 MB / 399.9 MB, free: 14.39 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001647/0.328, allocations: 1.607 MB / 401.5 MB, free: 13.32 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004384/0.3324, allocations: 4.434 MB / 405.9 MB, free: 9.836 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.242e-06/0.3324, allocations: 0 / 405.9 MB, free: 9.836 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.945e-06/0.3324, allocations: 0 / 405.9 MB, free: 9.836 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.594e-05/0.3325, allocations: 5.375 kB / 406 MB, free: 9.832 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.005168/0.3377, allocations: 3.049 MB / 409 MB, free: 7.648 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.783e-05/0.3377, allocations: 9.406 kB / 409 MB, free: 7.648 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008811/0.3386, allocations: 371.5 kB / 409.4 MB, free: 7.473 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002055/0.3407, allocations: 1.453 MB / 410.8 MB, free: 6.309 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001317/0.3408, allocations: 195.5 kB / 411 MB, free: 6.219 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002864/0.3411, allocations: 270.6 kB / 411.3 MB, free: 6.121 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003796/0.3449, allocations: 2.465 MB / 413.7 MB, free: 3.883 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.296e-05/0.345, allocations: 7.844 kB / 413.8 MB, free: 3.875 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001919/0.3452, allocations: 108 kB / 413.9 MB, free: 3.77 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.411e-05/0.3452, allocations: 64 kB / 413.9 MB, free: 3.707 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003077/0.3483, allocations: 1.658 MB / 415.6 MB, free: 2.035 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01255/0.3609, allocations: 10.32 MB / 425.9 MB, free: 7.207 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001773/0.3627, allocations: 0.8473 MB / 426.7 MB, free: 6.328 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000975/0.3636, allocations: 492.2 kB / 427.2 MB, free: 5.848 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.916e-05/0.3637, allocations: 9 kB / 427.2 MB, free: 5.84 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.687e-05/0.3638, allocations: 47.5 kB / 427.3 MB, free: 5.781 MB / 334.1 MB Notification: Performance of pre-optimization done (n=83): time 3.076e-06/0.3638, allocations: 0 / 427.3 MB, free: 5.781 MB / 334.1 MB Notification: Performance of matching and sorting (n=89): time 0.005309/0.3691, allocations: 2.679 MB / 430 MB, free: 3.043 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.294e-05/0.3692, allocations: 115.8 kB / 430.1 MB, free: 2.906 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001995/0.3712, allocations: 1.565 MB / 431.6 MB, free: 1.34 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.6e-05/0.3712, allocations: 45.7 kB / 431.7 MB, free: 1.289 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008487/0.3721, allocations: 1.289 MB / 433 MB, free: 15.98 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000243/0.3724, allocations: 331.4 kB / 433.3 MB, free: 15.65 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003974/0.3728, allocations: 303.2 kB / 433.6 MB, free: 15.35 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.854e-05/0.3729, allocations: 301.1 kB / 433.9 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008315/0.3737, allocations: 420.7 kB / 434.3 MB, free: 14.64 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001363/0.3751, allocations: 1.108 MB / 435.4 MB, free: 13.2 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002212/0.3773, allocations: 1.611 MB / 437 MB, free: 11.25 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.975e-05/0.3773, allocations: 8 kB / 437 MB, free: 11.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=213) (initialization): time 0.003032/0.3804, allocations: 1.68 MB / 438.7 MB, free: 9.559 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.13e-05/0.3804, allocations: 19.28 kB / 438.7 MB, free: 9.543 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.504e-05/0.3804, allocations: 23.94 kB / 438.7 MB, free: 9.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000194/0.3806, allocations: 57.53 kB / 438.8 MB, free: 9.461 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001233/0.3819, allocations: 399.3 kB / 439.2 MB, free: 9.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001081/0.383, allocations: 1.417 MB / 440.6 MB, free: 7.512 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001251/0.3842, allocations: 87.97 kB / 440.7 MB, free: 7.426 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.959e-05/0.3843, allocations: 79.94 kB / 440.8 MB, free: 7.348 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001392/0.3857, allocations: 0.7499 MB / 441.5 MB, free: 6.594 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001172/0.3869, allocations: 1.084 MB / 442.6 MB, free: 5.18 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001985/0.3889, allocations: 1.565 MB / 444.2 MB, free: 3.285 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.446e-06/0.3889, allocations: 8 kB / 444.2 MB, free: 3.277 MB / 350.1 MB Notification: Performance of matching and sorting (n=213) (initialization_lambda0): time 0.002788/0.3917, allocations: 1.625 MB / 445.8 MB, free: 1.641 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.755e-05/0.3918, allocations: 19.98 kB / 445.8 MB, free: 1.621 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.39e-05/0.3918, allocations: 24 kB / 445.8 MB, free: 1.598 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000126/0.392, allocations: 49.36 kB / 445.9 MB, free: 1.547 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001201/0.3932, allocations: 395.4 kB / 446.3 MB, free: 1.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001092/0.3943, allocations: 1.433 MB / 447.7 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001297/0.3956, allocations: 75.97 kB / 447.8 MB, free: 15.51 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.697e-05/0.3957, allocations: 80 kB / 447.9 MB, free: 15.43 MB / 366.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.000367/0.3961, allocations: 296.8 kB / 448.2 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002341/0.3963, allocations: 177.8 kB / 448.3 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00179/0.3981, allocations: 0.9109 MB / 449.2 MB, free: 14.03 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.588e-06/0.3981, allocations: 12 kB / 449.3 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.956e-06/0.3981, allocations: 0 / 449.3 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.798e-06/0.3981, allocations: 3.984 kB / 449.3 MB, free: 14.01 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004483/0.4026, allocations: 2.891 MB / 452.1 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.153e-06/0.4027, allocations: 4 kB / 452.2 MB, free: 11.01 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008262/0.4035, allocations: 175.8 kB / 452.3 MB, free: 10.84 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001003/0.4036, allocations: 28.84 kB / 452.4 MB, free: 10.81 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.566e-05/0.4037, allocations: 31.98 kB / 452.4 MB, free: 10.78 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009374/0.4046, allocations: 1.386 MB / 453.8 MB, free: 9.25 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.472e-06/0.4046, allocations: 7.938 kB / 453.8 MB, free: 9.242 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002346/0.407, allocations: 1.45 MB / 455.2 MB, free: 7.73 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005772/0.4076, allocations: 322.8 kB / 455.5 MB, free: 7.395 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001868/0.4078, allocations: 24 kB / 455.6 MB, free: 7.371 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007092/0.4085, allocations: 51.95 kB / 455.6 MB, free: 7.32 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001335/0.4086, allocations: 68.45 kB / 455.7 MB, free: 7.254 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.029e-05/0.4087, allocations: 31.98 kB / 455.7 MB, free: 7.223 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00144/0.4101, allocations: 1.028 MB / 456.7 MB, free: 6.203 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4101, allocations: 0 / 456.7 MB, free: 6.203 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002376/0.4125, allocations: 0.7578 MB / 457.5 MB, free: 5.445 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.0003235/0.4129, allocations: 161.2 kB / 457.7 MB, free: 5.281 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003966/0.4168, allocations: 2.051 MB / 459.7 MB, free: 3.211 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.613e-06/0.4169, allocations: 4 kB / 459.7 MB, free: 3.207 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008475/0.4177, allocations: 0.515 MB / 460.2 MB, free: 2.68 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002021/0.4197, allocations: 444.8 kB / 460.7 MB, free: 2.27 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007973/0.4277, allocations: 3.96 MB / 464.6 MB, free: 14.23 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001407/0.4292, allocations: 1.471 MB / 466.1 MB, free: 12.72 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001269/0.4305, allocations: 250.3 kB / 466.3 MB, free: 12.47 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002918/0.4308, allocations: 107.4 kB / 466.4 MB, free: 12.37 MB / 382.1 MB Notification: Performance of SimCode: time 1.773e-06/0.4308, allocations: 0 / 466.4 MB, free: 12.37 MB / 382.1 MB Notification: Performance of Templates: time 0.0373/0.4681, allocations: 19.67 MB / 486.1 MB, free: 8.871 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)