Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|// smpm.stator.zeroInductor.i0|smpm.is.1.|smpm.is.2.",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|// smpm.stator.zeroInductor.i0|smpm.is.1.|smpm.is.2.",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008096/0.0008093, allocations: 96.73 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001137/0.001137, allocations: 202.5 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.367/1.367, allocations: 227.7 MB / 246.8 MB, free: 11.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002407/0.0002408, allocations: 8 kB / 307.7 MB, free: 0.8008 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09104/0.0913, allocations: 51.53 MB / 359.3 MB, free: 13.27 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking): time 0.1951/0.2865, allocations: 15.32 MB / 374.6 MB, free: 9.812 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009947/0.2965, allocations: 5.293 MB / 379.9 MB, free: 9.418 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002832/0.2993, allocations: 92.38 kB / 380 MB, free: 9.395 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00406/0.3034, allocations: 0.9515 MB / 380.9 MB, free: 9.129 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005492/0.3089, allocations: 1.168 MB / 382.1 MB, free: 8.77 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002938/0.3119, allocations: 0.8747 MB / 383 MB, free: 8.301 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006035/0.3179, allocations: 4.302 MB / 387.3 MB, free: 6.414 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003207/0.3211, allocations: 2.641 MB / 389.9 MB, free: 5.277 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002287/0.3234, allocations: 1.314 MB / 391.2 MB, free: 4.711 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002445/0.3259, allocations: 1.717 MB / 392.9 MB, free: 4 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004272/0.3263, allocations: 200.1 kB / 393.1 MB, free: 4 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001312/0.3277, allocations: 439.8 kB / 393.6 MB, free: 3.922 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006256/0.3283, allocations: 0.804 MB / 394.4 MB, free: 3.523 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001651/0.33, allocations: 1.77 MB / 396.1 MB, free: 2.402 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004863/0.3348, allocations: 6.109 MB / 402.2 MB, free: 14.08 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.626e-06/0.3349, allocations: 0 / 402.2 MB, free: 14.08 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3349, allocations: 0 / 402.2 MB, free: 14.08 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001094/0.335, allocations: 4 kB / 402.2 MB, free: 14.08 MB / 318.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.00869/0.3437, allocations: 3.691 MB / 405.9 MB, free: 11.64 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.904e-05/0.3437, allocations: 13.55 kB / 406 MB, free: 11.63 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003116/0.3468, allocations: 0.6285 MB / 406.6 MB, free: 11.08 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003893/0.3508, allocations: 2.283 MB / 408.9 MB, free: 8.777 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001756/0.351, allocations: 234.8 kB / 409.1 MB, free: 8.547 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005014/0.3515, allocations: 318.7 kB / 409.4 MB, free: 8.238 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007057/0.3585, allocations: 4.186 MB / 413.6 MB, free: 3.969 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.495e-05/0.3586, allocations: 11.89 kB / 413.6 MB, free: 3.957 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003046/0.3589, allocations: 132 kB / 413.7 MB, free: 3.828 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001317/0.3591, allocations: 142.1 kB / 413.9 MB, free: 3.688 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00607/0.3651, allocations: 3.576 MB / 417.4 MB, free: 104 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02041/0.3856, allocations: 13.96 MB / 431.4 MB, free: 1.836 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006008/0.3916, allocations: 6.197 MB / 437.6 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002202/0.3939, allocations: 1.386 MB / 439 MB, free: 9.488 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005526/0.3994, allocations: 3.349 MB / 442.3 MB, free: 6.066 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.834e-05/0.3995, allocations: 55.86 kB / 442.4 MB, free: 6.004 MB / 350.1 MB Notification: Performance of pre-optimization done (n=136): time 2.805e-06/0.3995, allocations: 0 / 442.4 MB, free: 6.004 MB / 350.1 MB Notification: Performance of matching and sorting (n=140): time 0.01346/0.4129, allocations: 6.569 MB / 449 MB, free: 15.25 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.422e-05/0.413, allocations: 94.42 kB / 449 MB, free: 15.13 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002851/0.4159, allocations: 1.939 MB / 451 MB, free: 13.15 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001218/0.416, allocations: 53.7 kB / 451 MB, free: 13.09 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001007/0.417, allocations: 1.472 MB / 452.5 MB, free: 11.61 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004003/0.4174, allocations: 468 kB / 453 MB, free: 11.16 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002048/0.4176, allocations: 149.6 kB / 453.1 MB, free: 11 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.041e-05/0.4177, allocations: 301.1 kB / 453.4 MB, free: 10.71 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001223/0.419, allocations: 0.7495 MB / 454.2 MB, free: 9.961 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001521/0.4205, allocations: 1.29 MB / 455.4 MB, free: 8.438 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00282/0.4233, allocations: 2.118 MB / 457.6 MB, free: 6.09 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.398e-06/0.4234, allocations: 8 kB / 457.6 MB, free: 6.082 MB / 366.1 MB Notification: Performance of matching and sorting (n=223) (initialization): time 0.00445/0.4278, allocations: 2.706 MB / 460.3 MB, free: 3.336 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003455/0.4282, allocations: 0.5871 MB / 460.9 MB, free: 2.516 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.971e-05/0.4282, allocations: 16 kB / 460.9 MB, free: 2.5 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001176/0.4294, allocations: 0.5001 MB / 461.4 MB, free: 1.988 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001345/0.4307, allocations: 367.4 kB / 461.7 MB, free: 1.629 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007267/0.438, allocations: 7.063 MB / 468.8 MB, free: 10.17 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001712/0.4398, allocations: 103.9 kB / 468.9 MB, free: 10.07 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001356/0.4399, allocations: 75.98 kB / 469 MB, free: 9.992 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.435e-06/0.4399, allocations: 4 kB / 469 MB, free: 9.988 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003985/0.4439, allocations: 2.468 MB / 471.5 MB, free: 7.488 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.549e-05/0.444, allocations: 16 kB / 471.5 MB, free: 7.473 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001143/0.4451, allocations: 0.4996 MB / 472 MB, free: 6.961 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001343/0.4465, allocations: 363.5 kB / 472.3 MB, free: 6.605 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007645/0.4541, allocations: 7.057 MB / 479.4 MB, free: 15.15 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001988/0.4562, allocations: 92.27 kB / 479.5 MB, free: 15.06 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001485/0.4563, allocations: 75.94 kB / 479.5 MB, free: 14.99 MB / 398.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 (191): * Single equations (assignments): 187 * 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,5,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.00243/0.4588, allocations: 1.074 MB / 480.6 MB, free: 13.9 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005576/0.4593, allocations: 209.4 kB / 480.8 MB, free: 13.7 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004271/0.4636, allocations: 2.45 MB / 483.3 MB, free: 11.18 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.394e-05/0.4636, allocations: 12 kB / 483.3 MB, free: 11.17 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.616e-06/0.4636, allocations: 4 kB / 483.3 MB, free: 11.16 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.629e-05/0.4637, allocations: 7.969 kB / 483.3 MB, free: 11.16 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00842/0.4721, allocations: 5.28 MB / 488.6 MB, free: 5.746 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.588e-06/0.4721, allocations: 7.984 kB / 488.6 MB, free: 5.738 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008391/0.473, allocations: 179.8 kB / 488.8 MB, free: 5.562 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001524/0.4745, allocations: 0.6366 MB / 489.4 MB, free: 4.91 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.687e-05/0.4746, allocations: 31.98 kB / 489.4 MB, free: 4.879 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01106/0.4857, allocations: 11.1 MB / 0.4888 GB, free: 9.129 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.608e-06/0.4857, allocations: 4 kB / 0.4888 GB, free: 9.125 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005424/0.4912, allocations: 3.576 MB / 0.4923 GB, free: 5.457 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001062/0.4922, allocations: 462.4 kB / 0.4927 GB, free: 4.984 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002771/0.4925, allocations: 28.38 kB / 0.4928 GB, free: 4.957 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009916/0.4935, allocations: 83.92 kB / 0.4928 GB, free: 4.875 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002884/0.4938, allocations: 121 kB / 0.4929 GB, free: 4.754 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.332e-05/0.4939, allocations: 36 kB / 0.493 GB, free: 4.719 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001869/0.4958, allocations: 1.333 MB / 0.4943 GB, free: 3.363 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.4958, allocations: 0 / 0.4943 GB, free: 3.363 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003126/0.4989, allocations: 1.074 MB / 0.4953 GB, free: 2.289 MB / 414.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 (92): * Single equations (assignments): 87 * 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,5,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.0003247/0.4993, allocations: 181.3 kB / 0.4955 GB, free: 2.105 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005757/0.505, allocations: 4.135 MB / 0.4995 GB, free: 13.86 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.636e-06/0.5051, allocations: 0 / 0.4995 GB, free: 13.86 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002375/0.5074, allocations: 1.763 MB / 0.5013 GB, free: 12.03 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00327/0.5107, allocations: 0.6209 MB / 0.5019 GB, free: 11.42 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01024/0.521, allocations: 7.345 MB / 0.509 GB, free: 4.027 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002089/0.5231, allocations: 2.323 MB / 0.5113 GB, free: 1.68 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002036/0.5252, allocations: 0.5373 MB / 0.5118 GB, free: 1.141 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003434/0.5255, allocations: 135.4 kB / 0.512 GB, free: 1.012 MB / 430.1 MB Notification: Performance of SimCode: time 7.61e-07/0.5255, allocations: 0 / 0.512 GB, free: 1.012 MB / 430.1 MB Notification: Performance of Templates: time 0.2281/0.7536, allocations: 38.19 MB / 0.5493 GB, free: 133.4 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.sim & ./Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.pipe 2>&1)