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.001036/0.001036, allocations: 91.14 kB / 15.36 MB, free: 0.7383 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.007545/0.007545, allocations: 172 kB / 16.26 MB, free: 6.613 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.504/1.504, allocations: 205.4 MB / 222.4 MB, free: 5.562 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.0006099/0.00061, allocations: 12 kB / 279.5 MB, free: 12.51 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.288/0.2886, allocations: 47.58 MB / 327 MB, free: 1.383 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking): time 0.01858/0.3073, allocations: 14.71 MB / 341.7 MB, free: 4.594 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01321/0.3206, allocations: 5.09 MB / 346.8 MB, free: 15.48 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004316/0.3249, allocations: 83.62 kB / 346.9 MB, free: 15.4 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003946/0.3289, allocations: 0.9288 MB / 347.8 MB, free: 14.47 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005785/0.3347, allocations: 1.193 MB / 349 MB, free: 13.27 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003465/0.3382, allocations: 0.8498 MB / 349.9 MB, free: 12.42 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.007563/0.3458, allocations: 4.258 MB / 354.1 MB, free: 8.145 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005585/0.3514, allocations: 2.569 MB / 356.7 MB, free: 5.508 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003271/0.3547, allocations: 1.311 MB / 358 MB, free: 4.191 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004228/0.359, allocations: 1.719 MB / 359.7 MB, free: 2.465 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001138/0.3602, allocations: 204 kB / 359.9 MB, free: 2.266 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002301/0.3625, allocations: 419.7 kB / 360.4 MB, free: 1.855 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001736/0.3642, allocations: 0.8094 MB / 361.2 MB, free: 1.043 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004988/0.3693, allocations: 1.77 MB / 362.9 MB, free: 15.25 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01023/0.3795, allocations: 6.073 MB / 369 MB, free: 9.164 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.013e-06/0.3796, allocations: 0 / 369 MB, free: 9.164 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.537e-06/0.3796, allocations: 0 / 369 MB, free: 9.164 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002653/0.3799, allocations: 0 / 369 MB, free: 9.164 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.01165/0.3915, allocations: 3.661 MB / 372.7 MB, free: 5.43 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.306e-05/0.3916, allocations: 8.031 kB / 372.7 MB, free: 5.422 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004017/0.3956, allocations: 0.6367 MB / 373.3 MB, free: 4.781 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005516/0.4012, allocations: 2.169 MB / 375.5 MB, free: 2.559 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003042/0.4015, allocations: 234.6 kB / 375.7 MB, free: 2.328 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001418/0.4029, allocations: 315.8 kB / 376 MB, free: 2.02 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01183/0.4148, allocations: 4.185 MB / 380.2 MB, free: 13.75 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001658/0.415, allocations: 4 kB / 380.2 MB, free: 13.74 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008482/0.4159, allocations: 127.9 kB / 380.3 MB, free: 13.62 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001831/0.4161, allocations: 146.1 kB / 380.5 MB, free: 13.47 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009224/0.4253, allocations: 3.553 MB / 384 MB, free: 9.91 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03095/0.4563, allocations: 13.83 MB / 397.9 MB, free: 11.7 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006591/0.463, allocations: 5.901 MB / 403.8 MB, free: 5.078 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002666/0.4657, allocations: 1.378 MB / 405.1 MB, free: 3.695 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006934/0.4726, allocations: 3.186 MB / 408.3 MB, free: 452 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.27e-05/0.4727, allocations: 47.88 kB / 408.4 MB, free: 396 kB / 334.1 MB Notification: Performance of pre-optimization done (n=138): time 3.787e-06/0.4727, allocations: 0 / 408.4 MB, free: 396 kB / 334.1 MB Notification: Performance of matching and sorting (n=142): time 0.01469/0.4874, allocations: 6.684 MB / 415.1 MB, free: 9.512 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.896e-05/0.4875, allocations: 94.42 kB / 415.1 MB, free: 9.398 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003335/0.4909, allocations: 1.942 MB / 417.1 MB, free: 7.414 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001821/0.4911, allocations: 45.7 kB / 417.1 MB, free: 7.363 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001009/0.4921, allocations: 1.455 MB / 418.6 MB, free: 5.891 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000431/0.4925, allocations: 493 kB / 419.1 MB, free: 5.402 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002029/0.4928, allocations: 137.6 kB / 419.2 MB, free: 5.262 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.676e-05/0.4929, allocations: 305.1 kB / 419.5 MB, free: 4.961 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001298/0.4942, allocations: 0.7535 MB / 420.3 MB, free: 4.211 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001578/0.4958, allocations: 1.302 MB / 421.6 MB, free: 2.668 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002855/0.4986, allocations: 2.142 MB / 423.7 MB, free: 304 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.128e-06/0.4986, allocations: 8 kB / 423.7 MB, free: 296 kB / 350.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.004621/0.5033, allocations: 2.76 MB / 426.5 MB, free: 13.48 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004636/0.5038, allocations: 0.5835 MB / 427.1 MB, free: 12.66 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.593e-05/0.5038, allocations: 16 kB / 427.1 MB, free: 12.65 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001248/0.505, allocations: 0.5185 MB / 427.6 MB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0014/0.5065, allocations: 375.4 kB / 428 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008058/0.5145, allocations: 7.259 MB / 435.2 MB, free: 4.086 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002009/0.5166, allocations: 100 kB / 435.3 MB, free: 3.988 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000179/0.5168, allocations: 72.19 kB / 435.4 MB, free: 3.918 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.899e-06/0.5168, allocations: 4 kB / 435.4 MB, free: 3.914 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004224/0.521, allocations: 2.539 MB / 437.9 MB, free: 1.344 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.968e-05/0.5211, allocations: 16 kB / 437.9 MB, free: 1.328 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001197/0.5223, allocations: 0.523 MB / 438.5 MB, free: 0.793 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001364/0.5237, allocations: 363.4 kB / 438.8 MB, free: 448 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008176/0.5318, allocations: 7.279 MB / 446.1 MB, free: 8.758 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002045/0.5339, allocations: 84.03 kB / 446.2 MB, free: 8.676 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001738/0.5341, allocations: 79.92 kB / 446.3 MB, free: 8.598 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_n.idealDiode[3].off,diodeBridge2mPulse.diode_n.idealDiode[2].off,diodeBridge2mPulse.diode_n.idealDiode[1].off,diodeBridge2mPulse.diode_p.idealDiode[3].off,diodeBridge2mPulse.diode_p.idealDiode[2].off,diodeBridge2mPulse.diode_p.idealDiode[1].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 (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,8,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,20)} Notification: Performance of prepare postOptimizeDAE: time 0.002465/0.5366, allocations: 1.078 MB / 447.3 MB, free: 7.508 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006132/0.5372, allocations: 205.5 kB / 447.5 MB, free: 7.305 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00443/0.5417, allocations: 2.494 MB / 450 MB, free: 4.75 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.226e-05/0.5417, allocations: 16 kB / 450 MB, free: 4.734 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.749e-06/0.5417, allocations: 4 kB / 450 MB, free: 4.73 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.488e-05/0.5417, allocations: 7.984 kB / 450.1 MB, free: 4.723 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.227/0.7687, allocations: 5.322 MB / 455.4 MB, free: 108 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.919e-05/0.7688, allocations: 9.125 kB / 455.4 MB, free: 108 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001033/0.7698, allocations: 181.7 kB / 455.6 MB, free: 108 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001785/0.7716, allocations: 0.6556 MB / 456.2 MB, free: 107.9 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001415/0.7718, allocations: 31.45 kB / 456.2 MB, free: 107.9 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009515/0.7813, allocations: 11.33 MB / 467.6 MB, free: 100 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.7813, allocations: 7.906 kB / 467.6 MB, free: 100 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004621/0.7859, allocations: 3.633 MB / 471.2 MB, free: 98.35 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008637/0.7868, allocations: 461.5 kB / 471.7 MB, free: 98.15 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002201/0.7871, allocations: 27.84 kB / 471.7 MB, free: 98.13 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008797/0.788, allocations: 83.45 kB / 471.8 MB, free: 98.11 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003171/0.7883, allocations: 123.1 kB / 471.9 MB, free: 98.09 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.553e-05/0.7884, allocations: 37.41 kB / 471.9 MB, free: 98.08 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001822/0.7902, allocations: 1.327 MB / 473.3 MB, free: 97.54 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.7902, allocations: 2.812 kB / 473.3 MB, free: 97.54 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003022/0.7932, allocations: 1.058 MB / 474.3 MB, free: 97.46 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 (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,8,100.0%), (1,8,100.0%), (1,1,100.0%), (2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,20)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003245/0.7936, allocations: 163.1 kB / 474.5 MB, free: 97.34 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004952/0.7985, allocations: 4.218 MB / 478.7 MB, free: 95.2 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.021e-06/0.7986, allocations: 0 / 478.7 MB, free: 95.2 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002059/0.8006, allocations: 1.797 MB / 480.5 MB, free: 93.55 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003265/0.8039, allocations: 0.6138 MB / 481.1 MB, free: 92.96 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009291/0.8132, allocations: 7.379 MB / 488.5 MB, free: 85.62 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001627/0.8149, allocations: 2.315 MB / 490.8 MB, free: 83.28 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001775/0.8167, allocations: 0.5334 MB / 491.3 MB, free: 82.75 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002907/0.817, allocations: 131.4 kB / 491.5 MB, free: 82.62 MB / 382.1 MB Notification: Performance of SimCode: time 6.81e-07/0.817, allocations: 0 / 491.5 MB, free: 82.62 MB / 382.1 MB Notification: Performance of Templates: time 0.05317/0.8701, allocations: 38.02 MB / 0.5171 GB, free: 44.55 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)