Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.0009896/0.0009897, allocations: 86.2 kB / 16.31 MB, free: 6.457 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.001059/0.00106, allocations: 183.4 kB / 17.21 MB, free: 6.32 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.527/1.527, allocations: 205.4 MB / 223.4 MB, free: 5.266 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.0004681/0.0004682, allocations: 8 kB / 280.1 MB, free: 12.67 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2808/0.2813, allocations: 47.59 MB / 327.7 MB, free: 1.66 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking): time 0.01711/0.2984, allocations: 13.74 MB / 341.5 MB, free: 5.852 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01208/0.3106, allocations: 4.854 MB / 346.3 MB, free: 0.9844 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004132/0.3148, allocations: 83.62 kB / 346.4 MB, free: 0.9023 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003834/0.3186, allocations: 0.8078 MB / 347.2 MB, free: 92 kB / 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.004635/0.3233, allocations: 1.099 MB / 348.3 MB, free: 14.98 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002407/0.3257, allocations: 0.6393 MB / 349 MB, free: 14.34 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.006441/0.3321, allocations: 3.942 MB / 352.9 MB, free: 10.38 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004429/0.3366, allocations: 2.143 MB / 355.1 MB, free: 8.199 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002893/0.3395, allocations: 1.292 MB / 356.3 MB, free: 6.902 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003631/0.3432, allocations: 1.642 MB / 358 MB, free: 5.254 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001226/0.3444, allocations: 204 kB / 358.2 MB, free: 5.055 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002073/0.3465, allocations: 391.8 kB / 358.6 MB, free: 4.672 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001608/0.3482, allocations: 0.8097 MB / 359.4 MB, free: 3.859 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001649/0.3498, allocations: 0.7343 MB / 360.1 MB, free: 3.117 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007819/0.3577, allocations: 5.243 MB / 365.4 MB, free: 13.86 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.139e-05/0.3577, allocations: 0 / 365.4 MB, free: 13.86 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.384e-06/0.3577, allocations: 3.938 kB / 365.4 MB, free: 13.86 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002667/0.358, allocations: 0 / 365.4 MB, free: 13.86 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.01096/0.369, allocations: 3.7 MB / 369.1 MB, free: 10.08 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.117e-05/0.369, allocations: 11.97 kB / 369.1 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003557/0.3726, allocations: 0.6319 MB / 369.7 MB, free: 9.434 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005716/0.3784, allocations: 2.106 MB / 371.8 MB, free: 7.273 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002953/0.3787, allocations: 238.2 kB / 372 MB, free: 7.039 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009888/0.3797, allocations: 311.9 kB / 372.3 MB, free: 6.734 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01059/0.3903, allocations: 4.154 MB / 376.5 MB, free: 2.492 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001785/0.3905, allocations: 7.844 kB / 376.5 MB, free: 2.484 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008122/0.3914, allocations: 128 kB / 376.6 MB, free: 2.359 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001921/0.3916, allocations: 146.1 kB / 376.8 MB, free: 2.215 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009081/0.4007, allocations: 3.533 MB / 380.3 MB, free: 14.67 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02977/0.4305, allocations: 13.82 MB / 394.1 MB, free: 484 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006445/0.437, allocations: 5.894 MB / 400 MB, free: 9.859 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002478/0.4395, allocations: 1.366 MB / 401.4 MB, free: 8.488 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006255/0.4458, allocations: 3.182 MB / 404.6 MB, free: 5.238 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.829e-05/0.4459, allocations: 51.83 kB / 404.6 MB, free: 5.18 MB / 334.1 MB Notification: Performance of pre-optimization done (n=138): time 3.306e-06/0.4459, allocations: 7.875 kB / 404.6 MB, free: 5.172 MB / 334.1 MB Notification: Performance of matching and sorting (n=142): time 0.01343/0.4593, allocations: 6.645 MB / 411.3 MB, free: 14.34 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.343e-05/0.4594, allocations: 94.42 kB / 411.4 MB, free: 14.22 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003398/0.4628, allocations: 1.918 MB / 413.3 MB, free: 12.26 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001068/0.463, allocations: 49.7 kB / 413.3 MB, free: 12.21 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001186/0.4642, allocations: 1.451 MB / 414.8 MB, free: 10.74 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004441/0.4646, allocations: 489 kB / 415.3 MB, free: 10.25 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.836e-05/0.4647, allocations: 32 kB / 415.3 MB, free: 10.22 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001808/0.4649, allocations: 381.8 kB / 415.7 MB, free: 9.844 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00131/0.4662, allocations: 0.7534 MB / 416.4 MB, free: 9.09 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001655/0.4679, allocations: 1.283 MB / 417.7 MB, free: 7.57 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00161/0.4695, allocations: 0.9472 MB / 418.7 MB, free: 6.621 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.399e-05/0.4695, allocations: 4 kB / 418.7 MB, free: 6.617 MB / 350.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.004855/0.4744, allocations: 2.764 MB / 421.4 MB, free: 3.812 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004605/0.4749, allocations: 0.5784 MB / 422 MB, free: 3.008 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.92e-05/0.4749, allocations: 23.98 kB / 422 MB, free: 2.984 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001269/0.4762, allocations: 0.5108 MB / 422.5 MB, free: 2.461 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001459/0.4777, allocations: 379.3 kB / 422.9 MB, free: 2.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007912/0.4856, allocations: 7.256 MB / 430.2 MB, free: 10.43 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001659/0.4873, allocations: 100 kB / 430.3 MB, free: 10.34 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002278/0.4875, allocations: 79.94 kB / 430.3 MB, free: 10.26 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.257e-06/0.4876, allocations: 4 kB / 430.3 MB, free: 10.25 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004515/0.4921, allocations: 2.531 MB / 432.9 MB, free: 7.688 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.449e-05/0.4921, allocations: 19.94 kB / 432.9 MB, free: 7.668 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001319/0.4935, allocations: 0.5114 MB / 433.4 MB, free: 7.145 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001475/0.495, allocations: 371.4 kB / 433.8 MB, free: 6.781 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008247/0.5032, allocations: 7.256 MB / 441 MB, free: 15.12 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001818/0.5051, allocations: 91.8 kB / 441.1 MB, free: 15.03 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003191/0.5054, allocations: 76 kB / 441.2 MB, free: 14.95 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.002667/0.5081, allocations: 1.074 MB / 442.3 MB, free: 13.87 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008142/0.5089, allocations: 209.5 kB / 442.5 MB, free: 13.66 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005121/0.5141, allocations: 2.482 MB / 444.9 MB, free: 11.11 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.916e-05/0.5141, allocations: 19.98 kB / 445 MB, free: 11.09 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.901e-05/0.5141, allocations: 7.938 kB / 445 MB, free: 11.09 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.638e-05/0.5142, allocations: 3.984 kB / 445 MB, free: 11.08 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01049/0.5247, allocations: 5.32 MB / 450.3 MB, free: 5.613 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.339e-05/0.5247, allocations: 7.953 kB / 450.3 MB, free: 5.605 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008769/0.5256, allocations: 188 kB / 450.5 MB, free: 5.422 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001654/0.5273, allocations: 0.6561 MB / 451.1 MB, free: 4.75 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00013/0.5274, allocations: 35.98 kB / 451.2 MB, free: 4.715 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2111/0.7385, allocations: 11.29 MB / 462.5 MB, free: 104.1 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.762e-06/0.7386, allocations: 6.062 kB / 462.5 MB, free: 104.1 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006074/0.7446, allocations: 3.615 MB / 466.1 MB, free: 102.5 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001104/0.7458, allocations: 461.5 kB / 466.5 MB, free: 102.3 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005347/0.7463, allocations: 34.19 kB / 466.6 MB, free: 102.3 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001214/0.7476, allocations: 85.59 kB / 466.7 MB, free: 102.3 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002918/0.7479, allocations: 114 kB / 466.8 MB, free: 102.2 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.245e-05/0.748, allocations: 39.38 kB / 466.8 MB, free: 102.2 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002422/0.7504, allocations: 1.309 MB / 468.1 MB, free: 101.7 MB / 382.1 MB Notification: Performance of sort global known variables: time 6.91e-07/0.7504, allocations: 0 / 468.1 MB, free: 101.7 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.004235/0.7547, allocations: 1.063 MB / 469.2 MB, free: 101.6 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.0003931/0.7551, allocations: 165.9 kB / 469.3 MB, free: 101.5 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005758/0.7608, allocations: 4.192 MB / 473.5 MB, free: 99.38 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.456e-06/0.7609, allocations: 0 / 473.5 MB, free: 99.38 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002362/0.7633, allocations: 1.79 MB / 475.3 MB, free: 98.33 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003304/0.7666, allocations: 0.6172 MB / 475.9 MB, free: 98.14 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01142/0.778, allocations: 7.047 MB / 483 MB, free: 91.64 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002353/0.7804, allocations: 2.311 MB / 485.3 MB, free: 89.31 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002397/0.7829, allocations: 0.5334 MB / 485.8 MB, free: 88.77 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005111/0.7834, allocations: 131.4 kB / 486 MB, free: 88.64 MB / 382.1 MB Notification: Performance of SimCode: time 1.794e-06/0.7834, allocations: 3.938 kB / 486 MB, free: 88.64 MB / 382.1 MB Notification: Performance of Templates: time 0.05519/0.8386, allocations: 37.07 MB / 0.5108 GB, free: 51.53 MB / 382.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.pipe 2>&1)