Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.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_4.0.0_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_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009524/0.0009524, allocations: 97.83 kB / 16.31 MB, free: 5.992 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.001153/0.001154, allocations: 184.6 kB / 17.2 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.301/1.301, allocations: 223.2 MB / 241.1 MB, free: 5.449 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000294/0.000294, allocations: 6.875 kB / 300.7 MB, free: 6.004 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08045/0.08076, allocations: 50.43 MB / 351.2 MB, free: 11.73 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking): time 0.01211/0.09291, allocations: 12.62 MB / 363.8 MB, free: 15.07 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009434/0.1024, allocations: 4.941 MB / 368.7 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002442/0.1049, allocations: 79.69 kB / 368.8 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003067/0.108, allocations: 0.9172 MB / 369.7 MB, free: 9.113 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004273/0.1122, allocations: 1.398 MB / 371.1 MB, free: 7.711 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002058/0.1143, allocations: 0.6833 MB / 371.8 MB, free: 7.031 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004403/0.1187, allocations: 2.734 MB / 374.5 MB, free: 4.293 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003146/0.1219, allocations: 2.215 MB / 376.7 MB, free: 2.039 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00174/0.1236, allocations: 1.234 MB / 378 MB, free: 0.8008 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002126/0.1258, allocations: 1.467 MB / 379.4 MB, free: 15.33 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006162/0.1264, allocations: 200 kB / 379.6 MB, free: 15.13 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001258/0.1277, allocations: 363.8 kB / 380 MB, free: 14.78 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008181/0.1285, allocations: 0.7553 MB / 380.7 MB, free: 14.02 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007553/0.1293, allocations: 0.7382 MB / 381.5 MB, free: 13.27 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004312/0.1336, allocations: 5.212 MB / 386.7 MB, free: 8.047 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.735e-06/0.1336, allocations: 0 / 386.7 MB, free: 8.047 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1336, allocations: 0 / 386.7 MB, free: 8.047 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001225/0.1338, allocations: 0 / 386.7 MB, free: 8.047 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.007713/0.1415, allocations: 3.684 MB / 390.4 MB, free: 4.289 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.508e-05/0.1415, allocations: 8.031 kB / 390.4 MB, free: 4.281 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002682/0.1442, allocations: 0.6319 MB / 391 MB, free: 3.645 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00418/0.1484, allocations: 2.227 MB / 393.2 MB, free: 1.363 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001815/0.1486, allocations: 230.2 kB / 393.5 MB, free: 1.137 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004964/0.1491, allocations: 319.8 kB / 393.8 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007015/0.1561, allocations: 4.126 MB / 397.9 MB, free: 12.61 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.382e-05/0.1562, allocations: 7.984 kB / 397.9 MB, free: 12.6 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002732/0.1565, allocations: 128 kB / 398 MB, free: 12.48 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001361/0.1567, allocations: 142.1 kB / 398.2 MB, free: 12.34 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005854/0.1625, allocations: 3.553 MB / 401.7 MB, free: 8.773 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02031/0.1828, allocations: 13.71 MB / 415.4 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005348/0.1882, allocations: 5.886 MB / 421.3 MB, free: 4.082 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005192/0.1935, allocations: 3.175 MB / 424.5 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.371e-05/0.1935, allocations: 51.88 kB / 424.6 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of pre-optimization done (n=143): time 3.457e-06/0.1935, allocations: 0 / 424.6 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of matching and sorting (n=147): time 0.17/0.3635, allocations: 6.725 MB / 431.3 MB, free: 60.57 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.845e-05/0.3636, allocations: 95.89 kB / 431.4 MB, free: 60.47 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003902/0.3675, allocations: 1.839 MB / 433.2 MB, free: 60.24 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001938/0.3677, allocations: 51.2 kB / 433.3 MB, free: 60.21 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008687/0.3686, allocations: 1.454 MB / 434.7 MB, free: 59.53 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005437/0.3691, allocations: 0.4972 MB / 435.2 MB, free: 59.22 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.373e-05/0.3693, allocations: 35.59 kB / 435.2 MB, free: 59.22 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001729/0.3694, allocations: 378.1 kB / 435.6 MB, free: 58.91 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001642/0.3711, allocations: 0.7628 MB / 436.4 MB, free: 58.91 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001598/0.3727, allocations: 1.293 MB / 437.7 MB, free: 58.29 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001439/0.3741, allocations: 0.9562 MB / 438.6 MB, free: 58.05 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.026e-05/0.3742, allocations: 4.188 kB / 438.6 MB, free: 58.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=229) (initialization): time 0.004266/0.3784, allocations: 2.81 MB / 441.4 MB, free: 56.81 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009254/0.3794, allocations: 6.682 MB / 448.1 MB, free: 49.63 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.738e-05/0.3794, allocations: 16.78 kB / 448.1 MB, free: 49.63 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001031/0.3804, allocations: 0.5191 MB / 448.7 MB, free: 49.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001235/0.3817, allocations: 380.5 kB / 449 MB, free: 49.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005755/0.3875, allocations: 7.403 MB / 456.4 MB, free: 43.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001292/0.3888, allocations: 98.48 kB / 456.5 MB, free: 43.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001069/0.3889, allocations: 75.22 kB / 456.6 MB, free: 43.79 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.796e-06/0.3889, allocations: 8.656 kB / 456.6 MB, free: 43.79 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003295/0.3922, allocations: 2.582 MB / 459.2 MB, free: 42.51 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.739e-05/0.3922, allocations: 19.14 kB / 459.2 MB, free: 42.51 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000912/0.3931, allocations: 0.5252 MB / 459.7 MB, free: 42.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001199/0.3944, allocations: 370.2 kB / 460.1 MB, free: 42.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005528/0.3999, allocations: 7.409 MB / 467.5 MB, free: 35.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001318/0.4012, allocations: 87.94 kB / 467.6 MB, free: 35.24 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001027/0.4013, allocations: 72 kB / 467.7 MB, free: 35.17 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * 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 (194): * Single equations (assignments): 190 * 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.00155/0.4029, allocations: 1.07 MB / 468.7 MB, free: 34.09 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002609/0.4032, allocations: 205.6 kB / 468.9 MB, free: 33.88 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00328/0.4065, allocations: 2.532 MB / 471.5 MB, free: 31.29 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.637e-06/0.4065, allocations: 16 kB / 471.5 MB, free: 31.28 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.374e-06/0.4065, allocations: 7.953 kB / 471.5 MB, free: 31.27 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.18e-05/0.4065, allocations: 12.09 kB / 471.5 MB, free: 31.26 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006586/0.4131, allocations: 5.336 MB / 476.8 MB, free: 25.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.765e-06/0.4131, allocations: 0 / 476.8 MB, free: 25.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008215/0.414, allocations: 199.7 kB / 477 MB, free: 25.6 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001252/0.4152, allocations: 0.646 MB / 477.7 MB, free: 24.94 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.845e-05/0.4153, allocations: 28 kB / 477.7 MB, free: 24.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008514/0.4239, allocations: 11.49 MB / 489.2 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.117e-06/0.4239, allocations: 4 kB / 489.2 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004687/0.4286, allocations: 3.797 MB / 493 MB, free: 8.801 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001305/0.4299, allocations: 466.4 kB / 493.5 MB, free: 8.324 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002499/0.4302, allocations: 28 kB / 493.5 MB, free: 8.297 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009162/0.4311, allocations: 94.42 kB / 493.6 MB, free: 8.207 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000397/0.4315, allocations: 113.1 kB / 493.7 MB, free: 8.094 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.893e-05/0.4316, allocations: 40 kB / 493.7 MB, free: 8.055 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001834/0.4335, allocations: 1.246 MB / 495 MB, free: 6.785 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4335, allocations: 0 / 495 MB, free: 6.785 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.003199/0.4367, allocations: 1.059 MB / 496 MB, free: 5.727 MB / 350.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 (96): * Single equations (assignments): 91 * 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.0004172/0.4371, allocations: 189.2 kB / 496.2 MB, free: 5.539 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.005561/0.4427, allocations: 4.254 MB / 0.4887 GB, free: 1.184 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.535e-06/0.4427, allocations: 0.875 kB / 0.4887 GB, free: 1.184 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002416/0.4452, allocations: 1.811 MB / 0.4905 GB, free: 15.31 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002618/0.4478, allocations: 0.5885 MB / 0.4911 GB, free: 14.73 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01062/0.4584, allocations: 7.009 MB / 0.4979 GB, free: 7.684 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00205/0.4605, allocations: 2.377 MB / 0.5003 GB, free: 5.281 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001974/0.4625, allocations: 0.5293 MB / 0.5008 GB, free: 4.75 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003192/0.4628, allocations: 127.4 kB / 0.5009 GB, free: 4.625 MB / 366.1 MB Notification: Performance of SimCode: time 1.613e-06/0.4628, allocations: 0 / 0.5009 GB, free: 4.625 MB / 366.1 MB Notification: Performance of Templates: time 0.06131/0.5242, allocations: 36.44 MB / 0.5365 GB, free: 496 kB / 398.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.pipe 2>&1)