Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=16000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=16000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001032/0.001032, allocations: 91.92 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.001107/0.001107, 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.616/1.616, allocations: 205.4 MB / 222.1 MB, free: 5.664 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.0004632/0.0004633, allocations: 12 kB / 278.9 MB, free: 12.82 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2454/0.2459, allocations: 47.58 MB / 326.5 MB, free: 1.391 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking): time 0.01482/0.2607, allocations: 13.74 MB / 340.2 MB, free: 5.727 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01245/0.2732, allocations: 4.85 MB / 345.1 MB, free: 0.8633 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004642/0.2779, allocations: 75.69 kB / 345.1 MB, free: 0.7891 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003591/0.2815, allocations: 0.8117 MB / 346 MB, free: 15.97 MB / 286.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.004687/0.2863, allocations: 1.099 MB / 347.1 MB, free: 14.87 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002386/0.2887, allocations: 0.6509 MB / 347.7 MB, free: 14.21 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.005759/0.2944, allocations: 3.95 MB / 351.7 MB, free: 10.25 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004009/0.2985, allocations: 2.135 MB / 353.8 MB, free: 8.07 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002658/0.3011, allocations: 1.288 MB / 355.1 MB, free: 6.777 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003018/0.3042, allocations: 1.646 MB / 356.7 MB, free: 5.125 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008984/0.3051, allocations: 204 kB / 356.9 MB, free: 4.926 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001784/0.3069, allocations: 395.8 kB / 357.3 MB, free: 4.539 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001381/0.3083, allocations: 0.8057 MB / 358.1 MB, free: 3.73 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001633/0.3099, allocations: 0.7342 MB / 358.9 MB, free: 2.988 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006246/0.3162, allocations: 5.255 MB / 364.1 MB, free: 13.72 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.3162, allocations: 0 / 364.1 MB, free: 13.72 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.3162, allocations: 0 / 364.1 MB, free: 13.72 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001264/0.3163, allocations: 0 / 364.1 MB, free: 13.72 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 818 * Number of variables: 818 Notification: Performance of Generate backend data structure: time 0.00826/0.3246, allocations: 3.7 MB / 367.8 MB, free: 9.945 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.768e-05/0.3247, allocations: 8.031 kB / 367.8 MB, free: 9.938 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003384/0.3281, allocations: 0.6319 MB / 368.4 MB, free: 9.301 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005796/0.3339, allocations: 2.103 MB / 370.5 MB, free: 7.145 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000232/0.3342, allocations: 234.2 kB / 370.8 MB, free: 6.914 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008512/0.335, allocations: 315.9 kB / 371.1 MB, free: 6.605 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007896/0.3429, allocations: 4.158 MB / 375.2 MB, free: 2.359 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.454e-05/0.343, allocations: 7.906 kB / 375.3 MB, free: 2.352 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002855/0.3433, allocations: 131.9 kB / 375.4 MB, free: 2.223 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001395/0.3435, allocations: 138.1 kB / 375.5 MB, free: 2.086 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006645/0.3501, allocations: 3.537 MB / 379.1 MB, free: 14.54 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02317/0.3733, allocations: 13.82 MB / 392.9 MB, free: 352 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005747/0.3791, allocations: 5.89 MB / 398.8 MB, free: 9.738 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002406/0.3816, allocations: 1.366 MB / 400.1 MB, free: 8.363 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005664/0.3872, allocations: 3.194 MB / 403.3 MB, free: 5.102 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.003e-05/0.3873, allocations: 47.83 kB / 403.4 MB, free: 5.047 MB / 334.1 MB Notification: Performance of pre-optimization done (n=138): time 3.667e-06/0.3873, allocations: 4 kB / 403.4 MB, free: 5.043 MB / 334.1 MB Notification: Performance of matching and sorting (n=142): time 0.01438/0.4017, allocations: 6.649 MB / 410 MB, free: 14.2 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.501e-05/0.4018, allocations: 98.42 kB / 410.1 MB, free: 14.09 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003182/0.405, allocations: 1.914 MB / 412 MB, free: 12.13 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001327/0.4052, allocations: 45.7 kB / 412.1 MB, free: 12.08 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00123/0.4064, allocations: 1.459 MB / 413.5 MB, free: 10.6 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004996/0.4069, allocations: 489 kB / 414 MB, free: 10.12 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.283e-05/0.407, allocations: 36 kB / 414 MB, free: 10.08 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002117/0.4072, allocations: 373.9 kB / 414.4 MB, free: 9.711 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001278/0.4085, allocations: 0.7535 MB / 415.2 MB, free: 8.957 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001623/0.4102, allocations: 1.29 MB / 416.5 MB, free: 7.43 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001488/0.4117, allocations: 0.9355 MB / 417.4 MB, free: 6.492 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.185e-06/0.4117, allocations: 11.94 kB / 417.4 MB, free: 6.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.004765/0.4165, allocations: 2.772 MB / 420.2 MB, free: 3.668 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004833/0.417, allocations: 0.5756 MB / 420.8 MB, free: 2.863 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.395e-05/0.417, allocations: 16 kB / 420.8 MB, free: 2.848 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001229/0.4182, allocations: 0.5146 MB / 421.3 MB, free: 2.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001388/0.4196, allocations: 371.4 kB / 421.6 MB, free: 1.957 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007922/0.4276, allocations: 7.267 MB / 428.9 MB, free: 10.29 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001608/0.4292, allocations: 99.83 kB / 429 MB, free: 10.19 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001735/0.4294, allocations: 72 kB / 429.1 MB, free: 10.12 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.257e-06/0.4294, allocations: 4 kB / 429.1 MB, free: 10.12 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004475/0.4339, allocations: 2.531 MB / 431.6 MB, free: 7.551 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.056e-05/0.434, allocations: 20 kB / 431.6 MB, free: 7.531 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001233/0.4352, allocations: 0.5192 MB / 432.2 MB, free: 7 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001394/0.4366, allocations: 367.4 kB / 432.5 MB, free: 6.641 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008094/0.4447, allocations: 7.248 MB / 439.8 MB, free: 14.98 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001751/0.4465, allocations: 91.84 kB / 439.8 MB, free: 14.89 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002991/0.4468, allocations: 79.89 kB / 439.9 MB, free: 14.82 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 75 * 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 (190): * Single equations (assignments): 186 * 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 {(1,100.0%) 8,(1,100.0%) 1} * Non-linear torn systems: 1 {6 20} Notification: Performance of prepare postOptimizeDAE: time 0.002592/0.4494, allocations: 1.074 MB / 441 MB, free: 13.73 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006116/0.4501, allocations: 209.5 kB / 441.2 MB, free: 13.52 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004345/0.4544, allocations: 2.486 MB / 443.7 MB, free: 10.97 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-05/0.4544, allocations: 12.28 kB / 443.7 MB, free: 10.96 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.908e-05/0.4545, allocations: 4 kB / 443.7 MB, free: 10.96 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.545e-05/0.4545, allocations: 7.969 kB / 443.7 MB, free: 10.95 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009624/0.4641, allocations: 5.32 MB / 449 MB, free: 5.48 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.634e-06/0.4642, allocations: 0 / 449 MB, free: 5.48 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000849/0.465, allocations: 188 kB / 449.2 MB, free: 5.297 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001642/0.4667, allocations: 0.656 MB / 449.9 MB, free: 4.625 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.914e-05/0.4668, allocations: 28 kB / 449.9 MB, free: 4.598 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1951/0.662, allocations: 11.29 MB / 461.2 MB, free: 104 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.662, allocations: 2.844 kB / 461.2 MB, free: 104 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00504/0.667, allocations: 3.611 MB / 464.8 MB, free: 102.4 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008417/0.6679, allocations: 472.2 kB / 465.3 MB, free: 102.2 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002393/0.6682, allocations: 31.69 kB / 465.3 MB, free: 102.2 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008406/0.669, allocations: 90.64 kB / 465.4 MB, free: 102.2 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000273/0.6693, allocations: 111.8 kB / 465.5 MB, free: 102.2 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.531e-05/0.6694, allocations: 39.59 kB / 465.5 MB, free: 102.2 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001811/0.6712, allocations: 1.31 MB / 466.8 MB, free: 101.6 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6712, allocations: 0 / 466.8 MB, free: 101.6 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003051/0.6743, allocations: 1.059 MB / 467.9 MB, free: 101.5 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 5 (smpm.inertiaRotor.w,smpm.stator.zeroInductor.i0,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,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 (91): * Single equations (assignments): 86 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 8,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 8} * Non-linear torn systems: 1 {6 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003465/0.6746, allocations: 159.6 kB / 468.1 MB, free: 101.4 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00511/0.6797, allocations: 4.202 MB / 472.3 MB, free: 99.3 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.122e-06/0.6798, allocations: 3.969 kB / 472.3 MB, free: 99.3 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002107/0.6819, allocations: 1.79 MB / 474.1 MB, free: 98.25 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002592/0.6845, allocations: 0.6184 MB / 474.7 MB, free: 98.07 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008593/0.6931, allocations: 7.046 MB / 481.7 MB, free: 91.58 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001575/0.6947, allocations: 2.315 MB / 484 MB, free: 89.24 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001898/0.6966, allocations: 0.5334 MB / 484.6 MB, free: 88.7 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003006/0.6969, allocations: 127.4 kB / 484.7 MB, free: 88.58 MB / 382.1 MB Notification: Performance of SimCode: time 7.51e-07/0.6969, allocations: 0 / 484.7 MB, free: 88.58 MB / 382.1 MB Notification: Performance of Templates: time 0.0488/0.7457, allocations: 37.08 MB / 0.5095 GB, free: 51.46 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.pipe 2>&1)