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.001293/0.001293, allocations: 112.9 kB / 17.82 MB, free: 5.207 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0013/0.0013, allocations: 208.6 kB / 18.79 MB, free: 4.254 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.405/1.405, allocations: 230.4 MB / 250 MB, free: 9.098 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.001873/0.001873, allocations: 71.83 kB / 367.4 MB, free: 7.016 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2303/0.2322, allocations: 53.31 MB / 420.7 MB, free: 8.352 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive): time 0.02714/0.2593, allocations: 23.48 MB / 444.1 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0138/0.2731, allocations: 6.843 MB / 451 MB, free: 9.914 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003429/0.2766, allocations: 103.6 kB / 451.1 MB, free: 9.812 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002258/0.2788, allocations: 0.8377 MB / 451.9 MB, free: 8.969 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002393/0.2812, allocations: 0.9301 MB / 452.9 MB, free: 8.031 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001423/0.2826, allocations: 0.8115 MB / 453.7 MB, free: 7.219 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003779/0.2864, allocations: 3.472 MB / 457.1 MB, free: 3.734 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001849/0.2883, allocations: 1.271 MB / 458.4 MB, free: 2.398 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001699/0.29, allocations: 1.304 MB / 459.7 MB, free: 1.09 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001723/0.2917, allocations: 1.408 MB / 461.1 MB, free: 15.68 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004682/0.2922, allocations: 383.9 kB / 461.5 MB, free: 15.3 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006439/0.2928, allocations: 420 kB / 461.9 MB, free: 14.89 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005902/0.2934, allocations: 0.7086 MB / 462.6 MB, free: 14.18 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001596/0.295, allocations: 1.606 MB / 464.2 MB, free: 12.57 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00487/0.2999, allocations: 4.518 MB / 468.7 MB, free: 8.031 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.2999, allocations: 0 / 468.7 MB, free: 8.031 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.2999, allocations: 0 / 468.7 MB, free: 8.031 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.803e-05/0.2999, allocations: 0 / 468.7 MB, free: 8.031 MB / 382.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.005088/0.305, allocations: 3.137 MB / 471.9 MB, free: 4.828 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.616e-05/0.305, allocations: 11.97 kB / 471.9 MB, free: 4.816 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009311/0.306, allocations: 382.9 kB / 472.3 MB, free: 4.441 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002349/0.3083, allocations: 1.498 MB / 473.8 MB, free: 2.887 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001591/0.3085, allocations: 193.5 kB / 473.9 MB, free: 2.695 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003534/0.3088, allocations: 263.9 kB / 474.2 MB, free: 2.438 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004204/0.313, allocations: 2.469 MB / 476.7 MB, free: 15.85 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.366e-05/0.3131, allocations: 7.938 kB / 476.7 MB, free: 15.84 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002403/0.3133, allocations: 108 kB / 476.8 MB, free: 15.74 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.471e-05/0.3134, allocations: 60 kB / 476.8 MB, free: 15.68 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003336/0.3167, allocations: 1.658 MB / 478.5 MB, free: 14.01 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01397/0.3307, allocations: 10.23 MB / 488.7 MB, free: 3.277 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001801/0.3325, allocations: 0.8246 MB / 489.6 MB, free: 2.426 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001014/0.3335, allocations: 480.2 kB / 490 MB, free: 1.957 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.194e-05/0.3336, allocations: 9 kB / 490 MB, free: 1.945 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.448e-05/0.3336, allocations: 39.56 kB / 490.1 MB, free: 1.898 MB / 398.1 MB Notification: Performance of pre-optimization done (n=83): time 2.555e-06/0.3336, allocations: 4 kB / 490.1 MB, free: 1.895 MB / 398.1 MB Notification: Performance of matching and sorting (n=89): time 0.005321/0.3389, allocations: 2.719 MB / 492.8 MB, free: 15.12 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001058/0.339, allocations: 115.8 kB / 492.9 MB, free: 14.98 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002158/0.3412, allocations: 1.569 MB / 494.5 MB, free: 13.41 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.914e-05/0.3412, allocations: 45.7 kB / 494.5 MB, free: 13.36 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009999/0.3422, allocations: 1.32 MB / 495.8 MB, free: 12.03 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002852/0.3425, allocations: 349.1 kB / 496.2 MB, free: 11.68 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004302/0.343, allocations: 307.4 kB / 496.5 MB, free: 11.38 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001267/0.3431, allocations: 305.1 kB / 496.8 MB, free: 11.07 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008411/0.3439, allocations: 416.7 kB / 497.2 MB, free: 10.66 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001415/0.3453, allocations: 1.115 MB / 498.3 MB, free: 9.215 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002337/0.3477, allocations: 1.604 MB / 499.9 MB, free: 7.281 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.14e-05/0.3477, allocations: 8 kB / 499.9 MB, free: 7.273 MB / 414.1 MB Notification: Performance of matching and sorting (n=213) (initialization): time 0.002945/0.3506, allocations: 1.682 MB / 0.4898 GB, free: 5.582 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.744e-05/0.3507, allocations: 12 kB / 0.4899 GB, free: 5.57 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.152e-05/0.3507, allocations: 35.88 kB / 0.4899 GB, free: 5.535 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001959/0.3509, allocations: 60.78 kB / 0.4899 GB, free: 5.473 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0013/0.3522, allocations: 399.4 kB / 0.4903 GB, free: 5.082 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001227/0.3534, allocations: 1.425 MB / 0.4917 GB, free: 3.52 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001085/0.3545, allocations: 87.98 kB / 0.4918 GB, free: 3.434 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001068/0.3546, allocations: 76 kB / 0.4919 GB, free: 3.359 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001474/0.3561, allocations: 0.746 MB / 0.4926 GB, free: 2.609 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00131/0.3574, allocations: 1.084 MB / 0.4937 GB, free: 1.195 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002153/0.3595, allocations: 1.553 MB / 0.4952 GB, free: 15.3 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.936e-06/0.3596, allocations: 12 kB / 0.4952 GB, free: 15.29 MB / 430.1 MB Notification: Performance of matching and sorting (n=213) (initialization_lambda0): time 0.002804/0.3624, allocations: 1.634 MB / 0.4968 GB, free: 13.65 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.357e-05/0.3624, allocations: 16 kB / 0.4968 GB, free: 13.64 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.405e-05/0.3624, allocations: 28.66 kB / 0.4968 GB, free: 13.61 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001286/0.3625, allocations: 56.84 kB / 0.4969 GB, free: 13.55 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001239/0.3638, allocations: 391.3 kB / 0.4973 GB, free: 13.17 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00115/0.3649, allocations: 1.429 MB / 0.4987 GB, free: 11.59 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001037/0.366, allocations: 67.98 kB / 0.4987 GB, free: 11.53 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001047/0.3661, allocations: 88.08 kB / 0.4988 GB, free: 11.44 MB / 430.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.0003377/0.3664, allocations: 295.5 kB / 0.4991 GB, free: 11.14 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002389/0.3666, allocations: 186.8 kB / 0.4993 GB, free: 10.96 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001839/0.3685, allocations: 0.9069 MB / 0.5001 GB, free: 10.04 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.046e-05/0.3685, allocations: 8 kB / 0.5002 GB, free: 10.04 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.135e-06/0.3685, allocations: 11.98 kB / 0.5002 GB, free: 10.02 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.017e-06/0.3685, allocations: 3.984 kB / 0.5002 GB, free: 10.02 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00465/0.3732, allocations: 2.878 MB / 0.503 GB, free: 7.031 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.933e-06/0.3732, allocations: 4.469 kB / 0.503 GB, free: 7.027 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008739/0.374, allocations: 187.7 kB / 0.5032 GB, free: 6.844 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001084/0.3742, allocations: 28.84 kB / 0.5032 GB, free: 6.812 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.778e-05/0.3742, allocations: 24 kB / 0.5032 GB, free: 6.789 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001075/0.3753, allocations: 1.383 MB / 0.5046 GB, free: 5.27 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.548e-06/0.3753, allocations: 8 kB / 0.5046 GB, free: 5.262 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002443/0.3777, allocations: 1.467 MB / 0.506 GB, free: 3.734 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005113/0.3782, allocations: 331.8 kB / 0.5063 GB, free: 3.391 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000188/0.3784, allocations: 32 kB / 0.5064 GB, free: 3.359 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007092/0.3791, allocations: 51.95 kB / 0.5064 GB, free: 3.309 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001435/0.3793, allocations: 68.45 kB / 0.5065 GB, free: 3.242 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.652e-05/0.3793, allocations: 31.98 kB / 0.5065 GB, free: 3.211 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001488/0.3808, allocations: 1.024 MB / 0.5075 GB, free: 2.195 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3808, allocations: 0 / 0.5075 GB, free: 2.195 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0023/0.3831, allocations: 0.7617 MB / 0.5082 GB, free: 1.434 MB / 430.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.000288/0.3834, allocations: 149.3 kB / 0.5084 GB, free: 1.277 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003511/0.3869, allocations: 1.925 MB / 0.5103 GB, free: 15.34 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.3869, allocations: 0 / 0.5103 GB, free: 15.34 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008993/0.3878, allocations: 0.507 MB / 0.5108 GB, free: 14.81 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001709/0.3895, allocations: 439.4 kB / 0.5112 GB, free: 14.4 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00656/0.3961, allocations: 3.977 MB / 0.5151 GB, free: 10.34 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001258/0.3974, allocations: 1.475 MB / 0.5165 GB, free: 8.832 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0009246/0.3983, allocations: 246.3 kB / 0.5167 GB, free: 8.586 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002696/0.3986, allocations: 111.4 kB / 0.5168 GB, free: 8.477 MB / 446.1 MB Notification: Performance of SimCode: time 7.91e-07/0.3986, allocations: 0 / 0.5168 GB, free: 8.477 MB / 446.1 MB Notification: Performance of Templates: time 0.03979/0.4383, allocations: 20.36 MB / 0.5367 GB, free: 4.301 MB / 462.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)