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.00114/0.00114, allocations: 118.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001223/0.001223, allocations: 198 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.422/1.422, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001242/0.001242, allocations: 63.91 kB / 358.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.282/0.2833, allocations: 50.53 MB / 409.2 MB, free: 1.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive): time 0.02416/0.3075, allocations: 23.4 MB / 432.6 MB, free: 10.11 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0153/0.3228, allocations: 6.839 MB / 439.5 MB, free: 3.246 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005284/0.3282, allocations: 103.6 kB / 439.6 MB, free: 3.145 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00351/0.3318, allocations: 0.8493 MB / 440.4 MB, free: 2.289 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003947/0.3357, allocations: 0.9185 MB / 441.4 MB, free: 1.363 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002116/0.3379, allocations: 0.8076 MB / 442.2 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00522/0.3431, allocations: 3.48 MB / 445.6 MB, free: 13.07 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002664/0.3458, allocations: 1.973 MB / 447.6 MB, free: 11.03 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001978/0.3478, allocations: 1.308 MB / 448.9 MB, free: 9.715 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001418/0.3492, allocations: 1.404 MB / 450.3 MB, free: 8.305 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003835/0.3496, allocations: 384 kB / 450.7 MB, free: 7.93 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005409/0.3501, allocations: 420 kB / 451.1 MB, free: 7.52 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004572/0.3506, allocations: 0.7086 MB / 451.8 MB, free: 6.809 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001416/0.352, allocations: 1.606 MB / 453.4 MB, free: 5.195 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004105/0.3561, allocations: 4.505 MB / 457.9 MB, free: 0.6758 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.472e-06/0.3562, allocations: 0 / 457.9 MB, free: 0.6758 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.3562, allocations: 4 kB / 457.9 MB, free: 0.6719 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.584e-05/0.3563, allocations: 0 / 457.9 MB, free: 0.6719 MB / 366.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.005393/0.3617, allocations: 3.051 MB / 461 MB, free: 13.56 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.321e-05/0.3617, allocations: 12.03 kB / 461 MB, free: 13.55 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009514/0.3627, allocations: 361.2 kB / 461.3 MB, free: 13.19 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002433/0.3651, allocations: 1.497 MB / 462.8 MB, free: 11.64 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001412/0.3653, allocations: 193.5 kB / 463 MB, free: 11.45 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003256/0.3656, allocations: 267.8 kB / 463.3 MB, free: 11.18 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004003/0.3696, allocations: 2.457 MB / 465.8 MB, free: 8.613 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.599e-05/0.3697, allocations: 11.89 kB / 465.8 MB, free: 8.602 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001859/0.3699, allocations: 104 kB / 465.9 MB, free: 8.5 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.468e-05/0.37, allocations: 64 kB / 465.9 MB, free: 8.438 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003129/0.3731, allocations: 1.658 MB / 467.6 MB, free: 6.766 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01294/0.386, allocations: 10.19 MB / 477.8 MB, free: 12.07 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001732/0.3878, allocations: 0.8511 MB / 478.6 MB, free: 11.19 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001014/0.3888, allocations: 0.4996 MB / 479.1 MB, free: 10.69 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.281e-05/0.3889, allocations: 9 kB / 479.1 MB, free: 10.68 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.516e-05/0.389, allocations: 51.5 kB / 479.2 MB, free: 10.62 MB / 398.1 MB Notification: Performance of pre-optimization done (n=83): time 3.307e-06/0.389, allocations: 0 / 479.2 MB, free: 10.62 MB / 398.1 MB Notification: Performance of matching and sorting (n=89): time 0.005462/0.3944, allocations: 2.668 MB / 481.9 MB, free: 7.895 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.429e-05/0.3945, allocations: 115.8 kB / 482 MB, free: 7.754 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002465/0.397, allocations: 1.565 MB / 483.5 MB, free: 6.188 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.725e-05/0.3971, allocations: 45.64 kB / 483.6 MB, free: 6.137 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009601/0.398, allocations: 1.292 MB / 484.9 MB, free: 4.828 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002922/0.3984, allocations: 331.4 kB / 485.2 MB, free: 4.5 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004575/0.3988, allocations: 307.2 kB / 485.5 MB, free: 4.191 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000105/0.3989, allocations: 301.1 kB / 485.8 MB, free: 3.895 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008553/0.3998, allocations: 420.6 kB / 486.2 MB, free: 3.48 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001251/0.4011, allocations: 1.112 MB / 487.3 MB, free: 2.035 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002169/0.4032, allocations: 1.612 MB / 488.9 MB, free: 96 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.491e-05/0.4033, allocations: 8 kB / 488.9 MB, free: 88 kB / 398.1 MB Notification: Performance of matching and sorting (n=213) (initialization): time 0.003148/0.4064, allocations: 1.677 MB / 490.6 MB, free: 14.4 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.091e-05/0.4065, allocations: 16 kB / 490.6 MB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.302e-05/0.4065, allocations: 27.94 kB / 490.7 MB, free: 14.36 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001932/0.4067, allocations: 52.84 kB / 490.7 MB, free: 14.3 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00124/0.4079, allocations: 395.3 kB / 491.1 MB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001184/0.4091, allocations: 1.438 MB / 492.5 MB, free: 12.34 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001201/0.4104, allocations: 83.86 kB / 492.6 MB, free: 12.26 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000112/0.4105, allocations: 84 kB / 492.7 MB, free: 12.18 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001429/0.4119, allocations: 0.746 MB / 493.4 MB, free: 11.43 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001213/0.4131, allocations: 1.084 MB / 494.5 MB, free: 10.01 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002051/0.4152, allocations: 1.557 MB / 496.1 MB, free: 8.121 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.746e-05/0.4152, allocations: 11.94 kB / 496.1 MB, free: 8.109 MB / 414.1 MB Notification: Performance of matching and sorting (n=213) (initialization_lambda0): time 0.002871/0.4181, allocations: 1.629 MB / 497.7 MB, free: 6.473 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.289e-05/0.4182, allocations: 16.72 kB / 497.7 MB, free: 6.457 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.024e-05/0.4182, allocations: 24 kB / 497.8 MB, free: 6.434 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001348/0.4183, allocations: 60.84 kB / 497.8 MB, free: 6.371 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001166/0.4195, allocations: 379.4 kB / 498.2 MB, free: 6 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009766/0.4205, allocations: 1.421 MB / 499.6 MB, free: 4.434 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001215/0.4217, allocations: 80 kB / 499.7 MB, free: 4.355 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001093/0.4218, allocations: 80 kB / 499.8 MB, free: 4.277 MB / 414.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.0003202/0.4222, allocations: 299.6 kB / 0.4883 GB, free: 3.977 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003322/0.4225, allocations: 177.8 kB / 0.4885 GB, free: 3.801 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001849/0.4244, allocations: 0.9108 MB / 0.4894 GB, free: 2.879 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.985e-06/0.4244, allocations: 8 kB / 0.4894 GB, free: 2.871 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.4244, allocations: 0 / 0.4894 GB, free: 2.871 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.024e-05/0.4244, allocations: 3.984 kB / 0.4894 GB, free: 2.867 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005188/0.4296, allocations: 2.886 MB / 0.4922 GB, free: 15.86 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.145e-06/0.4296, allocations: 8.062 kB / 0.4922 GB, free: 15.86 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008253/0.4305, allocations: 179.8 kB / 0.4924 GB, free: 15.68 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001168/0.4306, allocations: 28.84 kB / 0.4924 GB, free: 15.65 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.028e-05/0.4307, allocations: 24 kB / 0.4925 GB, free: 15.62 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009331/0.4316, allocations: 1.382 MB / 0.4938 GB, free: 14.11 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.761e-06/0.4316, allocations: 7.938 kB / 0.4938 GB, free: 14.1 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002435/0.4341, allocations: 1.459 MB / 0.4952 GB, free: 12.58 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008468/0.4349, allocations: 326.8 kB / 0.4956 GB, free: 12.24 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000315/0.4353, allocations: 23.98 kB / 0.4956 GB, free: 12.21 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008655/0.4362, allocations: 55.95 kB / 0.4956 GB, free: 12.16 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001354/0.4363, allocations: 72.45 kB / 0.4957 GB, free: 12.09 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.371e-05/0.4364, allocations: 24 kB / 0.4957 GB, free: 12.07 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001736/0.4381, allocations: 1.028 MB / 0.4967 GB, free: 11.05 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4381, allocations: 0 / 0.4967 GB, free: 11.05 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002866/0.441, allocations: 0.7617 MB / 0.4975 GB, free: 10.29 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.0002772/0.4413, allocations: 149.3 kB / 0.4976 GB, free: 10.13 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003644/0.4449, allocations: 2.014 MB / 0.4996 GB, free: 8.098 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.424e-06/0.4449, allocations: 5 kB / 0.4996 GB, free: 8.094 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009026/0.4459, allocations: 0.51 MB / 0.5001 GB, free: 7.566 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001917/0.4478, allocations: 459 kB / 0.5005 GB, free: 7.133 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007346/0.4551, allocations: 3.893 MB / 0.5043 GB, free: 3.168 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001368/0.4565, allocations: 1.475 MB / 0.5058 GB, free: 1.656 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001156/0.4577, allocations: 246.3 kB / 0.506 GB, free: 1.41 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002981/0.458, allocations: 107.4 kB / 0.5061 GB, free: 1.305 MB / 430.1 MB Notification: Performance of SimCode: time 5.81e-07/0.458, allocations: 0 / 0.5061 GB, free: 1.305 MB / 430.1 MB Notification: Performance of Templates: time 0.03823/0.4963, allocations: 20.07 MB / 0.5257 GB, free: 13.41 MB / 462.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)