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.0008948/0.0008948, allocations: 92.48 kB / 16.98 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008971/0.0008971, allocations: 199 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.379/1.379, allocations: 227.2 MB / 245.9 MB, free: 12.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002625/0.0002626, allocations: 8 kB / 306.6 MB, free: 1.625 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09863/0.09892, allocations: 51.49 MB / 358.1 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive): time 0.193/0.2919, allocations: 18.81 MB / 376.9 MB, free: 9.199 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01454/0.3065, allocations: 6.711 MB / 383.6 MB, free: 7.98 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00437/0.3109, allocations: 92.84 kB / 383.7 MB, free: 7.961 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003292/0.3142, allocations: 0.8361 MB / 384.5 MB, free: 7.645 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00606/0.3203, allocations: 1.522 MB / 386 MB, free: 7.051 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003382/0.3237, allocations: 0.9119 MB / 387 MB, free: 6.531 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004881/0.3286, allocations: 2.331 MB / 389.3 MB, free: 5.238 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002609/0.3312, allocations: 1.288 MB / 390.6 MB, free: 4.664 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001965/0.3332, allocations: 0.9397 MB / 391.5 MB, free: 4.219 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002326/0.3355, allocations: 1.08 MB / 392.6 MB, free: 3.676 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007298/0.3363, allocations: 150.6 kB / 392.7 MB, free: 3.676 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001447/0.3377, allocations: 190.9 kB / 392.9 MB, free: 3.668 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008016/0.3385, allocations: 437.6 kB / 393.4 MB, free: 3.391 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001952/0.3405, allocations: 0.571 MB / 393.9 MB, free: 3.051 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003885/0.3444, allocations: 3.542 MB / 397.5 MB, free: 472 kB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.3444, allocations: 1.344 kB / 397.5 MB, free: 472 kB / 302.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.3444, allocations: 0 / 397.5 MB, free: 472 kB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001914/0.3446, allocations: 0 / 397.5 MB, free: 472 kB / 302.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.006365/0.351, allocations: 2.604 MB / 400.1 MB, free: 14.65 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.948e-05/0.351, allocations: 10 kB / 400.1 MB, free: 14.65 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001064/0.3521, allocations: 368.8 kB / 400.4 MB, free: 14.48 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002438/0.3546, allocations: 1.43 MB / 401.9 MB, free: 13.34 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001596/0.3547, allocations: 193.7 kB / 402.1 MB, free: 13.25 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003387/0.3551, allocations: 267 kB / 402.3 MB, free: 13.15 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004438/0.3595, allocations: 2.44 MB / 404.8 MB, free: 11.61 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.886e-05/0.3596, allocations: 13.22 kB / 404.8 MB, free: 11.6 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000197/0.3598, allocations: 106.2 kB / 404.9 MB, free: 11.52 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.932e-05/0.3599, allocations: 65.31 kB / 404.9 MB, free: 11.52 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003006/0.3629, allocations: 1.674 MB / 406.6 MB, free: 10.7 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01252/0.3754, allocations: 10.33 MB / 417 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001624/0.377, allocations: 0.8747 MB / 417.8 MB, free: 15.95 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.717e-05/0.3771, allocations: 9 kB / 417.8 MB, free: 15.94 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.087e-05/0.3771, allocations: 47.55 kB / 417.9 MB, free: 15.89 MB / 334.1 MB Notification: Performance of pre-optimization done (n=83): time 2.585e-06/0.3772, allocations: 4 kB / 417.9 MB, free: 15.88 MB / 334.1 MB Notification: Performance of matching and sorting (n=89): time 0.004922/0.3821, allocations: 2.747 MB / 420.6 MB, free: 13.07 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.626e-05/0.3822, allocations: 115.8 kB / 420.7 MB, free: 12.93 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001807/0.384, allocations: 1.526 MB / 422.3 MB, free: 11.4 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.259e-05/0.384, allocations: 49.7 kB / 422.3 MB, free: 11.35 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007447/0.3848, allocations: 1.273 MB / 423.6 MB, free: 10.06 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002257/0.385, allocations: 347.2 kB / 423.9 MB, free: 9.715 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.503e-05/0.3851, allocations: 32 kB / 424 MB, free: 9.684 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000132/0.3852, allocations: 367.7 kB / 424.3 MB, free: 9.32 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007713/0.386, allocations: 423.8 kB / 424.7 MB, free: 8.906 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001136/0.3871, allocations: 1.112 MB / 425.8 MB, free: 7.461 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009497/0.3881, allocations: 0.5885 MB / 426.4 MB, free: 6.875 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.648e-06/0.3881, allocations: 8 kB / 426.4 MB, free: 6.867 MB / 334.1 MB Notification: Performance of matching and sorting (n=213) (initialization): time 0.002597/0.3907, allocations: 1.684 MB / 428.1 MB, free: 5.168 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.003015/0.3937, allocations: 9.527 MB / 437.7 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.822e-05/0.3938, allocations: 24 kB / 437.7 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001956/0.394, allocations: 52.86 kB / 437.7 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001229/0.3952, allocations: 407.3 kB / 438.1 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000987/0.3962, allocations: 1.338 MB / 439.5 MB, free: 9.168 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001332/0.3976, allocations: 104 kB / 439.6 MB, free: 9.066 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.427e-05/0.3977, allocations: 80 kB / 439.6 MB, free: 8.988 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.927e-06/0.3977, allocations: 4 kB / 439.7 MB, free: 8.984 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002187/0.3999, allocations: 1.45 MB / 441.1 MB, free: 7.535 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.735e-05/0.3999, allocations: 24 kB / 441.1 MB, free: 7.512 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001087/0.4, allocations: 68.81 kB / 441.2 MB, free: 7.441 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001105/0.4012, allocations: 383.4 kB / 441.6 MB, free: 7.066 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008489/0.402, allocations: 1.334 MB / 442.9 MB, free: 5.598 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001119/0.4031, allocations: 84.12 kB / 443 MB, free: 5.516 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.866e-05/0.4032, allocations: 84 kB / 443.1 MB, free: 5.434 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001004/0.4043, allocations: 0.5572 MB / 443.6 MB, free: 4.867 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002111/0.4045, allocations: 173.8 kB / 443.8 MB, free: 4.695 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001643/0.4061, allocations: 0.9306 MB / 444.7 MB, free: 3.746 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.307e-06/0.4061, allocations: 11.98 kB / 444.7 MB, free: 3.734 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.4062, allocations: 4 kB / 444.7 MB, free: 3.73 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.148e-05/0.4062, allocations: 7.938 kB / 444.7 MB, free: 3.723 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004257/0.4104, allocations: 2.867 MB / 447.6 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.622e-06/0.4105, allocations: 4 kB / 447.6 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007948/0.4113, allocations: 204.1 kB / 447.8 MB, free: 0.543 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.935e-05/0.4114, allocations: 28.84 kB / 447.8 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.847e-05/0.4114, allocations: 20 kB / 447.9 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008448/0.4123, allocations: 1.303 MB / 449.2 MB, free: 15.06 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.74e-06/0.4123, allocations: 7.938 kB / 449.2 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002337/0.4146, allocations: 1.701 MB / 450.9 MB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005615/0.4152, allocations: 322.8 kB / 451.2 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001761/0.4154, allocations: 20 kB / 451.2 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006945/0.4161, allocations: 67.95 kB / 451.3 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001164/0.4162, allocations: 68.47 kB / 451.3 MB, free: 12.72 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.675e-05/0.4163, allocations: 31.98 kB / 451.4 MB, free: 12.69 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001292/0.4176, allocations: 0.9885 MB / 452.4 MB, free: 11.71 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.4176, allocations: 0 / 452.4 MB, free: 11.71 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002381/0.42, allocations: 0.7617 MB / 453.1 MB, free: 10.95 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002666/0.4202, allocations: 149.3 kB / 453.3 MB, free: 10.8 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003341/0.4236, allocations: 2.042 MB / 455.3 MB, free: 8.73 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.729e-06/0.4236, allocations: 0 / 455.3 MB, free: 8.73 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008147/0.4244, allocations: 0.5316 MB / 455.8 MB, free: 8.191 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001671/0.4261, allocations: 403.2 kB / 456.2 MB, free: 7.805 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006669/0.4328, allocations: 4.816 MB / 461.1 MB, free: 2.91 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001052/0.4339, allocations: 1.522 MB / 462.6 MB, free: 1.352 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001138/0.435, allocations: 246.3 kB / 462.8 MB, free: 1.105 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002355/0.4353, allocations: 111.4 kB / 462.9 MB, free: 0.9961 MB / 366.1 MB Notification: Performance of SimCode: time 8.01e-07/0.4353, allocations: 0 / 462.9 MB, free: 0.9961 MB / 366.1 MB Notification: Performance of Templates: time 0.03/0.4653, allocations: 17.78 MB / 480.7 MB, free: 15.39 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)