Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.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.SynchronousInductionMachines.SMPM_Braking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=16000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking") translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=16000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009271/0.000927, allocations: 90.75 kB / 15.06 MB, free: 1.098 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.001036/0.001036, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.631/1.631, allocations: 205.4 MB / 222.1 MB, free: 5.488 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.0006449/0.000645, allocations: 12 kB / 278.9 MB, free: 12.69 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.318/0.3186, allocations: 47.58 MB / 326.5 MB, free: 1.461 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking): time 0.01137/0.3301, allocations: 10.13 MB / 336.6 MB, free: 9.328 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.007265/0.3374, allocations: 3.562 MB / 340.2 MB, free: 5.754 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002156/0.3396, allocations: 51.75 kB / 340.2 MB, free: 5.703 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002287/0.3419, allocations: 0.6523 MB / 340.9 MB, free: 5.047 MB / 270.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Electrical/PowerConverters.mo:5153:20-5153:43:writable] Warning: 'each' used when modifying non-array element diode_p. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Electrical/PowerConverters.mo:5164:20-5164:43:writable] Warning: 'each' used when modifying non-array element diode_n. Notification: Performance of NFTyping.typeBindings: time 0.003133/0.345, allocations: 0.7962 MB / 341.7 MB, free: 4.246 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001275/0.3463, allocations: 315.5 kB / 342 MB, free: 3.938 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.004571/0.3509, allocations: 3.413 MB / 345.4 MB, free: 0.5117 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002893/0.3538, allocations: 1.679 MB / 347.1 MB, free: 14.8 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002098/0.3559, allocations: 1.097 MB / 348.2 MB, free: 13.7 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002604/0.3585, allocations: 1.475 MB / 349.6 MB, free: 12.21 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006379/0.3592, allocations: 168 kB / 349.8 MB, free: 12.05 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001115/0.3603, allocations: 235.8 kB / 350 MB, free: 11.82 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009638/0.3613, allocations: 0.8138 MB / 350.9 MB, free: 11 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000833/0.3621, allocations: 0.6095 MB / 351.5 MB, free: 10.39 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003659/0.3658, allocations: 4.102 MB / 355.6 MB, free: 6.273 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.021e-05/0.3658, allocations: 4 kB / 355.6 MB, free: 6.27 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.3658, allocations: 0 / 355.6 MB, free: 6.27 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.764e-05/0.3659, allocations: 0 / 355.6 MB, free: 6.27 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: 653 * Number of variables: 653 Notification: Performance of Generate backend data structure: time 0.005152/0.371, allocations: 2.962 MB / 358.5 MB, free: 3.242 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.85e-05/0.3711, allocations: 11.97 kB / 358.5 MB, free: 3.23 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007417/0.3718, allocations: 352 kB / 358.9 MB, free: 2.883 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002806/0.3747, allocations: 1.707 MB / 360.6 MB, free: 1.121 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001458/0.3748, allocations: 185 kB / 360.8 MB, free: 0.9375 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003353/0.3752, allocations: 248 kB / 361 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005588/0.3808, allocations: 3.41 MB / 364.4 MB, free: 13.18 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.631e-05/0.3808, allocations: 7.938 kB / 364.4 MB, free: 13.17 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002267/0.3811, allocations: 100 kB / 364.5 MB, free: 13.07 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001205/0.3812, allocations: 120.8 kB / 364.6 MB, free: 12.95 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004635/0.3858, allocations: 2.915 MB / 367.6 MB, free: 10.02 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01599/0.4018, allocations: 10.95 MB / 378.5 MB, free: 14.78 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003066/0.4049, allocations: 2.421 MB / 380.9 MB, free: 12.19 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001823/0.4068, allocations: 1.176 MB / 382.1 MB, free: 11.02 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002705/0.4071, allocations: 130.4 kB / 382.2 MB, free: 10.87 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.126e-05/0.4072, allocations: 48.34 kB / 382.3 MB, free: 10.82 MB / 318.1 MB Notification: Performance of pre-optimization done (n=133): time 3.717e-06/0.4072, allocations: 3.938 kB / 382.3 MB, free: 10.81 MB / 318.1 MB Notification: Performance of matching and sorting (n=147): time 0.01571/0.4229, allocations: 7.25 MB / 389.5 MB, free: 3.434 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.663e-05/0.423, allocations: 94.38 kB / 389.6 MB, free: 3.32 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003257/0.4262, allocations: 1.827 MB / 391.5 MB, free: 1.496 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001084/0.4264, allocations: 49.7 kB / 391.5 MB, free: 1.441 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001002/0.4274, allocations: 1.226 MB / 392.7 MB, free: 204 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004371/0.4278, allocations: 0.4892 MB / 393.2 MB, free: 15.7 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.272e-05/0.4279, allocations: 32 kB / 393.2 MB, free: 15.67 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001707/0.4281, allocations: 373.9 kB / 393.6 MB, free: 15.3 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001294/0.4294, allocations: 0.8432 MB / 394.5 MB, free: 14.45 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00159/0.431, allocations: 1.307 MB / 395.8 MB, free: 12.95 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00157/0.4326, allocations: 1.029 MB / 396.8 MB, free: 11.93 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.845e-05/0.4326, allocations: 4 kB / 396.8 MB, free: 11.92 MB / 334.1 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.004655/0.4373, allocations: 2.849 MB / 399.6 MB, free: 9.055 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004476/0.4377, allocations: 0.5103 MB / 400.2 MB, free: 8.348 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.408e-05/0.4378, allocations: 12 kB / 400.2 MB, free: 8.336 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001476/0.4392, allocations: 0.6669 MB / 400.8 MB, free: 7.656 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001238/0.4405, allocations: 355.4 kB / 401.2 MB, free: 7.309 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009437/0.4499, allocations: 8.307 MB / 409.5 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001511/0.4515, allocations: 115.8 kB / 409.6 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002021/0.4517, allocations: 68 kB / 409.7 MB, free: 14.41 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.247e-06/0.4517, allocations: 4 kB / 409.7 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004558/0.4563, allocations: 2.627 MB / 412.3 MB, free: 11.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.482e-05/0.4563, allocations: 16 kB / 412.3 MB, free: 11.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001475/0.4578, allocations: 0.6635 MB / 413 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001224/0.4591, allocations: 351.4 kB / 413.3 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00944/0.4685, allocations: 8.307 MB / 421.6 MB, free: 2.023 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00169/0.4702, allocations: 95.91 kB / 421.7 MB, free: 1.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002444/0.4705, allocations: 71.98 kB / 421.8 MB, free: 1.859 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * Number of states: 0 () * Number of discrete variables: 6 (diodeBridge2mPulse.diode_p.idealDiode[1].off,diodeBridge2mPulse.diode_p.idealDiode[2].off,diodeBridge2mPulse.diode_p.idealDiode[3].off,diodeBridge2mPulse.diode_n.idealDiode[1].off,diodeBridge2mPulse.diode_n.idealDiode[2].off,diodeBridge2mPulse.diode_n.idealDiode[3].off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (181): * Single equations (assignments): 177 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 9,(1,100.0%) 1} * Non-linear torn systems: 1 {6 20} Notification: Performance of prepare postOptimizeDAE: time 0.002257/0.4728, allocations: 0.9298 MB / 422.7 MB, free: 0.918 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006336/0.4734, allocations: 201.7 kB / 422.9 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005072/0.4785, allocations: 2.559 MB / 425.5 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.667e-05/0.4785, allocations: 19.94 kB / 425.5 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.094e-05/0.4785, allocations: 0 / 425.5 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.66e-05/0.4786, allocations: 15.97 kB / 425.5 MB, free: 14.1 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0103/0.4889, allocations: 5.437 MB / 430.9 MB, free: 8.559 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.008e-05/0.4889, allocations: 3.984 kB / 431 MB, free: 8.555 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009054/0.4898, allocations: 224 kB / 431.2 MB, free: 8.336 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001611/0.4914, allocations: 0.6864 MB / 431.9 MB, free: 7.637 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001494/0.4916, allocations: 39.97 kB / 431.9 MB, free: 7.598 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01087/0.5025, allocations: 9.741 MB / 441.6 MB, free: 13.31 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.482e-06/0.5025, allocations: 7.969 kB / 441.6 MB, free: 13.3 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006066/0.5086, allocations: 3.762 MB / 445.4 MB, free: 9.484 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001152/0.5098, allocations: 470.5 kB / 445.9 MB, free: 9.004 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004491/0.5102, allocations: 32 kB / 445.9 MB, free: 8.973 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001141/0.5114, allocations: 95.89 kB / 446 MB, free: 8.879 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002758/0.5117, allocations: 121 kB / 446.1 MB, free: 8.762 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.635e-05/0.5118, allocations: 43.98 kB / 446.2 MB, free: 8.719 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002254/0.514, allocations: 1.244 MB / 447.4 MB, free: 7.484 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.514, allocations: 0 / 447.4 MB, free: 7.484 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003823/0.5179, allocations: 1.008 MB / 448.4 MB, free: 6.477 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 5 (smpm.inertiaRotor.w,smpm.i_0_s,smpm.idq_sr[1],smpm.idq_sr[2],inertiaLoad.phi) * Number of discrete variables: 6 (diodeBridge2mPulse.diode_p.idealDiode[1].off,diodeBridge2mPulse.diode_p.idealDiode[2].off,diodeBridge2mPulse.diode_p.idealDiode[3].off,diodeBridge2mPulse.diode_n.idealDiode[1].off,diodeBridge2mPulse.diode_n.idealDiode[2].off,diodeBridge2mPulse.diode_n.idealDiode[3].off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (110): * Single equations (assignments): 106 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 9,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 1 {6 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003673/0.5182, allocations: 151 kB / 448.6 MB, free: 6.316 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006966/0.5252, allocations: 4.49 MB / 453 MB, free: 1.715 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.422e-06/0.5252, allocations: 320 / 453 MB, free: 1.715 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.2544/0.7796, allocations: 1.729 MB / 454.8 MB, free: 111.2 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004838/0.7846, allocations: 0.5914 MB / 455.4 MB, free: 111.2 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01453/0.7991, allocations: 6.811 MB / 462.2 MB, free: 108.6 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002033/0.8012, allocations: 2.098 MB / 464.3 MB, free: 107.9 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002577/0.8038, allocations: 0.5857 MB / 464.9 MB, free: 107.8 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003949/0.8042, allocations: 132.3 kB / 465 MB, free: 107.8 MB / 382.1 MB Notification: Performance of SimCode: time 1.813e-06/0.8042, allocations: 4 kB / 465 MB, free: 107.8 MB / 382.1 MB Notification: Performance of Templates: time 0.07482/0.8791, allocations: 38.48 MB / 0.4917 GB, free: 72.89 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.sim & ./Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.pipe 2>&1)