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.001176/0.001176, allocations: 107.9 kB / 17.33 MB, free: 5.988 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001286/0.001286, allocations: 205.8 kB / 18.26 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.472/1.472, allocations: 227.4 MB / 246.4 MB, free: 9.078 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002303/0.002303, allocations: 60 kB / 306.5 MB, free: 0.707 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1103/0.1126, allocations: 50.53 MB / 357 MB, free: 14.18 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive): time 0.1779/0.2905, allocations: 23.1 MB / 380.1 MB, free: 9.332 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01143/0.302, allocations: 6.629 MB / 386.7 MB, free: 5.285 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003944/0.306, allocations: 98.81 kB / 386.8 MB, free: 5.266 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002276/0.3083, allocations: 0.6711 MB / 387.5 MB, free: 4.957 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002351/0.3107, allocations: 0.7386 MB / 388.2 MB, free: 4.426 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001358/0.312, allocations: 0.7065 MB / 388.9 MB, free: 3.902 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003449/0.3155, allocations: 3.462 MB / 392.4 MB, free: 2.016 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002201/0.3177, allocations: 1.967 MB / 394.4 MB, free: 1.008 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001667/0.3194, allocations: 1.292 MB / 395.7 MB, free: 304 kB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001388/0.3208, allocations: 1.408 MB / 397.1 MB, free: 15.5 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000419/0.3212, allocations: 379.7 kB / 397.4 MB, free: 15.5 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006414/0.3219, allocations: 426 kB / 397.9 MB, free: 15.48 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005096/0.3224, allocations: 0.7017 MB / 398.6 MB, free: 14.95 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001331/0.3237, allocations: 1.61 MB / 400.2 MB, free: 13.88 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004108/0.3278, allocations: 4.441 MB / 404.6 MB, free: 10.62 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.3278, allocations: 0 / 404.6 MB, free: 10.62 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.3279, allocations: 0 / 404.6 MB, free: 10.62 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.008e-05/0.3279, allocations: 0 / 404.6 MB, free: 10.62 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.005201/0.3331, allocations: 3.057 MB / 407.7 MB, free: 8.43 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.947e-05/0.3332, allocations: 10.03 kB / 407.7 MB, free: 8.43 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008725/0.3341, allocations: 369.2 kB / 408 MB, free: 8.258 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001948/0.336, allocations: 1.452 MB / 409.5 MB, free: 7.094 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001121/0.3362, allocations: 194.7 kB / 409.7 MB, free: 7.004 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002828/0.3364, allocations: 274.1 kB / 409.9 MB, free: 6.902 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003908/0.3404, allocations: 2.458 MB / 412.4 MB, free: 4.945 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.15e-05/0.3404, allocations: 15.84 kB / 412.4 MB, free: 4.93 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001957/0.3406, allocations: 108 kB / 412.5 MB, free: 4.824 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.32e-05/0.3407, allocations: 64 kB / 412.6 MB, free: 4.762 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003007/0.3437, allocations: 1.654 MB / 414.2 MB, free: 3.094 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01247/0.3562, allocations: 10.3 MB / 424.5 MB, free: 8.281 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001765/0.358, allocations: 0.8551 MB / 425.4 MB, free: 7.398 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009476/0.3589, allocations: 496.2 kB / 425.9 MB, free: 6.914 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.907e-05/0.359, allocations: 12.98 kB / 425.9 MB, free: 6.902 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.871e-05/0.359, allocations: 43.56 kB / 425.9 MB, free: 6.848 MB / 334.1 MB Notification: Performance of pre-optimization done (n=83): time 2.695e-06/0.3591, allocations: 0 / 425.9 MB, free: 6.848 MB / 334.1 MB Notification: Performance of matching and sorting (n=89): time 0.00501/0.3641, allocations: 2.665 MB / 428.6 MB, free: 4.121 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.4e-05/0.3642, allocations: 127.7 kB / 428.7 MB, free: 3.973 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001914/0.3661, allocations: 1.565 MB / 430.3 MB, free: 2.406 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.527e-05/0.3661, allocations: 41.7 kB / 430.3 MB, free: 2.359 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008362/0.367, allocations: 1.288 MB / 431.6 MB, free: 1.055 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002397/0.3672, allocations: 327.3 kB / 431.9 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003831/0.3676, allocations: 311.2 kB / 432.2 MB, free: 432 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.693e-05/0.3677, allocations: 301.1 kB / 432.5 MB, free: 128 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008031/0.3685, allocations: 424.6 kB / 433 MB, free: 15.71 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001212/0.3698, allocations: 1.104 MB / 434.1 MB, free: 14.27 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002051/0.3718, allocations: 1.619 MB / 435.7 MB, free: 12.32 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.178e-06/0.3718, allocations: 8 kB / 435.7 MB, free: 12.31 MB / 350.1 MB Notification: Performance of matching and sorting (n=213) (initialization): time 0.002609/0.3745, allocations: 1.673 MB / 437.4 MB, free: 10.63 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.377e-05/0.3745, allocations: 12 kB / 437.4 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.501e-05/0.3745, allocations: 35.95 kB / 437.4 MB, free: 10.58 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001618/0.3747, allocations: 52.86 kB / 437.5 MB, free: 10.53 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001208/0.3759, allocations: 403.3 kB / 437.8 MB, free: 10.13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001073/0.377, allocations: 1.414 MB / 439.3 MB, free: 8.578 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001237/0.3783, allocations: 87.86 kB / 439.3 MB, free: 8.492 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001679/0.3784, allocations: 80 kB / 439.4 MB, free: 8.414 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001466/0.3799, allocations: 0.746 MB / 440.2 MB, free: 7.664 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001214/0.3811, allocations: 1.088 MB / 441.3 MB, free: 6.246 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00187/0.383, allocations: 1.557 MB / 442.8 MB, free: 4.363 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.498e-06/0.383, allocations: 12 kB / 442.8 MB, free: 4.352 MB / 350.1 MB Notification: Performance of matching and sorting (n=213) (initialization_lambda0): time 0.00273/0.3858, allocations: 1.625 MB / 444.5 MB, free: 2.711 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.005e-05/0.3858, allocations: 19.94 kB / 444.5 MB, free: 2.691 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.078e-05/0.3858, allocations: 24.72 kB / 444.5 MB, free: 2.668 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000124/0.386, allocations: 56.84 kB / 444.6 MB, free: 2.609 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001126/0.3871, allocations: 387.3 kB / 444.9 MB, free: 2.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001023/0.3881, allocations: 1.425 MB / 446.4 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001093/0.3892, allocations: 76.09 kB / 446.4 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.127e-05/0.3893, allocations: 84 kB / 446.5 MB, free: 0.5078 MB / 350.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.0003125/0.3897, allocations: 302.7 kB / 446.8 MB, free: 212 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002202/0.3899, allocations: 185.8 kB / 447 MB, free: 24 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001807/0.3917, allocations: 0.9032 MB / 447.9 MB, free: 15.1 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.937e-06/0.3917, allocations: 8 kB / 447.9 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.3917, allocations: 4 kB / 447.9 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.003e-05/0.3917, allocations: 3.984 kB / 447.9 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004461/0.3962, allocations: 2.89 MB / 450.8 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.773e-06/0.3962, allocations: 4 kB / 450.8 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000876/0.3971, allocations: 179.8 kB / 451 MB, free: 11.91 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.489e-05/0.3972, allocations: 37.25 kB / 451 MB, free: 11.87 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.609e-05/0.3973, allocations: 24 kB / 451 MB, free: 11.85 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008818/0.3982, allocations: 1.382 MB / 452.4 MB, free: 10.32 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.047e-06/0.3982, allocations: 4 kB / 452.4 MB, free: 10.32 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00226/0.4005, allocations: 1.454 MB / 453.9 MB, free: 8.801 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004761/0.4009, allocations: 322.8 kB / 454.2 MB, free: 8.465 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001875/0.4011, allocations: 27.98 kB / 454.2 MB, free: 8.438 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007281/0.4019, allocations: 59.95 kB / 454.3 MB, free: 8.379 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001272/0.402, allocations: 60.52 kB / 454.3 MB, free: 8.32 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.753e-05/0.4021, allocations: 27.94 kB / 454.4 MB, free: 8.293 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001386/0.4035, allocations: 1.028 MB / 455.4 MB, free: 7.273 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.4035, allocations: 4 kB / 455.4 MB, free: 7.27 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002345/0.4058, allocations: 0.7695 MB / 456.2 MB, free: 6.5 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.0003016/0.4061, allocations: 145.3 kB / 456.3 MB, free: 6.352 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003743/0.4099, allocations: 2.053 MB / 458.4 MB, free: 4.281 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.35e-06/0.4099, allocations: 5.812 kB / 458.4 MB, free: 4.277 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009156/0.4108, allocations: 0.5147 MB / 458.9 MB, free: 3.754 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001857/0.4127, allocations: 455.5 kB / 459.3 MB, free: 3.328 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006682/0.4194, allocations: 4.988 MB / 464.3 MB, free: 14.26 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001041/0.4204, allocations: 1.479 MB / 465.8 MB, free: 12.75 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001099/0.4216, allocations: 242.2 kB / 466 MB, free: 12.51 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002615/0.4218, allocations: 107.4 kB / 466.1 MB, free: 12.4 MB / 382.1 MB Notification: Performance of SimCode: time 7.71e-07/0.4218, allocations: 0 / 466.1 MB, free: 12.4 MB / 382.1 MB Notification: Performance of Templates: time 0.03382/0.4557, allocations: 19.5 MB / 485.6 MB, free: 9.082 MB / 398.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)