Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001386/0.001387, allocations: 113.4 kB / 17.99 MB, free: 5.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001477/0.001477, allocations: 205.8 kB / 18.92 MB, free: 4.465 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.446/1.446, allocations: 227.7 MB / 247.4 MB, free: 10.48 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001909/0.001909, allocations: 69.02 kB / 307.4 MB, free: 0.8125 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08753/0.08945, allocations: 50.54 MB / 357.9 MB, free: 14.26 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive): time 0.1595/0.249, allocations: 23.11 MB / 381 MB, free: 9.414 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01111/0.2601, allocations: 6.634 MB / 387.7 MB, free: 5.371 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004542/0.2647, allocations: 101.6 kB / 387.8 MB, free: 5.348 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002761/0.2676, allocations: 0.671 MB / 388.5 MB, free: 5.039 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003047/0.2706, allocations: 0.7417 MB / 389.2 MB, free: 4.504 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001747/0.2724, allocations: 0.7063 MB / 389.9 MB, free: 3.98 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004564/0.277, allocations: 3.446 MB / 393.3 MB, free: 2.105 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002598/0.2796, allocations: 1.971 MB / 395.3 MB, free: 1.098 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002043/0.2816, allocations: 1.303 MB / 396.6 MB, free: 384 kB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001675/0.2833, allocations: 1.403 MB / 398 MB, free: 15.58 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004524/0.2838, allocations: 379.8 kB / 398.4 MB, free: 15.58 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007206/0.2845, allocations: 420.4 kB / 398.8 MB, free: 15.57 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005839/0.2851, allocations: 0.7062 MB / 399.5 MB, free: 15.04 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00164/0.2868, allocations: 1.607 MB / 401.1 MB, free: 13.96 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003857/0.2906, allocations: 3.729 MB / 404.8 MB, free: 11.24 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.2906, allocations: 1.031 kB / 404.8 MB, free: 11.24 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.2907, allocations: 0 / 404.8 MB, free: 11.24 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.817e-05/0.2907, allocations: 4 kB / 404.9 MB, free: 11.23 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.005943/0.2967, allocations: 3.051 MB / 407.9 MB, free: 9.051 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.861e-05/0.2967, allocations: 12.72 kB / 407.9 MB, free: 9.047 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009898/0.2977, allocations: 372 kB / 408.3 MB, free: 8.871 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002343/0.3001, allocations: 1.453 MB / 409.7 MB, free: 7.707 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001293/0.3002, allocations: 193.9 kB / 409.9 MB, free: 7.617 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002995/0.3005, allocations: 266.4 kB / 410.2 MB, free: 7.523 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004267/0.3048, allocations: 2.465 MB / 412.6 MB, free: 5.598 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.138e-05/0.3049, allocations: 11.84 kB / 412.7 MB, free: 5.586 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000201/0.3051, allocations: 108 kB / 412.8 MB, free: 5.48 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.514e-05/0.3052, allocations: 64 kB / 412.8 MB, free: 5.418 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003264/0.3084, allocations: 1.654 MB / 414.5 MB, free: 3.75 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01473/0.3232, allocations: 10.31 MB / 424.8 MB, free: 8.93 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00185/0.3251, allocations: 0.856 MB / 425.6 MB, free: 8.047 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001017/0.3261, allocations: 492.2 kB / 426.1 MB, free: 7.566 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.606e-05/0.3262, allocations: 9 kB / 426.1 MB, free: 7.559 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.067e-05/0.3262, allocations: 47.56 kB / 426.2 MB, free: 7.5 MB / 334.1 MB Notification: Performance of pre-optimization done (n=83): time 2.465e-06/0.3262, allocations: 0 / 426.2 MB, free: 7.5 MB / 334.1 MB Notification: Performance of matching and sorting (n=89): time 0.005726/0.3319, allocations: 2.668 MB / 428.8 MB, free: 4.77 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.031e-05/0.332, allocations: 119.7 kB / 429 MB, free: 4.629 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002453/0.3345, allocations: 1.569 MB / 430.5 MB, free: 3.059 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.363e-05/0.3346, allocations: 41.7 kB / 430.6 MB, free: 3.012 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001022/0.3356, allocations: 1.281 MB / 431.9 MB, free: 1.715 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003084/0.336, allocations: 335.4 kB / 432.2 MB, free: 1.383 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004163/0.3364, allocations: 307.2 kB / 432.5 MB, free: 1.078 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001225/0.3365, allocations: 301.1 kB / 432.8 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008603/0.3374, allocations: 420.6 kB / 433.2 MB, free: 376 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001442/0.3388, allocations: 1.108 MB / 434.3 MB, free: 14.93 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00235/0.3412, allocations: 1.611 MB / 435.9 MB, free: 12.98 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.272e-05/0.3412, allocations: 15.88 kB / 435.9 MB, free: 12.97 MB / 350.1 MB Notification: Performance of matching and sorting (n=213) (initialization): time 0.003082/0.3443, allocations: 1.68 MB / 437.6 MB, free: 11.28 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.737e-05/0.3443, allocations: 12 kB / 437.6 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.785e-05/0.3444, allocations: 27.94 kB / 437.6 MB, free: 11.24 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002075/0.3446, allocations: 56.78 kB / 437.7 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001301/0.3459, allocations: 403.6 kB / 438.1 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001239/0.3471, allocations: 1.417 MB / 439.5 MB, free: 9.227 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0012/0.3484, allocations: 83.86 kB / 439.6 MB, free: 9.145 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001039/0.3485, allocations: 83.94 kB / 439.7 MB, free: 9.062 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00148/0.35, allocations: 0.75 MB / 440.4 MB, free: 8.309 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00136/0.3513, allocations: 1.08 MB / 441.5 MB, free: 6.898 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002198/0.3535, allocations: 1.561 MB / 443.1 MB, free: 5.012 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.082e-05/0.3536, allocations: 8 kB / 443.1 MB, free: 5.004 MB / 350.1 MB Notification: Performance of matching and sorting (n=213) (initialization_lambda0): time 0.002808/0.3564, allocations: 1.626 MB / 444.7 MB, free: 3.363 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.384e-05/0.3564, allocations: 16 kB / 444.7 MB, free: 3.348 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.22e-05/0.3564, allocations: 24 kB / 444.7 MB, free: 3.324 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001281/0.3566, allocations: 52.84 kB / 444.8 MB, free: 3.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001216/0.3578, allocations: 387.3 kB / 445.2 MB, free: 2.891 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001215/0.359, allocations: 1.433 MB / 446.6 MB, free: 1.316 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001107/0.3601, allocations: 75.97 kB / 446.7 MB, free: 1.242 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001035/0.3603, allocations: 80 kB / 446.8 MB, free: 1.164 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.0003351/0.3606, allocations: 295.7 kB / 447 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002434/0.3609, allocations: 185.8 kB / 447.2 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001902/0.3628, allocations: 0.8993 MB / 448.1 MB, free: 15.76 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.282e-05/0.3628, allocations: 16 kB / 448.1 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.3628, allocations: 0 / 448.1 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.001e-05/0.3628, allocations: 3.984 kB / 448.1 MB, free: 15.74 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004717/0.3675, allocations: 2.89 MB / 451 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.945e-06/0.3676, allocations: 4 kB / 451 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008837/0.3684, allocations: 184.2 kB / 451.2 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001022/0.3686, allocations: 28.84 kB / 451.2 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.711e-05/0.3686, allocations: 24 kB / 451.3 MB, free: 12.51 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00112/0.3698, allocations: 1.394 MB / 452.7 MB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.919e-06/0.3698, allocations: 4 kB / 452.7 MB, free: 10.97 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002796/0.3726, allocations: 1.446 MB / 454.1 MB, free: 9.461 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005747/0.3732, allocations: 330.8 kB / 454.4 MB, free: 9.117 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002075/0.3734, allocations: 31.98 kB / 454.5 MB, free: 9.086 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000739/0.3741, allocations: 51.95 kB / 454.5 MB, free: 9.035 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001312/0.3743, allocations: 68.45 kB / 454.6 MB, free: 8.969 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.542e-05/0.3743, allocations: 28 kB / 454.6 MB, free: 8.941 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001532/0.3759, allocations: 1.028 MB / 455.6 MB, free: 7.922 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3759, allocations: 0 / 455.6 MB, free: 7.922 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002343/0.3782, allocations: 0.7734 MB / 456.4 MB, free: 7.148 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.0002957/0.3785, allocations: 149.3 kB / 456.6 MB, free: 6.996 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004031/0.3826, allocations: 2.05 MB / 458.6 MB, free: 4.93 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.3826, allocations: 1 kB / 458.6 MB, free: 4.93 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009312/0.3835, allocations: 0.5139 MB / 459.1 MB, free: 4.406 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001924/0.3855, allocations: 446.4 kB / 459.6 MB, free: 3.992 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00765/0.3931, allocations: 5.047 MB / 464.6 MB, free: 14.86 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001263/0.3944, allocations: 1.471 MB / 466.1 MB, free: 13.36 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004208/0.3949, allocations: 119.4 kB / 466.2 MB, free: 13.24 MB / 382.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3949, allocations: 0 / 466.2 MB, free: 13.24 MB / 382.1 MB Notification: Performance of Templates: time 0.04923/0.4441, allocations: 36 MB / 0.4904 GB, free: 9.273 MB / 414.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.pipe 2>&1)