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.001059/0.001059, allocations: 110.5 kB / 17.86 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00118/0.00118, allocations: 209.7 kB / 18.79 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.333/1.333, allocations: 227.4 MB / 246.9 MB, free: 8.992 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001174/0.001174, allocations: 64.73 kB / 306.9 MB, free: 0.793 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08924/0.09043, allocations: 50.53 MB / 357.4 MB, free: 14.26 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive): time 0.1829/0.2734, allocations: 23.1 MB / 380.5 MB, free: 9.379 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01211/0.2855, allocations: 6.662 MB / 387.2 MB, free: 5.332 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005707/0.2913, allocations: 102.4 kB / 387.3 MB, free: 5.309 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003091/0.2945, allocations: 0.679 MB / 388 MB, free: 4.988 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003319/0.2978, allocations: 0.733 MB / 388.7 MB, free: 4.461 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001747/0.2996, allocations: 0.7114 MB / 389.4 MB, free: 3.934 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004108/0.3037, allocations: 3.247 MB / 392.7 MB, free: 2.215 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002151/0.3059, allocations: 1.734 MB / 394.4 MB, free: 1.281 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001798/0.3077, allocations: 1.134 MB / 395.5 MB, free: 0.7227 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001329/0.309, allocations: 1.313 MB / 396.9 MB, free: 20 kB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003778/0.3094, allocations: 221.8 kB / 397.1 MB, free: 20 kB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006654/0.3101, allocations: 260.4 kB / 397.3 MB, free: 12 kB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004437/0.3105, allocations: 0.5581 MB / 397.9 MB, free: 15.62 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001358/0.3119, allocations: 1.446 MB / 399.3 MB, free: 14.71 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003035/0.3149, allocations: 3.678 MB / 403 MB, free: 12.04 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.073e-06/0.315, allocations: 4 kB / 403 MB, free: 12.03 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.315, allocations: 0 / 403 MB, free: 12.03 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.983e-05/0.3151, allocations: 4 kB / 403 MB, free: 12.03 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.005532/0.3206, allocations: 3.054 MB / 406.1 MB, free: 9.84 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.834e-05/0.3206, allocations: 9.281 kB / 406.1 MB, free: 9.84 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001035/0.3217, allocations: 371.2 kB / 406.4 MB, free: 9.664 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00231/0.324, allocations: 1.453 MB / 407.9 MB, free: 8.5 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001232/0.3241, allocations: 194.2 kB / 408.1 MB, free: 8.41 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003128/0.3245, allocations: 268.9 kB / 408.4 MB, free: 8.312 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004103/0.3286, allocations: 2.46 MB / 410.8 MB, free: 6.773 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.998e-05/0.3287, allocations: 7.094 kB / 410.8 MB, free: 6.77 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002045/0.3289, allocations: 107.7 kB / 410.9 MB, free: 6.688 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.112e-05/0.3289, allocations: 68.91 kB / 411 MB, free: 6.684 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003215/0.3321, allocations: 1.659 MB / 412.6 MB, free: 5.281 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01334/0.3455, allocations: 10.3 MB / 422.9 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00176/0.3473, allocations: 0.8513 MB / 423.8 MB, free: 9.598 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001015/0.3483, allocations: 497.1 kB / 424.3 MB, free: 9.113 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.219e-05/0.3484, allocations: 13 kB / 424.3 MB, free: 9.102 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.375e-05/0.3484, allocations: 43.56 kB / 424.3 MB, free: 9.047 MB / 334.1 MB Notification: Performance of pre-optimization done (n=83): time 2.444e-06/0.3484, allocations: 0 / 424.3 MB, free: 9.047 MB / 334.1 MB Notification: Performance of matching and sorting (n=89): time 0.005191/0.3536, allocations: 2.677 MB / 427 MB, free: 6.309 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.559e-05/0.3537, allocations: 115.8 kB / 427.1 MB, free: 6.172 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002013/0.3557, allocations: 1.565 MB / 428.7 MB, free: 4.605 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.512e-05/0.3558, allocations: 45.7 kB / 428.7 MB, free: 4.555 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008162/0.3566, allocations: 1.289 MB / 430 MB, free: 3.25 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002458/0.3569, allocations: 327.4 kB / 430.3 MB, free: 2.926 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003812/0.3573, allocations: 311.2 kB / 430.6 MB, free: 2.617 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001063/0.3574, allocations: 305.1 kB / 430.9 MB, free: 2.316 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008261/0.3582, allocations: 412.7 kB / 431.3 MB, free: 1.91 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001287/0.3595, allocations: 1.115 MB / 432.5 MB, free: 472 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002137/0.3617, allocations: 1.611 MB / 434.1 MB, free: 14.52 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.756e-06/0.3617, allocations: 4 kB / 434.1 MB, free: 14.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=213) (initialization): time 0.002937/0.3646, allocations: 1.68 MB / 435.8 MB, free: 12.82 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.477e-05/0.3647, allocations: 16 kB / 435.8 MB, free: 12.81 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.572e-05/0.3647, allocations: 31.88 kB / 435.8 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001752/0.3649, allocations: 56.84 kB / 435.9 MB, free: 12.72 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001243/0.3661, allocations: 391.5 kB / 436.2 MB, free: 12.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001047/0.3672, allocations: 1.327 MB / 437.6 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001265/0.3685, allocations: 92.02 kB / 437.7 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.449e-05/0.3686, allocations: 80 kB / 437.7 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001431/0.37, allocations: 0.7421 MB / 438.5 MB, free: 9.961 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001118/0.3712, allocations: 1.084 MB / 439.6 MB, free: 8.547 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001906/0.3731, allocations: 1.557 MB / 441.1 MB, free: 6.664 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.558e-06/0.3731, allocations: 4 kB / 441.1 MB, free: 6.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=213) (initialization_lambda0): time 0.002675/0.3758, allocations: 1.637 MB / 442.8 MB, free: 5.008 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.056e-05/0.3758, allocations: 16 kB / 442.8 MB, free: 4.992 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.09e-05/0.3758, allocations: 24 kB / 442.8 MB, free: 4.969 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000121/0.376, allocations: 61.56 kB / 442.9 MB, free: 4.906 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001162/0.3771, allocations: 379.4 kB / 443.2 MB, free: 4.535 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009084/0.378, allocations: 1.33 MB / 444.6 MB, free: 3.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001164/0.3792, allocations: 79.91 kB / 444.6 MB, free: 2.992 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.508e-05/0.3793, allocations: 80 kB / 444.7 MB, free: 2.914 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.000312/0.3796, allocations: 300.8 kB / 445 MB, free: 2.613 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002194/0.3799, allocations: 173.8 kB / 445.2 MB, free: 2.441 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001717/0.3816, allocations: 0.9109 MB / 446.1 MB, free: 1.512 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.687e-06/0.3816, allocations: 8 kB / 446.1 MB, free: 1.504 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.3816, allocations: 7.938 kB / 446.1 MB, free: 1.496 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.987e-06/0.3816, allocations: 3.984 kB / 446.1 MB, free: 1.492 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004249/0.3859, allocations: 2.886 MB / 449 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.382e-06/0.3859, allocations: 4.469 kB / 449 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008311/0.3868, allocations: 183.8 kB / 449.2 MB, free: 14.32 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.691e-05/0.3869, allocations: 28.84 kB / 449.2 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.435e-05/0.3869, allocations: 28 kB / 449.2 MB, free: 14.26 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008628/0.3878, allocations: 1.281 MB / 450.5 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.111e-06/0.3878, allocations: 11.92 kB / 450.5 MB, free: 12.83 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002291/0.3901, allocations: 1.451 MB / 452 MB, free: 11.32 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005472/0.3907, allocations: 326.8 kB / 452.3 MB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002547/0.3909, allocations: 24 kB / 452.3 MB, free: 10.95 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007726/0.3917, allocations: 55.95 kB / 452.4 MB, free: 10.9 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001294/0.3919, allocations: 72.44 kB / 452.5 MB, free: 10.83 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.623e-05/0.3919, allocations: 24 kB / 452.5 MB, free: 10.8 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001429/0.3934, allocations: 1.031 MB / 453.5 MB, free: 9.781 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3934, allocations: 0 / 453.5 MB, free: 9.781 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00242/0.3958, allocations: 0.7578 MB / 454.3 MB, free: 9.023 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.0002569/0.3961, allocations: 149.3 kB / 454.4 MB, free: 8.871 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003395/0.3995, allocations: 2.01 MB / 456.4 MB, free: 6.844 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.3995, allocations: 9.875 kB / 456.4 MB, free: 6.836 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008546/0.4003, allocations: 0.5186 MB / 456.9 MB, free: 6.309 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001874/0.4022, allocations: 421.2 kB / 457.4 MB, free: 5.91 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007208/0.4094, allocations: 5.032 MB / 462.4 MB, free: 0.793 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001178/0.4106, allocations: 1.471 MB / 463.9 MB, free: 15.29 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003838/0.411, allocations: 127.4 kB / 464 MB, free: 15.16 MB / 382.1 MB Notification: Performance of SimCode: time 7.11e-07/0.411, allocations: 0 / 464 MB, free: 15.16 MB / 382.1 MB Notification: Performance of Templates: time 0.04368/0.4547, allocations: 35.98 MB / 500 MB, free: 11.2 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)