Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001288/0.001288, allocations: 105.8 kB / 18.3 MB, free: 4.836 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001832/0.001832, allocations: 211.9 kB / 19.25 MB, free: 3.895 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.49/1.49, allocations: 227.7 MB / 247.7 MB, free: 10.34 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001924/0.001924, allocations: 64.3 kB / 307.9 MB, free: 484 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09534/0.09728, allocations: 50.54 MB / 358.4 MB, free: 13.91 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive): time 0.1652/0.2625, allocations: 23.4 MB / 381.8 MB, free: 9.121 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0114/0.274, allocations: 6.841 MB / 388.7 MB, free: 4.758 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004252/0.2783, allocations: 100.1 kB / 388.8 MB, free: 4.738 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002521/0.2808, allocations: 0.8037 MB / 389.6 MB, free: 4.301 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003052/0.2839, allocations: 0.8732 MB / 390.4 MB, free: 3.652 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001798/0.2857, allocations: 0.8044 MB / 391.3 MB, free: 3.121 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004121/0.2898, allocations: 3.442 MB / 394.7 MB, free: 1.254 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002436/0.2923, allocations: 1.978 MB / 396.7 MB, free: 240 kB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002132/0.2944, allocations: 1.291 MB / 398 MB, free: 15.52 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002297/0.2968, allocations: 1.407 MB / 399.4 MB, free: 14.72 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005962/0.2974, allocations: 383.9 kB / 399.7 MB, free: 14.72 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009211/0.2983, allocations: 419.3 kB / 400.2 MB, free: 14.71 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005924/0.2989, allocations: 0.7022 MB / 400.9 MB, free: 14.18 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001689/0.3006, allocations: 1.612 MB / 402.5 MB, free: 13.11 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004511/0.3051, allocations: 4.437 MB / 406.9 MB, free: 9.617 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.3051, allocations: 1.188 kB / 406.9 MB, free: 9.617 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3052, allocations: 0 / 406.9 MB, free: 9.617 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.957e-05/0.3053, allocations: 0 / 406.9 MB, free: 9.617 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.005759/0.311, allocations: 3.055 MB / 410 MB, free: 7.43 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.401e-05/0.3111, allocations: 7.656 kB / 410 MB, free: 7.43 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009132/0.312, allocations: 373.9 kB / 410.3 MB, free: 7.254 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002316/0.3143, allocations: 1.45 MB / 411.8 MB, free: 6.09 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001512/0.3145, allocations: 199 kB / 412 MB, free: 5.996 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003099/0.3148, allocations: 271.1 kB / 412.2 MB, free: 5.898 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00427/0.3191, allocations: 2.466 MB / 414.7 MB, free: 3.617 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.795e-05/0.3192, allocations: 11.84 kB / 414.7 MB, free: 3.605 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002181/0.3194, allocations: 108.8 kB / 414.8 MB, free: 3.5 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.43e-05/0.3194, allocations: 64 kB / 414.9 MB, free: 3.438 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003445/0.3229, allocations: 1.658 MB / 416.5 MB, free: 1.766 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.015/0.3379, allocations: 10.3 MB / 426.8 MB, free: 6.961 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001906/0.3398, allocations: 0.8637 MB / 427.7 MB, free: 6.066 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001034/0.3409, allocations: 488.3 kB / 428.2 MB, free: 5.59 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.722e-05/0.341, allocations: 9 kB / 428.2 MB, free: 5.582 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.031e-05/0.341, allocations: 43.56 kB / 428.2 MB, free: 5.527 MB / 334.1 MB Notification: Performance of pre-optimization done (n=83): time 2.855e-06/0.341, allocations: 4 kB / 428.2 MB, free: 5.523 MB / 334.1 MB Notification: Performance of matching and sorting (n=89): time 0.00584/0.3469, allocations: 2.681 MB / 430.9 MB, free: 2.785 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.292e-05/0.347, allocations: 115.8 kB / 431 MB, free: 2.648 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002392/0.3494, allocations: 1.565 MB / 432.6 MB, free: 1.082 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.248e-05/0.3495, allocations: 41.7 kB / 432.6 MB, free: 1.035 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001068/0.3505, allocations: 1.285 MB / 433.9 MB, free: 15.73 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003161/0.3509, allocations: 339.3 kB / 434.3 MB, free: 15.39 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004317/0.3513, allocations: 299.2 kB / 434.5 MB, free: 15.1 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001405/0.3515, allocations: 309.1 kB / 434.9 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009073/0.3524, allocations: 416.7 kB / 435.3 MB, free: 14.38 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001506/0.3539, allocations: 1.108 MB / 436.4 MB, free: 12.94 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002493/0.3564, allocations: 1.604 MB / 438 MB, free: 11 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.355e-05/0.3564, allocations: 12 kB / 438 MB, free: 10.99 MB / 350.1 MB Notification: Performance of matching and sorting (n=213) (initialization): time 0.003513/0.3599, allocations: 1.677 MB / 439.7 MB, free: 9.309 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.724e-05/0.36, allocations: 16.03 kB / 439.7 MB, free: 9.293 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.09e-05/0.36, allocations: 27.94 kB / 439.7 MB, free: 9.266 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001968/0.3602, allocations: 52.84 kB / 439.8 MB, free: 9.211 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001319/0.3616, allocations: 399.3 kB / 440.1 MB, free: 8.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001305/0.3629, allocations: 1.433 MB / 441.6 MB, free: 7.246 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001377/0.3643, allocations: 79.88 kB / 441.7 MB, free: 7.168 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001041/0.3644, allocations: 80 kB / 441.7 MB, free: 7.09 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001608/0.366, allocations: 0.75 MB / 442.5 MB, free: 6.336 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001379/0.3674, allocations: 1.084 MB / 443.6 MB, free: 4.922 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002272/0.3697, allocations: 1.565 MB / 445.1 MB, free: 3.027 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.236e-05/0.3697, allocations: 11.94 kB / 445.1 MB, free: 3.016 MB / 350.1 MB Notification: Performance of matching and sorting (n=213) (initialization_lambda0): time 0.003014/0.3727, allocations: 1.626 MB / 446.8 MB, free: 1.379 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.274e-05/0.3728, allocations: 16 kB / 446.8 MB, free: 1.363 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.665e-05/0.3728, allocations: 28.06 kB / 446.8 MB, free: 1.336 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000131/0.3729, allocations: 52.84 kB / 446.9 MB, free: 1.281 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001248/0.3742, allocations: 391.3 kB / 447.2 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001239/0.3754, allocations: 1.417 MB / 448.7 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001252/0.3767, allocations: 80.03 kB / 448.7 MB, free: 15.26 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001034/0.3768, allocations: 83.98 kB / 448.8 MB, free: 15.18 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.0003769/0.3772, allocations: 296.5 kB / 449.1 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002726/0.3775, allocations: 177.8 kB / 449.3 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001943/0.3794, allocations: 0.9032 MB / 450.2 MB, free: 13.78 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.062e-05/0.3795, allocations: 12 kB / 450.2 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.3795, allocations: 0 / 450.2 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.169e-05/0.3795, allocations: 11.97 kB / 450.2 MB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00491/0.3844, allocations: 2.886 MB / 453.1 MB, free: 10.77 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.047e-05/0.3844, allocations: 8 kB / 453.1 MB, free: 10.76 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008815/0.3853, allocations: 180.2 kB / 453.3 MB, free: 10.58 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001054/0.3854, allocations: 32.78 kB / 453.3 MB, free: 10.55 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.992e-05/0.3855, allocations: 27.94 kB / 453.3 MB, free: 10.52 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001154/0.3867, allocations: 1.387 MB / 454.7 MB, free: 8.992 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.809e-06/0.3867, allocations: 4 kB / 454.7 MB, free: 8.988 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002648/0.3893, allocations: 1.45 MB / 456.2 MB, free: 7.477 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006602/0.39, allocations: 326.8 kB / 456.5 MB, free: 7.137 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002012/0.3902, allocations: 24 kB / 456.5 MB, free: 7.113 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007307/0.391, allocations: 55.95 kB / 456.6 MB, free: 7.059 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001438/0.3911, allocations: 60.52 kB / 456.6 MB, free: 7 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.719e-05/0.3912, allocations: 31.94 kB / 456.7 MB, free: 6.969 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001571/0.3928, allocations: 1.028 MB / 457.7 MB, free: 5.949 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3928, allocations: 0 / 457.7 MB, free: 5.949 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002461/0.3952, allocations: 0.7656 MB / 458.5 MB, free: 5.184 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.0003409/0.3956, allocations: 165.2 kB / 458.6 MB, free: 5.016 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0042/0.3998, allocations: 2.051 MB / 460.7 MB, free: 2.945 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.851e-06/0.3998, allocations: 0 / 460.7 MB, free: 2.945 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000991/0.4008, allocations: 0.5149 MB / 461.2 MB, free: 2.418 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002162/0.403, allocations: 448.3 kB / 461.6 MB, free: 2.004 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007316/0.4103, allocations: 4.005 MB / 465.6 MB, free: 13.91 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001329/0.4117, allocations: 1.475 MB / 467.1 MB, free: 12.4 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004469/0.4122, allocations: 123.4 kB / 467.2 MB, free: 12.28 MB / 382.1 MB Notification: Performance of SimCode: time 8.71e-07/0.4122, allocations: 0 / 467.2 MB, free: 12.28 MB / 382.1 MB Notification: Performance of Templates: time 0.05113/0.4633, allocations: 35.99 MB / 0.4914 GB, free: 8.32 MB / 414.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.pipe 2>&1)