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.001588/0.001588, allocations: 115.9 kB / 18.41 MB, free: 4.711 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001825/0.001826, allocations: 199.5 kB / 19.36 MB, free: 3.77 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.375/1.375, allocations: 227.4 MB / 247.5 MB, free: 10.39 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001152/0.001153, allocations: 56.28 kB / 308.4 MB, free: 15.9 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0847/0.08587, allocations: 50.53 MB / 358.9 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive): time 0.1689/0.2548, allocations: 23.4 MB / 382.3 MB, free: 9.191 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01143/0.2662, allocations: 6.839 MB / 389.2 MB, free: 4.766 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003803/0.2701, allocations: 103.1 kB / 389.3 MB, free: 4.742 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002239/0.2724, allocations: 0.8042 MB / 390.1 MB, free: 4.305 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002663/0.2751, allocations: 0.8731 MB / 390.9 MB, free: 3.656 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001817/0.2769, allocations: 0.8039 MB / 391.7 MB, free: 3.125 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004127/0.281, allocations: 3.471 MB / 395.2 MB, free: 1.25 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002178/0.2832, allocations: 1.972 MB / 397.2 MB, free: 244 kB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001731/0.285, allocations: 1.293 MB / 398.5 MB, free: 15.52 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001457/0.2864, allocations: 1.402 MB / 399.9 MB, free: 14.73 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004466/0.2869, allocations: 379.9 kB / 400.2 MB, free: 14.73 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008528/0.2877, allocations: 425.8 kB / 400.7 MB, free: 14.72 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006875/0.2884, allocations: 0.7043 MB / 401.4 MB, free: 14.16 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001503/0.29, allocations: 1.615 MB / 403 MB, free: 12.98 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003677/0.2936, allocations: 4.497 MB / 407.5 MB, free: 9.449 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.379e-06/0.2937, allocations: 0 / 407.5 MB, free: 9.449 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.2937, allocations: 2.188 kB / 407.5 MB, free: 9.449 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.878e-05/0.2937, allocations: 0 / 407.5 MB, free: 9.449 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.00456/0.2983, allocations: 3.053 MB / 410.5 MB, free: 7.262 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.272e-05/0.2983, allocations: 8.438 kB / 410.5 MB, free: 7.262 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000814/0.2991, allocations: 370.6 kB / 410.9 MB, free: 7.086 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002084/0.3012, allocations: 1.489 MB / 412.4 MB, free: 5.902 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000128/0.3014, allocations: 195.6 kB / 412.6 MB, free: 5.812 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002951/0.3017, allocations: 268.8 kB / 412.8 MB, free: 5.715 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003577/0.3053, allocations: 2.46 MB / 415.3 MB, free: 3.246 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.473e-05/0.3053, allocations: 11.89 kB / 415.3 MB, free: 3.234 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001811/0.3055, allocations: 112 kB / 415.4 MB, free: 3.125 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.757e-05/0.3056, allocations: 67.94 kB / 415.5 MB, free: 3.059 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002945/0.3085, allocations: 1.647 MB / 417.1 MB, free: 1.398 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01094/0.3195, allocations: 10.2 MB / 427.3 MB, free: 6.691 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001632/0.3211, allocations: 0.8628 MB / 428.2 MB, free: 5.793 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009041/0.322, allocations: 492.3 kB / 428.7 MB, free: 5.312 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.776e-05/0.3221, allocations: 9 kB / 428.7 MB, free: 5.305 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.898e-05/0.3222, allocations: 51.55 kB / 428.7 MB, free: 5.242 MB / 334.1 MB Notification: Performance of pre-optimization done (n=83): time 2.345e-06/0.3222, allocations: 0 / 428.7 MB, free: 5.242 MB / 334.1 MB Notification: Performance of matching and sorting (n=89): time 0.004578/0.3268, allocations: 2.671 MB / 431.4 MB, free: 2.516 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.757e-05/0.3268, allocations: 119.8 kB / 431.5 MB, free: 2.375 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001878/0.3287, allocations: 1.565 MB / 433.1 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.35e-05/0.3288, allocations: 41.7 kB / 433.1 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007826/0.3296, allocations: 1.289 MB / 434.4 MB, free: 15.46 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002213/0.3298, allocations: 331.4 kB / 434.7 MB, free: 15.13 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000364/0.3302, allocations: 303.2 kB / 435 MB, free: 14.83 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.298e-05/0.3303, allocations: 301.1 kB / 435.3 MB, free: 14.53 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007873/0.331, allocations: 424.6 kB / 435.7 MB, free: 14.11 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001206/0.3323, allocations: 1.108 MB / 436.9 MB, free: 12.67 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001997/0.3343, allocations: 1.607 MB / 438.5 MB, free: 10.73 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.045e-05/0.3343, allocations: 8 kB / 438.5 MB, free: 10.72 MB / 350.1 MB Notification: Performance of matching and sorting (n=213) (initialization): time 0.002623/0.3369, allocations: 1.684 MB / 440.2 MB, free: 9.031 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.24e-05/0.337, allocations: 12.72 kB / 440.2 MB, free: 9.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.282e-05/0.337, allocations: 31.92 kB / 440.2 MB, free: 8.988 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001663/0.3372, allocations: 60.84 kB / 440.3 MB, free: 8.926 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001217/0.3384, allocations: 399.3 kB / 440.6 MB, free: 8.535 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009892/0.3394, allocations: 1.418 MB / 442.1 MB, free: 6.977 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001075/0.3405, allocations: 84.03 kB / 442.1 MB, free: 6.895 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.71e-05/0.3406, allocations: 83.98 kB / 442.2 MB, free: 6.812 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001289/0.3419, allocations: 0.7421 MB / 443 MB, free: 6.066 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001129/0.343, allocations: 1.088 MB / 444.1 MB, free: 4.648 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001881/0.3449, allocations: 1.557 MB / 445.6 MB, free: 2.762 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.769e-06/0.3449, allocations: 8 kB / 445.6 MB, free: 2.754 MB / 350.1 MB Notification: Performance of matching and sorting (n=213) (initialization_lambda0): time 0.002527/0.3475, allocations: 1.629 MB / 447.3 MB, free: 1.113 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.99e-05/0.3475, allocations: 16 kB / 447.3 MB, free: 1.098 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.998e-05/0.3475, allocations: 24 kB / 447.3 MB, free: 1.074 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001132/0.3476, allocations: 57.41 kB / 447.3 MB, free: 1.016 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001168/0.3488, allocations: 391.3 kB / 447.7 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00102/0.3499, allocations: 1.429 MB / 449.2 MB, free: 15.06 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001069/0.3509, allocations: 71.97 kB / 449.2 MB, free: 14.99 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.091e-05/0.351, allocations: 80 kB / 449.3 MB, free: 14.91 MB / 366.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.0002696/0.3513, allocations: 301.7 kB / 449.6 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002028/0.3515, allocations: 177.8 kB / 449.8 MB, free: 14.44 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001678/0.3532, allocations: 0.9069 MB / 450.7 MB, free: 13.51 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.004e-05/0.3532, allocations: 15.98 kB / 450.7 MB, free: 13.49 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.006e-06/0.3532, allocations: 3.938 kB / 450.7 MB, free: 13.49 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.288e-06/0.3532, allocations: 3.984 kB / 450.7 MB, free: 13.48 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004065/0.3573, allocations: 2.882 MB / 453.6 MB, free: 10.5 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.162e-06/0.3573, allocations: 4 kB / 453.6 MB, free: 10.49 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008311/0.3582, allocations: 188.2 kB / 453.8 MB, free: 10.31 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.52e-05/0.3583, allocations: 24.86 kB / 453.8 MB, free: 10.28 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.313e-05/0.3583, allocations: 23.98 kB / 453.8 MB, free: 10.26 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008518/0.3592, allocations: 1.39 MB / 455.2 MB, free: 8.727 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.16e-06/0.3592, allocations: 7.984 kB / 455.2 MB, free: 8.719 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002181/0.3614, allocations: 1.439 MB / 456.7 MB, free: 7.219 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004717/0.3619, allocations: 326.8 kB / 457 MB, free: 6.879 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000182/0.3621, allocations: 24 kB / 457 MB, free: 6.855 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006999/0.3628, allocations: 59.89 kB / 457.1 MB, free: 6.797 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001296/0.3629, allocations: 64.5 kB / 457.1 MB, free: 6.73 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.942e-05/0.363, allocations: 32 kB / 457.2 MB, free: 6.699 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001303/0.3643, allocations: 1.028 MB / 458.2 MB, free: 5.68 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3643, allocations: 0 / 458.2 MB, free: 5.68 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00209/0.3664, allocations: 0.7617 MB / 458.9 MB, free: 4.918 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.0002283/0.3666, allocations: 157.2 kB / 459.1 MB, free: 4.758 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003132/0.3698, allocations: 2.014 MB / 461.1 MB, free: 2.727 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/0.3698, allocations: 1.875 kB / 461.1 MB, free: 2.727 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008338/0.3706, allocations: 0.5225 MB / 461.6 MB, free: 2.191 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001643/0.3723, allocations: 452.6 kB / 462.1 MB, free: 1.777 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005527/0.3778, allocations: 3.902 MB / 466 MB, free: 13.79 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009813/0.3788, allocations: 1.475 MB / 467.5 MB, free: 12.29 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008682/0.3797, allocations: 238.3 kB / 467.7 MB, free: 12.05 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002554/0.38, allocations: 111.4 kB / 467.8 MB, free: 11.94 MB / 382.1 MB Notification: Performance of SimCode: time 4.41e-07/0.38, allocations: 0 / 467.8 MB, free: 11.94 MB / 382.1 MB Notification: Performance of Templates: time 0.03289/0.4129, allocations: 19.67 MB / 487.5 MB, free: 8.434 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 -s gbode -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.pipe 2>&1)