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.001583/0.001583, allocations: 114.5 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001969/0.001969, allocations: 210 kB / 19.4 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.786/1.786, allocations: 227.4 MB / 247.6 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002146/0.002146, allocations: 59.91 kB / 359.4 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.373/0.3752, allocations: 50.53 MB / 409.9 MB, free: 1.602 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive): time 0.0269/0.4021, allocations: 23.4 MB / 433.3 MB, free: 10.1 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01345/0.4156, allocations: 6.843 MB / 440.2 MB, free: 3.238 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005043/0.4207, allocations: 99.69 kB / 440.3 MB, free: 3.141 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002989/0.4237, allocations: 0.8103 MB / 441.1 MB, free: 2.324 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003471/0.4272, allocations: 0.8754 MB / 442 MB, free: 1.441 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002401/0.4296, allocations: 0.8115 MB / 442.8 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005521/0.4352, allocations: 3.464 MB / 446.2 MB, free: 13.15 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003523/0.4387, allocations: 1.974 MB / 448.2 MB, free: 11.11 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002125/0.4409, allocations: 1.304 MB / 449.5 MB, free: 9.805 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002192/0.4431, allocations: 1.404 MB / 450.9 MB, free: 8.395 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009596/0.444, allocations: 384 kB / 451.3 MB, free: 8.02 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001363/0.4454, allocations: 420 kB / 451.7 MB, free: 7.609 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008918/0.4463, allocations: 0.7086 MB / 452.4 MB, free: 6.898 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002473/0.4488, allocations: 1.61 MB / 454 MB, free: 5.281 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006239/0.4551, allocations: 4.505 MB / 458.5 MB, free: 0.7617 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.4551, allocations: 0 / 458.5 MB, free: 0.7617 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.4551, allocations: 4 kB / 458.5 MB, free: 0.7578 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001842/0.4553, allocations: 0 / 458.5 MB, free: 0.7578 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.007288/0.4626, allocations: 3.051 MB / 461.6 MB, free: 13.64 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.391e-05/0.4627, allocations: 16.03 kB / 461.6 MB, free: 13.63 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009731/0.4636, allocations: 361.2 kB / 461.9 MB, free: 13.27 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002468/0.4661, allocations: 1.493 MB / 463.4 MB, free: 11.72 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001422/0.4663, allocations: 193.5 kB / 463.6 MB, free: 11.53 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003576/0.4666, allocations: 267.8 kB / 463.9 MB, free: 11.27 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004279/0.4709, allocations: 2.457 MB / 466.3 MB, free: 8.699 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.025e-05/0.471, allocations: 11.84 kB / 466.4 MB, free: 8.688 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000192/0.4712, allocations: 112 kB / 466.5 MB, free: 8.578 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.204e-05/0.4713, allocations: 64 kB / 466.5 MB, free: 8.516 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003276/0.4746, allocations: 1.654 MB / 468.2 MB, free: 6.848 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01369/0.4883, allocations: 10.19 MB / 478.4 MB, free: 12.15 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001764/0.4901, allocations: 0.8549 MB / 479.2 MB, free: 11.27 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001027/0.4911, allocations: 0.5002 MB / 479.7 MB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.629e-05/0.4912, allocations: 12.98 kB / 479.7 MB, free: 10.75 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.601e-05/0.4912, allocations: 39.56 kB / 479.8 MB, free: 10.7 MB / 398.1 MB Notification: Performance of pre-optimization done (n=83): time 2.615e-06/0.4912, allocations: 0 / 479.8 MB, free: 10.7 MB / 398.1 MB Notification: Performance of matching and sorting (n=89): time 0.005384/0.4966, allocations: 2.671 MB / 482.5 MB, free: 7.977 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.772e-05/0.4967, allocations: 127.6 kB / 482.6 MB, free: 7.824 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002459/0.4992, allocations: 1.565 MB / 484.1 MB, free: 6.258 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.461e-05/0.4993, allocations: 45.7 kB / 484.2 MB, free: 6.207 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009932/0.5003, allocations: 1.288 MB / 485.5 MB, free: 4.902 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003347/0.5007, allocations: 331.4 kB / 485.8 MB, free: 4.574 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000466/0.5011, allocations: 307.2 kB / 486.1 MB, free: 4.266 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001464/0.5013, allocations: 301.1 kB / 486.4 MB, free: 3.969 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008788/0.5022, allocations: 420.6 kB / 486.8 MB, free: 3.555 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001526/0.5037, allocations: 1.108 MB / 487.9 MB, free: 2.113 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002295/0.506, allocations: 1.608 MB / 489.5 MB, free: 180 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.395e-05/0.506, allocations: 8 kB / 489.5 MB, free: 172 kB / 398.1 MB Notification: Performance of matching and sorting (n=213) (initialization): time 0.002984/0.509, allocations: 1.677 MB / 491.2 MB, free: 14.48 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.761e-05/0.5091, allocations: 16 kB / 491.2 MB, free: 14.46 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.605e-05/0.5091, allocations: 31.97 kB / 491.3 MB, free: 14.43 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001836/0.5093, allocations: 56.78 kB / 491.3 MB, free: 14.37 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001216/0.5105, allocations: 395.4 kB / 491.7 MB, free: 13.98 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001097/0.5116, allocations: 1.426 MB / 493.1 MB, free: 12.42 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001173/0.5128, allocations: 92.02 kB / 493.2 MB, free: 12.33 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.69e-05/0.5129, allocations: 80 kB / 493.3 MB, free: 12.25 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001444/0.5144, allocations: 0.7421 MB / 494 MB, free: 11.51 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001191/0.5156, allocations: 1.08 MB / 495.1 MB, free: 10.1 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002019/0.5176, allocations: 1.561 MB / 496.7 MB, free: 8.203 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.154e-05/0.5176, allocations: 4 kB / 496.7 MB, free: 8.199 MB / 414.1 MB Notification: Performance of matching and sorting (n=213) (initialization_lambda0): time 0.002791/0.5204, allocations: 1.633 MB / 498.3 MB, free: 6.559 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.151e-05/0.5205, allocations: 16 kB / 498.3 MB, free: 6.543 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.308e-05/0.5205, allocations: 24 kB / 498.3 MB, free: 6.52 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001283/0.5207, allocations: 57.5 kB / 498.4 MB, free: 6.461 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001175/0.5218, allocations: 387.3 kB / 498.8 MB, free: 6.082 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001055/0.5229, allocations: 1.425 MB / 0.4885 GB, free: 4.512 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001161/0.5241, allocations: 75.88 kB / 0.4886 GB, free: 4.438 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.06e-05/0.5242, allocations: 80.16 kB / 0.4886 GB, free: 4.359 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.0003395/0.5245, allocations: 307.6 kB / 0.4889 GB, free: 4.051 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002337/0.5248, allocations: 177.8 kB / 0.4891 GB, free: 3.875 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00184/0.5266, allocations: 0.9108 MB / 0.49 GB, free: 2.953 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.538e-06/0.5266, allocations: 8 kB / 0.49 GB, free: 2.945 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.5266, allocations: 0 / 0.49 GB, free: 2.945 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.899e-06/0.5267, allocations: 3.984 kB / 0.49 GB, free: 2.941 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004809/0.5315, allocations: 2.886 MB / 0.4928 GB, free: 15.95 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.574e-06/0.5315, allocations: 4 kB / 0.4928 GB, free: 15.94 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008237/0.5323, allocations: 184.2 kB / 0.493 GB, free: 15.76 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001041/0.5325, allocations: 28.84 kB / 0.493 GB, free: 15.73 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.015e-05/0.5325, allocations: 28 kB / 0.493 GB, free: 15.7 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001028/0.5336, allocations: 1.39 MB / 0.4944 GB, free: 14.18 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/0.5336, allocations: 4 kB / 0.4944 GB, free: 14.17 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0025/0.5361, allocations: 1.455 MB / 0.4958 GB, free: 12.66 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006118/0.5367, allocations: 322.8 kB / 0.4961 GB, free: 12.32 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001676/0.5369, allocations: 28 kB / 0.4962 GB, free: 12.29 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006765/0.5376, allocations: 59.94 kB / 0.4962 GB, free: 12.23 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001305/0.5377, allocations: 64.45 kB / 0.4963 GB, free: 12.17 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.102e-05/0.5378, allocations: 28 kB / 0.4963 GB, free: 12.14 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001451/0.5392, allocations: 1.028 MB / 0.4973 GB, free: 11.12 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.5392, allocations: 0 / 0.4973 GB, free: 11.12 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002299/0.5415, allocations: 0.7656 MB / 0.4981 GB, free: 10.36 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.0003351/0.5419, allocations: 137.3 kB / 0.4982 GB, free: 10.21 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00367/0.5456, allocations: 2.029 MB / 0.5002 GB, free: 8.168 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.951e-06/0.5456, allocations: 1.938 kB / 0.5002 GB, free: 8.168 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008786/0.5465, allocations: 0.5146 MB / 0.5007 GB, free: 7.637 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001926/0.5484, allocations: 450.2 kB / 0.5011 GB, free: 7.215 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006712/0.5551, allocations: 3.938 MB / 0.505 GB, free: 3.191 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001062/0.5562, allocations: 1.475 MB / 0.5064 GB, free: 1.68 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004305/0.5567, allocations: 115.4 kB / 0.5065 GB, free: 1.566 MB / 430.1 MB Notification: Performance of SimCode: time 7.01e-07/0.5567, allocations: 4 kB / 0.5065 GB, free: 1.562 MB / 430.1 MB Notification: Performance of Templates: time 0.3778/0.9345, allocations: 36.56 MB / 0.5422 GB, free: 125.4 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)