Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM") translateModel(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000909/0.000909, allocations: 90.3 kB / 16.31 MB, free: 6.453 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009876/0.0009876, allocations: 173.7 kB / 17.21 MB, free: 6.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.619/1.619, allocations: 205.4 MB / 223.4 MB, free: 5.801 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004688/0.0004688, allocations: 12 kB / 280.1 MB, free: 13.06 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2506/0.2511, allocations: 47.58 MB / 327.7 MB, free: 1.422 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM): time 0.01257/0.2637, allocations: 12.32 MB / 340 MB, free: 7.188 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01056/0.2743, allocations: 4.818 MB / 344.9 MB, free: 2.359 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003296/0.2777, allocations: 59.75 kB / 344.9 MB, free: 2.301 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002497/0.2802, allocations: 0.7147 MB / 345.6 MB, free: 1.582 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001929/0.2821, allocations: 456.6 kB / 346.1 MB, free: 1.133 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001144/0.2833, allocations: 307.6 kB / 346.4 MB, free: 0.832 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.003132/0.2864, allocations: 1.925 MB / 348.3 MB, free: 14.9 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001839/0.2883, allocations: 0.76 MB / 349.1 MB, free: 14.11 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001319/0.2896, allocations: 0.5871 MB / 349.7 MB, free: 13.52 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001297/0.2909, allocations: 0.6801 MB / 350.3 MB, free: 12.83 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004081/0.2913, allocations: 92 kB / 350.4 MB, free: 12.74 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006282/0.292, allocations: 136 kB / 350.6 MB, free: 12.61 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002467/0.2922, allocations: 278.7 kB / 350.8 MB, free: 12.34 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004705/0.2927, allocations: 356.8 kB / 351.2 MB, free: 11.98 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001987/0.2947, allocations: 2.185 MB / 353.4 MB, free: 9.789 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.2947, allocations: 4 kB / 353.4 MB, free: 9.785 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.2947, allocations: 0 / 353.4 MB, free: 9.785 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.054e-05/0.2948, allocations: 0 / 353.4 MB, free: 9.785 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 379 * Number of variables: 379 Notification: Performance of Generate backend data structure: time 0.002917/0.2977, allocations: 1.759 MB / 355.1 MB, free: 7.969 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.439e-05/0.2977, allocations: 12.02 kB / 355.1 MB, free: 7.957 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006618/0.2984, allocations: 245.6 kB / 355.4 MB, free: 7.715 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001502/0.2999, allocations: 0.9965 MB / 356.4 MB, free: 6.676 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.875e-05/0.3, allocations: 111 kB / 356.5 MB, free: 6.566 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001835/0.3002, allocations: 155.9 kB / 356.6 MB, free: 6.414 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002289/0.3025, allocations: 1.427 MB / 358.1 MB, free: 4.93 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.601e-05/0.3026, allocations: 0 / 358.1 MB, free: 4.93 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001116/0.3027, allocations: 67.98 kB / 358.1 MB, free: 4.863 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.482e-05/0.3027, allocations: 36 kB / 358.2 MB, free: 4.828 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001739/0.3045, allocations: 0.975 MB / 359.1 MB, free: 3.848 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007123/0.3116, allocations: 6.179 MB / 365.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00103/0.3127, allocations: 0.6521 MB / 366 MB, free: 12.67 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004019/0.3131, allocations: 246.1 kB / 366.2 MB, free: 12.43 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.178e-05/0.3131, allocations: 8.422 kB / 366.2 MB, free: 12.42 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.68e-05/0.3132, allocations: 42.94 kB / 366.3 MB, free: 12.37 MB / 302.1 MB Notification: Performance of pre-optimization done (n=51): time 2.034e-06/0.3132, allocations: 0 / 366.3 MB, free: 12.37 MB / 302.1 MB Notification: Performance of matching and sorting (n=54): time 0.002937/0.3161, allocations: 1.758 MB / 368 MB, free: 10.53 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.295e-05/0.3162, allocations: 81.55 kB / 368.1 MB, free: 10.43 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00142/0.3176, allocations: 1.116 MB / 369.2 MB, free: 9.305 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.671e-05/0.3177, allocations: 37.7 kB / 369.3 MB, free: 9.262 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005559/0.3182, allocations: 0.813 MB / 370.1 MB, free: 8.438 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001523/0.3184, allocations: 209.1 kB / 370.3 MB, free: 8.23 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.401e-05/0.3184, allocations: 20 kB / 370.3 MB, free: 8.211 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001293/0.3186, allocations: 341.9 kB / 370.6 MB, free: 7.871 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004288/0.319, allocations: 241.9 kB / 370.9 MB, free: 7.637 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000678/0.3197, allocations: 0.629 MB / 371.5 MB, free: 6.828 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005602/0.3202, allocations: 350 kB / 371.8 MB, free: 6.484 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.531e-06/0.3203, allocations: 7.938 kB / 371.8 MB, free: 6.477 MB / 302.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.001502/0.3218, allocations: 1.006 MB / 372.8 MB, free: 5.457 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002728/0.322, allocations: 485.5 kB / 373.3 MB, free: 4.801 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.547e-05/0.3221, allocations: 12 kB / 373.3 MB, free: 4.789 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00015/0.3222, allocations: 40.8 kB / 373.4 MB, free: 4.746 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000682/0.3229, allocations: 227.6 kB / 373.6 MB, free: 4.523 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009016/0.3238, allocations: 1.292 MB / 374.9 MB, free: 3.098 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005724/0.3244, allocations: 56.05 kB / 374.9 MB, free: 3.043 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.97e-05/0.3245, allocations: 51.98 kB / 375 MB, free: 2.992 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.451e-06/0.3245, allocations: 4 kB / 375 MB, free: 2.988 MB / 302.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001154/0.3257, allocations: 0.807 MB / 375.8 MB, free: 2.176 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.377e-05/0.3257, allocations: 16 kB / 375.8 MB, free: 2.16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.477e-05/0.3258, allocations: 48.73 kB / 375.9 MB, free: 2.109 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000615/0.3264, allocations: 215.7 kB / 376.1 MB, free: 1.898 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007879/0.3272, allocations: 1.292 MB / 377.4 MB, free: 488 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005005/0.3277, allocations: 43.89 kB / 377.4 MB, free: 444 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.868e-05/0.3278, allocations: 44 kB / 377.5 MB, free: 400 kB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 2 (currentController.integrator.local_reset,armatureInverter.idealDcDc.powerController.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (122): * Single equations (assignments): 121 * 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.0005887/0.3284, allocations: 413 kB / 377.9 MB, free: 15.97 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001369/0.3285, allocations: 118.5 kB / 378 MB, free: 15.86 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001018/0.3295, allocations: 0.5791 MB / 378.6 MB, free: 15.27 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.979e-06/0.3295, allocations: 8 kB / 378.6 MB, free: 15.26 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.374e-06/0.3296, allocations: 0 / 378.6 MB, free: 15.26 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.795e-06/0.3296, allocations: 3.984 kB / 378.6 MB, free: 15.26 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002566/0.3321, allocations: 1.886 MB / 380.4 MB, free: 13.29 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.3322, allocations: 4.219 kB / 380.5 MB, free: 13.29 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000465/0.3326, allocations: 115.8 kB / 380.6 MB, free: 13.18 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.342e-05/0.3327, allocations: 28.8 kB / 380.6 MB, free: 13.14 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.35e-05/0.3328, allocations: 12 kB / 380.6 MB, free: 13.13 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008567/0.3336, allocations: 1.287 MB / 381.9 MB, free: 11.71 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.3336, allocations: 0 / 381.9 MB, free: 11.71 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001326/0.335, allocations: 0.9462 MB / 382.8 MB, free: 10.73 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003134/0.3353, allocations: 243.6 kB / 383.1 MB, free: 10.47 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001161/0.3354, allocations: 16 kB / 383.1 MB, free: 10.45 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004434/0.3359, allocations: 43.97 kB / 383.1 MB, free: 10.41 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.48e-05/0.3359, allocations: 36.42 kB / 383.2 MB, free: 10.38 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.987e-05/0.336, allocations: 16 kB / 383.2 MB, free: 10.36 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001005/0.337, allocations: 0.7479 MB / 383.9 MB, free: 9.605 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.337, allocations: 0 / 383.9 MB, free: 9.605 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001446/0.3385, allocations: 468 kB / 384.4 MB, free: 9.148 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 10 (loadInertia.w,dcpm.la.i,armatureInverter.vDCFilter.y,armatureInverter.iMotFilter.y,armatureInverter.idealDcDc.deadTime.y,armatureInverter.idealDcDc.powerController.y,armatureInverter.vMotFilter.y,armatureInverter.iDCFilter.y,currentController.integrator.y,loadTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 52 * 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.0002503/0.3387, allocations: 131 kB / 384.5 MB, free: 9.008 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002019/0.3407, allocations: 1.258 MB / 385.8 MB, free: 7.727 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.3408, allocations: 0 / 385.8 MB, free: 7.727 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005152/0.3413, allocations: 365.9 kB / 386.1 MB, free: 7.359 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001222/0.3425, allocations: 272.5 kB / 386.4 MB, free: 7.09 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004185/0.3467, allocations: 3.079 MB / 389.5 MB, free: 3.949 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008009/0.3475, allocations: 1.173 MB / 390.7 MB, free: 2.746 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006473/0.3482, allocations: 161.2 kB / 390.8 MB, free: 2.586 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001746/0.3484, allocations: 79.42 kB / 390.9 MB, free: 2.512 MB / 318.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3484, allocations: 0 / 390.9 MB, free: 2.512 MB / 318.1 MB Notification: Performance of Templates: time 0.02191/0.3703, allocations: 12.05 MB / 402.9 MB, free: 6.449 MB / 334.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.sim & ./Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe 2>&1)