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.0008849/0.000885, allocations: 93.48 kB / 18 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001028/0.001029, allocations: 202.5 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.3/1.3, allocations: 227.7 MB / 247.5 MB, free: 11.04 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00024/0.0002399, allocations: 8 kB / 308.4 MB, free: 0.7539 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09646/0.09672, allocations: 51.52 MB / 359.9 MB, free: 13.23 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive): time 0.1937/0.2904, allocations: 22.17 MB / 382.1 MB, free: 8.684 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01125/0.3017, allocations: 6.626 MB / 388.7 MB, free: 5.293 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003467/0.3052, allocations: 100 kB / 388.8 MB, free: 5.27 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002259/0.3075, allocations: 0.6766 MB / 389.5 MB, free: 4.953 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002559/0.3101, allocations: 0.727 MB / 390.2 MB, free: 4.43 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001449/0.3115, allocations: 0.7105 MB / 390.9 MB, free: 3.914 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00379/0.3153, allocations: 3.248 MB / 394.2 MB, free: 2.207 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002205/0.3175, allocations: 1.699 MB / 395.9 MB, free: 1.297 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001764/0.3193, allocations: 1.003 MB / 396.9 MB, free: 0.8125 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00124/0.3206, allocations: 1.141 MB / 398 MB, free: 228 kB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002752/0.3208, allocations: 154.5 kB / 398.2 MB, free: 228 kB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005318/0.3214, allocations: 195.8 kB / 398.4 MB, free: 216 kB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000309/0.3217, allocations: 468.7 kB / 398.8 MB, free: 15.91 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001261/0.323, allocations: 1.358 MB / 400.2 MB, free: 15.04 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003117/0.3261, allocations: 3.578 MB / 403.7 MB, free: 12.36 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.3261, allocations: 0 / 403.7 MB, free: 12.36 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.983e-06/0.3261, allocations: 1.5 kB / 403.7 MB, free: 12.36 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.267e-05/0.3262, allocations: 4 kB / 403.8 MB, free: 12.35 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.004954/0.3312, allocations: 2.578 MB / 406.3 MB, free: 10.54 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.894e-05/0.3312, allocations: 8.969 kB / 406.3 MB, free: 10.54 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009522/0.3322, allocations: 374.3 kB / 406.7 MB, free: 10.36 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002172/0.3344, allocations: 1.452 MB / 408.2 MB, free: 9.195 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001288/0.3345, allocations: 194.6 kB / 408.3 MB, free: 9.105 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002979/0.3348, allocations: 266.9 kB / 408.6 MB, free: 9.012 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004103/0.3389, allocations: 2.48 MB / 411.1 MB, free: 7.473 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.312e-05/0.339, allocations: 15.08 kB / 411.1 MB, free: 7.461 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001946/0.3392, allocations: 107 kB / 411.2 MB, free: 7.379 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.438e-05/0.3392, allocations: 64.56 kB / 411.3 MB, free: 7.379 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003332/0.3426, allocations: 1.697 MB / 413 MB, free: 6.059 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01255/0.3551, allocations: 10.37 MB / 423.3 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001679/0.3568, allocations: 0.8787 MB / 424.2 MB, free: 10.27 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009713/0.3578, allocations: 0.5035 MB / 424.7 MB, free: 9.77 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.559e-05/0.3579, allocations: 9 kB / 424.7 MB, free: 9.762 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.987e-05/0.3579, allocations: 47.55 kB / 424.8 MB, free: 9.703 MB / 334.1 MB Notification: Performance of pre-optimization done (n=83): time 2.174e-06/0.3579, allocations: 0 / 424.8 MB, free: 9.703 MB / 334.1 MB Notification: Performance of matching and sorting (n=89): time 0.004995/0.3629, allocations: 2.765 MB / 427.5 MB, free: 6.875 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.57e-05/0.363, allocations: 119.8 kB / 427.7 MB, free: 6.734 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001892/0.3649, allocations: 1.569 MB / 429.2 MB, free: 5.164 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.799e-05/0.365, allocations: 45.64 kB / 429.3 MB, free: 5.113 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007831/0.3658, allocations: 1.289 MB / 430.6 MB, free: 3.809 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002462/0.366, allocations: 327.4 kB / 430.9 MB, free: 3.484 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001488/0.3662, allocations: 141.6 kB / 431 MB, free: 3.34 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 8.691e-05/0.3663, allocations: 301.1 kB / 431.3 MB, free: 3.043 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008097/0.3671, allocations: 431.8 kB / 431.7 MB, free: 2.621 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001265/0.3683, allocations: 1.131 MB / 432.9 MB, free: 1.156 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002149/0.3705, allocations: 1.65 MB / 434.5 MB, free: 15.18 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.151e-05/0.3705, allocations: 12 kB / 434.5 MB, free: 15.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=213) (initialization): time 0.002924/0.3735, allocations: 1.719 MB / 436.2 MB, free: 13.43 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004917/0.374, allocations: 0.7754 MB / 437 MB, free: 12.33 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.586e-05/0.374, allocations: 28 kB / 437 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001768/0.3742, allocations: 60.78 kB / 437.1 MB, free: 12.24 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001218/0.3754, allocations: 403.4 kB / 437.5 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009838/0.3764, allocations: 1.33 MB / 438.8 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001231/0.3777, allocations: 96.03 kB / 438.9 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001039/0.3778, allocations: 87.98 kB / 439 MB, free: 10.2 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.532e-06/0.3778, allocations: 4 kB / 439 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002302/0.3801, allocations: 1.47 MB / 440.5 MB, free: 8.723 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.619e-05/0.3801, allocations: 27.98 kB / 440.5 MB, free: 8.695 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001093/0.3803, allocations: 52.84 kB / 440.6 MB, free: 8.641 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001172/0.3814, allocations: 399.8 kB / 441 MB, free: 8.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008713/0.3823, allocations: 1.323 MB / 442.3 MB, free: 6.793 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001154/0.3835, allocations: 75.97 kB / 442.4 MB, free: 6.719 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.686e-05/0.3836, allocations: 80 kB / 442.4 MB, free: 6.641 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.0009912/0.3846, allocations: 0.5668 MB / 443 MB, free: 6.062 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002207/0.3848, allocations: 173.8 kB / 443.2 MB, free: 5.891 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001826/0.3867, allocations: 0.9423 MB / 444.1 MB, free: 4.934 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.037e-06/0.3867, allocations: 11.94 kB / 444.1 MB, free: 4.922 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.3867, allocations: 3.938 kB / 444.1 MB, free: 4.918 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.718e-06/0.3867, allocations: 3.984 kB / 444.1 MB, free: 4.914 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004424/0.3911, allocations: 2.926 MB / 447.1 MB, free: 1.883 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.073e-06/0.3912, allocations: 4 kB / 447.1 MB, free: 1.879 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008547/0.392, allocations: 196.1 kB / 447.2 MB, free: 1.688 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001051/0.3921, allocations: 40.72 kB / 447.3 MB, free: 1.645 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.739e-05/0.3922, allocations: 24 kB / 447.3 MB, free: 1.621 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008369/0.393, allocations: 1.281 MB / 448.6 MB, free: 212 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.45e-06/0.3931, allocations: 4 kB / 448.6 MB, free: 208 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002541/0.3956, allocations: 1.508 MB / 450.1 MB, free: 14.63 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005844/0.3962, allocations: 330.8 kB / 450.4 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001863/0.3964, allocations: 27.94 kB / 450.5 MB, free: 14.26 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007358/0.3972, allocations: 67.95 kB / 450.5 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001228/0.3973, allocations: 68.44 kB / 450.6 MB, free: 14.13 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.407e-05/0.3973, allocations: 24 kB / 450.6 MB, free: 14.11 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001505/0.3988, allocations: 1.031 MB / 451.6 MB, free: 13.08 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3989, allocations: 0 / 451.6 MB, free: 13.08 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00241/0.4013, allocations: 0.7696 MB / 452.4 MB, free: 12.31 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.0002902/0.4016, allocations: 141.2 kB / 452.6 MB, free: 12.17 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003617/0.4052, allocations: 2.063 MB / 454.6 MB, free: 10.09 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.496e-06/0.4052, allocations: 12.12 kB / 454.6 MB, free: 10.07 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008997/0.4061, allocations: 0.5342 MB / 455.2 MB, free: 9.531 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002845/0.409, allocations: 421.7 kB / 455.6 MB, free: 9.129 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006665/0.4157, allocations: 5.18 MB / 460.8 MB, free: 3.867 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009789/0.4167, allocations: 1.479 MB / 462.2 MB, free: 2.355 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003307/0.417, allocations: 119.4 kB / 462.3 MB, free: 2.238 MB / 366.1 MB Notification: Performance of SimCode: time 4.51e-07/0.417, allocations: 0 / 462.3 MB, free: 2.238 MB / 366.1 MB Notification: Performance of Templates: time 0.04053/0.4575, allocations: 35.62 MB / 498 MB, free: 14.64 MB / 414.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)