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.001828/0.001828, allocations: 121.6 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002188/0.002188, allocations: 203.9 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.394/1.394, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001244/0.001244, allocations: 63.89 kB / 358.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.257/0.2583, allocations: 50.54 MB / 409.3 MB, free: 1.602 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive): time 0.02179/0.2801, allocations: 23.41 MB / 432.7 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01269/0.2928, allocations: 6.827 MB / 439.5 MB, free: 3.246 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004129/0.297, allocations: 99.62 kB / 439.6 MB, free: 3.148 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002509/0.2996, allocations: 0.8454 MB / 440.4 MB, free: 2.297 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002945/0.3025, allocations: 0.9224 MB / 441.4 MB, free: 1.367 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001581/0.3041, allocations: 0.8115 MB / 442.2 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003996/0.3081, allocations: 3.472 MB / 445.6 MB, free: 13.07 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002252/0.3104, allocations: 1.973 MB / 447.6 MB, free: 11.04 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001546/0.3119, allocations: 1.308 MB / 448.9 MB, free: 9.723 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001292/0.3132, allocations: 1.408 MB / 450.3 MB, free: 8.309 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003899/0.3136, allocations: 380 kB / 450.7 MB, free: 7.938 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005408/0.3142, allocations: 420 kB / 451.1 MB, free: 7.527 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004579/0.3147, allocations: 0.7047 MB / 451.8 MB, free: 6.82 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001309/0.316, allocations: 1.606 MB / 453.4 MB, free: 5.207 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003702/0.3197, allocations: 4.508 MB / 457.9 MB, free: 0.6836 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.344e-06/0.3197, allocations: 0 / 457.9 MB, free: 0.6836 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.3197, allocations: 3.938 kB / 457.9 MB, free: 0.6797 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.293e-05/0.3198, allocations: 3.938 kB / 457.9 MB, free: 0.6758 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.004861/0.3246, allocations: 3.055 MB / 461 MB, free: 13.56 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.376e-05/0.3247, allocations: 8.031 kB / 461 MB, free: 13.55 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008767/0.3256, allocations: 361.2 kB / 461.3 MB, free: 13.2 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002136/0.3277, allocations: 1.497 MB / 462.8 MB, free: 11.64 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001243/0.3279, allocations: 197.5 kB / 463 MB, free: 11.45 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003024/0.3282, allocations: 267.8 kB / 463.3 MB, free: 11.18 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004/0.3322, allocations: 2.469 MB / 465.8 MB, free: 8.602 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.32e-05/0.3322, allocations: 3.906 kB / 465.8 MB, free: 8.598 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001824/0.3324, allocations: 108 kB / 465.9 MB, free: 8.492 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.466e-05/0.3325, allocations: 64 kB / 465.9 MB, free: 8.43 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003103/0.3356, allocations: 1.654 MB / 467.6 MB, free: 6.762 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01303/0.3486, allocations: 10.2 MB / 477.8 MB, free: 12.06 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001866/0.3505, allocations: 0.855 MB / 478.6 MB, free: 11.18 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001029/0.3516, allocations: 0.492 MB / 479.1 MB, free: 10.69 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.966e-05/0.3516, allocations: 9 kB / 479.1 MB, free: 10.68 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.415e-05/0.3517, allocations: 47.5 kB / 479.2 MB, free: 10.62 MB / 398.1 MB Notification: Performance of pre-optimization done (n=83): time 2.866e-06/0.3517, allocations: 4 kB / 479.2 MB, free: 10.62 MB / 398.1 MB Notification: Performance of matching and sorting (n=89): time 0.005353/0.357, allocations: 2.671 MB / 481.9 MB, free: 7.887 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.746e-05/0.3571, allocations: 119.7 kB / 482 MB, free: 7.742 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002098/0.3592, allocations: 1.565 MB / 483.6 MB, free: 6.176 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.064e-05/0.3593, allocations: 41.7 kB / 483.6 MB, free: 6.129 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008096/0.3601, allocations: 1.292 MB / 484.9 MB, free: 4.82 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002266/0.3604, allocations: 327.4 kB / 485.2 MB, free: 4.496 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003713/0.3607, allocations: 307.2 kB / 485.5 MB, free: 4.188 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 8.988e-05/0.3608, allocations: 305.1 kB / 485.8 MB, free: 3.887 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008487/0.3617, allocations: 420.6 kB / 486.2 MB, free: 3.473 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00134/0.363, allocations: 1.111 MB / 487.3 MB, free: 2.027 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002567/0.3656, allocations: 1.604 MB / 488.9 MB, free: 96 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.004e-05/0.3657, allocations: 4 kB / 488.9 MB, free: 92 kB / 398.1 MB Notification: Performance of matching and sorting (n=213) (initialization): time 0.003066/0.3687, allocations: 1.677 MB / 490.6 MB, free: 14.4 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.851e-05/0.3688, allocations: 16 kB / 490.6 MB, free: 14.39 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.658e-05/0.3688, allocations: 35.98 kB / 490.7 MB, free: 14.35 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002058/0.369, allocations: 52.86 kB / 490.7 MB, free: 14.3 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001235/0.3703, allocations: 395.3 kB / 491.1 MB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001052/0.3713, allocations: 1.422 MB / 492.5 MB, free: 12.35 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001115/0.3724, allocations: 88.02 kB / 492.6 MB, free: 12.27 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.501e-05/0.3726, allocations: 84 kB / 492.7 MB, free: 12.18 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001393/0.374, allocations: 0.746 MB / 493.4 MB, free: 11.43 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001176/0.3751, allocations: 1.084 MB / 494.5 MB, free: 10.02 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001923/0.3771, allocations: 1.557 MB / 496.1 MB, free: 8.129 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.859e-06/0.3771, allocations: 11.94 kB / 496.1 MB, free: 8.117 MB / 414.1 MB Notification: Performance of matching and sorting (n=213) (initialization_lambda0): time 0.002571/0.3797, allocations: 1.637 MB / 497.7 MB, free: 6.473 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.035e-05/0.3797, allocations: 16 kB / 497.7 MB, free: 6.457 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.025e-05/0.3797, allocations: 20 kB / 497.8 MB, free: 6.438 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001131/0.3799, allocations: 57.56 kB / 497.8 MB, free: 6.379 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001172/0.381, allocations: 391.4 kB / 498.2 MB, free: 5.996 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009113/0.382, allocations: 1.421 MB / 499.6 MB, free: 4.43 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001065/0.383, allocations: 79.88 kB / 499.7 MB, free: 4.352 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.866e-05/0.3831, allocations: 84 kB / 499.8 MB, free: 4.27 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.0002952/0.3834, allocations: 295.7 kB / 0.4883 GB, free: 3.973 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000223/0.3837, allocations: 181.8 kB / 0.4885 GB, free: 3.793 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001809/0.3855, allocations: 0.9069 MB / 0.4894 GB, free: 2.875 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.404e-06/0.3855, allocations: 8 kB / 0.4894 GB, free: 2.867 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.527e-06/0.3855, allocations: 0 / 0.4894 GB, free: 2.867 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.065e-05/0.3855, allocations: 7.984 kB / 0.4894 GB, free: 2.859 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004288/0.3898, allocations: 2.878 MB / 0.4922 GB, free: 15.87 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.203e-06/0.3898, allocations: 4 kB / 0.4922 GB, free: 15.86 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008573/0.3907, allocations: 188.2 kB / 0.4924 GB, free: 15.68 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.248e-05/0.3908, allocations: 28.84 kB / 0.4924 GB, free: 15.65 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.489e-05/0.3909, allocations: 24 kB / 0.4925 GB, free: 15.62 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000881/0.3918, allocations: 1.386 MB / 0.4938 GB, free: 14.1 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.13e-06/0.3918, allocations: 7.938 kB / 0.4938 GB, free: 14.09 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002345/0.3941, allocations: 1.451 MB / 0.4952 GB, free: 12.58 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004716/0.3946, allocations: 322.8 kB / 0.4956 GB, free: 12.25 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001905/0.3948, allocations: 27.98 kB / 0.4956 GB, free: 12.22 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007512/0.3956, allocations: 55.95 kB / 0.4956 GB, free: 12.16 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001259/0.3957, allocations: 68.45 kB / 0.4957 GB, free: 12.1 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.746e-05/0.3958, allocations: 24 kB / 0.4957 GB, free: 12.07 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001371/0.3971, allocations: 1.035 MB / 0.4967 GB, free: 11.05 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3971, allocations: 0 / 0.4967 GB, free: 11.05 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002205/0.3994, allocations: 0.7578 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.0002483/0.3996, allocations: 153.2 kB / 0.4976 GB, free: 10.13 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003507/0.4031, allocations: 2.027 MB / 0.4996 GB, free: 8.086 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.4031, allocations: 0 / 0.4996 GB, free: 8.086 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009256/0.4041, allocations: 0.507 MB / 0.5001 GB, free: 7.562 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001945/0.406, allocations: 453 kB / 0.5005 GB, free: 7.137 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006887/0.4129, allocations: 3.886 MB / 0.5043 GB, free: 3.172 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00125/0.4142, allocations: 1.475 MB / 0.5058 GB, free: 1.66 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001064/0.4153, allocations: 250.3 kB / 0.506 GB, free: 1.41 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002933/0.4156, allocations: 107.4 kB / 0.5061 GB, free: 1.305 MB / 430.1 MB Notification: Performance of SimCode: time 4.41e-07/0.4156, allocations: 0 / 0.5061 GB, free: 1.305 MB / 430.1 MB Notification: Performance of Templates: time 0.03659/0.4522, 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)