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.001518/0.001518, allocations: 107.4 kB / 17.98 MB, free: 5.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001614/0.001614, allocations: 213.8 kB / 18.92 MB, free: 4.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.407/1.407, allocations: 227.4 MB / 247.1 MB, free: 8.945 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001777/0.001777, allocations: 60.11 kB / 307.1 MB, free: 0.6719 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09411/0.0959, allocations: 50.53 MB / 357.7 MB, free: 14.14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive): time 0.1659/0.2619, allocations: 23.12 MB / 380.8 MB, free: 9.316 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0116/0.2735, allocations: 6.665 MB / 387.5 MB, free: 5.219 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004377/0.2779, allocations: 102.8 kB / 387.6 MB, free: 5.195 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00266/0.2806, allocations: 0.6663 MB / 388.2 MB, free: 4.891 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002758/0.2834, allocations: 0.7374 MB / 389 MB, free: 4.359 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001524/0.2849, allocations: 0.7096 MB / 389.7 MB, free: 3.832 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003681/0.2886, allocations: 3.46 MB / 393.1 MB, free: 1.949 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002202/0.2909, allocations: 1.975 MB / 395.1 MB, free: 0.9375 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001752/0.2926, allocations: 1.295 MB / 396.4 MB, free: 228 kB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001627/0.2943, allocations: 1.403 MB / 397.8 MB, free: 15.43 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004486/0.2947, allocations: 380 kB / 398.2 MB, free: 15.43 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007175/0.2954, allocations: 422.8 kB / 398.6 MB, free: 15.41 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005771/0.296, allocations: 0.7136 MB / 399.3 MB, free: 14.87 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001772/0.2978, allocations: 1.605 MB / 400.9 MB, free: 13.8 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00366/0.3015, allocations: 3.723 MB / 404.6 MB, free: 11.11 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.3015, allocations: 1.125 kB / 404.6 MB, free: 11.11 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.3015, allocations: 0 / 404.6 MB, free: 11.11 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.8e-05/0.3016, allocations: 0 / 404.6 MB, free: 11.11 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.005424/0.307, allocations: 3.058 MB / 407.7 MB, free: 8.918 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.368e-05/0.3071, allocations: 8.594 kB / 407.7 MB, free: 8.918 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000976/0.3081, allocations: 372.9 kB / 408.1 MB, free: 8.742 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002278/0.3103, allocations: 1.445 MB / 409.5 MB, free: 7.586 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001241/0.3105, allocations: 193.1 kB / 409.7 MB, free: 7.496 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003081/0.3108, allocations: 275.1 kB / 410 MB, free: 7.395 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004236/0.315, allocations: 2.466 MB / 412.4 MB, free: 5.594 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.339e-05/0.3151, allocations: 7.906 kB / 412.4 MB, free: 5.586 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002033/0.3153, allocations: 104 kB / 412.5 MB, free: 5.484 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.53e-05/0.3154, allocations: 64 kB / 412.6 MB, free: 5.422 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003315/0.3187, allocations: 1.662 MB / 414.3 MB, free: 3.746 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01436/0.3331, allocations: 10.31 MB / 424.6 MB, free: 8.918 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001839/0.335, allocations: 0.8435 MB / 425.4 MB, free: 8.047 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001023/0.336, allocations: 488.8 kB / 425.9 MB, free: 7.57 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.035e-05/0.3361, allocations: 13 kB / 425.9 MB, free: 7.559 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.607e-05/0.3361, allocations: 39.56 kB / 426 MB, free: 7.508 MB / 334.1 MB Notification: Performance of pre-optimization done (n=83): time 2.896e-06/0.3361, allocations: 3.938 kB / 426 MB, free: 7.504 MB / 334.1 MB Notification: Performance of matching and sorting (n=89): time 0.005474/0.3416, allocations: 2.678 MB / 428.6 MB, free: 4.766 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.635e-05/0.3417, allocations: 115.8 kB / 428.7 MB, free: 4.629 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002159/0.3439, allocations: 1.573 MB / 430.3 MB, free: 3.055 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.241e-05/0.3439, allocations: 41.7 kB / 430.4 MB, free: 3.008 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000989/0.3449, allocations: 1.289 MB / 431.6 MB, free: 1.703 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002883/0.3452, allocations: 331.4 kB / 432 MB, free: 1.375 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004177/0.3457, allocations: 303.2 kB / 432.3 MB, free: 1.074 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001233/0.3458, allocations: 309.1 kB / 432.6 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008498/0.3466, allocations: 416.7 kB / 433 MB, free: 368 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001431/0.3481, allocations: 1.108 MB / 434.1 MB, free: 14.91 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002323/0.3504, allocations: 1.607 MB / 435.7 MB, free: 12.98 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.087e-05/0.3504, allocations: 8 kB / 435.7 MB, free: 12.97 MB / 350.1 MB Notification: Performance of matching and sorting (n=213) (initialization): time 0.003038/0.3535, allocations: 1.68 MB / 437.4 MB, free: 11.28 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.87e-05/0.3535, allocations: 16 kB / 437.4 MB, free: 11.26 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.934e-05/0.3536, allocations: 28.66 kB / 437.4 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001867/0.3538, allocations: 56.84 kB / 437.5 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001257/0.355, allocations: 391.4 kB / 437.9 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001221/0.3563, allocations: 1.425 MB / 439.3 MB, free: 9.227 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001234/0.3575, allocations: 92 kB / 439.4 MB, free: 9.137 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001114/0.3576, allocations: 84 kB / 439.5 MB, free: 9.055 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001445/0.3591, allocations: 0.7421 MB / 440.2 MB, free: 8.309 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001325/0.3604, allocations: 1.092 MB / 441.3 MB, free: 6.887 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002161/0.3626, allocations: 1.561 MB / 442.9 MB, free: 5 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.024e-05/0.3626, allocations: 4 kB / 442.9 MB, free: 4.996 MB / 350.1 MB Notification: Performance of matching and sorting (n=213) (initialization_lambda0): time 0.002912/0.3655, allocations: 1.625 MB / 444.5 MB, free: 3.359 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.483e-05/0.3656, allocations: 23.92 kB / 444.5 MB, free: 3.336 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.504e-05/0.3656, allocations: 24 kB / 444.5 MB, free: 3.312 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001341/0.3657, allocations: 57.58 kB / 444.6 MB, free: 3.254 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001201/0.367, allocations: 387.4 kB / 445 MB, free: 2.875 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001158/0.3681, allocations: 1.425 MB / 446.4 MB, free: 1.309 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001228/0.3694, allocations: 76.06 kB / 446.5 MB, free: 1.234 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001011/0.3695, allocations: 80 kB / 446.5 MB, free: 1.156 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.0003512/0.3698, allocations: 300.7 kB / 446.8 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002546/0.3701, allocations: 177.8 kB / 447 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001906/0.372, allocations: 0.9071 MB / 447.9 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.867e-06/0.372, allocations: 8 kB / 447.9 MB, free: 15.74 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.372, allocations: 0 / 447.9 MB, free: 15.74 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.968e-06/0.372, allocations: 3.984 kB / 447.9 MB, free: 15.74 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004726/0.3768, allocations: 2.886 MB / 450.8 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.036e-05/0.3768, allocations: 11.92 kB / 450.8 MB, free: 12.74 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008614/0.3777, allocations: 175.7 kB / 451 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001062/0.3778, allocations: 33.19 kB / 451 MB, free: 12.53 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.288e-05/0.3779, allocations: 31.98 kB / 451.1 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001095/0.379, allocations: 1.382 MB / 452.4 MB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.896e-06/0.379, allocations: 11.88 kB / 452.5 MB, free: 10.96 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002534/0.3815, allocations: 1.452 MB / 453.9 MB, free: 9.449 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006027/0.3821, allocations: 322.8 kB / 454.2 MB, free: 9.113 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002006/0.3824, allocations: 24 kB / 454.2 MB, free: 9.09 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000728/0.3831, allocations: 55.95 kB / 454.3 MB, free: 9.035 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001402/0.3832, allocations: 68.45 kB / 454.4 MB, free: 8.969 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.113e-05/0.3833, allocations: 27.98 kB / 454.4 MB, free: 8.941 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00151/0.3848, allocations: 1.028 MB / 455.4 MB, free: 7.922 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3848, allocations: 0 / 455.4 MB, free: 7.922 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002335/0.3872, allocations: 0.7617 MB / 456.2 MB, free: 7.16 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.0003008/0.3875, allocations: 161.2 kB / 456.3 MB, free: 6.996 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004258/0.3917, allocations: 2.054 MB / 458.4 MB, free: 4.926 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.917e-06/0.3918, allocations: 0 / 458.4 MB, free: 4.926 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009682/0.3928, allocations: 0.5235 MB / 458.9 MB, free: 4.395 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002219/0.395, allocations: 438.6 kB / 459.3 MB, free: 3.984 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007734/0.4027, allocations: 5.044 MB / 464.4 MB, free: 14.86 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001222/0.404, allocations: 1.471 MB / 465.9 MB, free: 13.35 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004278/0.4044, allocations: 119.4 kB / 466 MB, free: 13.23 MB / 382.1 MB Notification: Performance of SimCode: time 6.41e-07/0.4044, allocations: 0 / 466 MB, free: 13.23 MB / 382.1 MB Notification: Performance of Templates: time 0.04763/0.4521, allocations: 35.98 MB / 0.4902 GB, free: 9.273 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)