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.0008766/0.0008765, allocations: 94.69 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009488/0.0009489, allocations: 194.4 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.33/1.33, allocations: 227.7 MB / 246.4 MB, free: 11.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002228/0.0002228, allocations: 8 kB / 307.1 MB, free: 1.121 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08846/0.08869, allocations: 51.52 MB / 358.6 MB, free: 13.61 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking): time 0.1707/0.2594, allocations: 14.31 MB / 373 MB, free: 9.535 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008152/0.2676, allocations: 5.033 MB / 378 MB, free: 9.328 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001598/0.2692, allocations: 92.38 kB / 378.1 MB, free: 9.305 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002122/0.2713, allocations: 0.8262 MB / 378.9 MB, free: 9.047 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002741/0.2741, allocations: 1.074 MB / 380 MB, free: 8.73 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0016/0.2757, allocations: 0.6608 MB / 380.6 MB, free: 8.668 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004219/0.2799, allocations: 3.985 MB / 384.6 MB, free: 7.727 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002674/0.2826, allocations: 2.215 MB / 386.8 MB, free: 7.297 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001921/0.2845, allocations: 1.284 MB / 388.1 MB, free: 7.012 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002147/0.2867, allocations: 1.637 MB / 389.8 MB, free: 6.359 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003862/0.2871, allocations: 205.4 kB / 390 MB, free: 6.355 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001105/0.2882, allocations: 416.7 kB / 390.4 MB, free: 6.285 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006471/0.2889, allocations: 0.8002 MB / 391.2 MB, free: 5.906 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007043/0.2896, allocations: 0.7374 MB / 391.9 MB, free: 5.457 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00359/0.2932, allocations: 5.289 MB / 397.2 MB, free: 1.879 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.066e-06/0.2932, allocations: 2.406 kB / 397.2 MB, free: 1.879 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2932, allocations: 1.312 kB / 397.2 MB, free: 1.879 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.44e-05/0.2933, allocations: 0 / 397.2 MB, free: 1.879 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.007195/0.3005, allocations: 3.725 MB / 400.9 MB, free: 15.47 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.253e-05/0.3005, allocations: 11.47 kB / 400.9 MB, free: 15.47 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00273/0.3033, allocations: 0.6355 MB / 401.6 MB, free: 15.16 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003625/0.3069, allocations: 2.213 MB / 403.8 MB, free: 13.6 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001892/0.3071, allocations: 235.8 kB / 404 MB, free: 13.5 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004913/0.3076, allocations: 308.7 kB / 404.3 MB, free: 13.39 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007132/0.3147, allocations: 4.166 MB / 408.5 MB, free: 9.383 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.003e-05/0.3148, allocations: 8 kB / 408.5 MB, free: 9.375 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002817/0.3151, allocations: 120 kB / 408.6 MB, free: 9.258 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001337/0.3153, allocations: 146.1 kB / 408.7 MB, free: 9.113 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006189/0.3214, allocations: 3.557 MB / 412.3 MB, free: 5.547 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01955/0.341, allocations: 13.95 MB / 426.2 MB, free: 7.293 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006103/0.3471, allocations: 6.178 MB / 432.4 MB, free: 348 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002054/0.3492, allocations: 1.388 MB / 433.8 MB, free: 14.96 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005293/0.3545, allocations: 3.354 MB / 437.2 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.273e-05/0.3546, allocations: 47.86 kB / 437.2 MB, free: 11.48 MB / 350.1 MB Notification: Performance of pre-optimization done (n=136): time 2.504e-06/0.3546, allocations: 0 / 437.2 MB, free: 11.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=140): time 0.01244/0.367, allocations: 6.551 MB / 443.8 MB, free: 4.742 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.476e-05/0.3671, allocations: 94.41 kB / 443.9 MB, free: 4.629 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002716/0.3698, allocations: 1.927 MB / 445.8 MB, free: 2.66 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.233e-05/0.3699, allocations: 49.7 kB / 445.8 MB, free: 2.605 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001038/0.371, allocations: 1.461 MB / 447.3 MB, free: 1.133 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003742/0.3714, allocations: 483.4 kB / 447.8 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.108e-05/0.3715, allocations: 32 kB / 447.8 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001588/0.3716, allocations: 385.8 kB / 448.2 MB, free: 256 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001187/0.3728, allocations: 0.734 MB / 448.9 MB, free: 15.52 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001571/0.3744, allocations: 1.283 MB / 450.2 MB, free: 14 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001423/0.3758, allocations: 0.9315 MB / 451.1 MB, free: 13.07 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.845e-06/0.3759, allocations: 4 kB / 451.1 MB, free: 13.06 MB / 366.1 MB Notification: Performance of matching and sorting (n=223) (initialization): time 0.004264/0.3801, allocations: 2.674 MB / 453.8 MB, free: 10.35 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003887/0.3805, allocations: 0.5795 MB / 454.4 MB, free: 9.539 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.408e-05/0.3806, allocations: 20 kB / 454.4 MB, free: 9.52 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00116/0.3817, allocations: 0.504 MB / 454.9 MB, free: 9.004 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001376/0.3831, allocations: 367.4 kB / 455.3 MB, free: 8.645 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007321/0.3905, allocations: 7.061 MB / 462.3 MB, free: 1.191 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001656/0.3921, allocations: 95.84 kB / 462.4 MB, free: 1.098 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001451/0.3923, allocations: 75.98 kB / 462.5 MB, free: 1.023 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.211e-06/0.3923, allocations: 0 / 462.5 MB, free: 1.023 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004042/0.3964, allocations: 2.452 MB / 464.9 MB, free: 14.54 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.858e-05/0.3964, allocations: 16 kB / 465 MB, free: 14.52 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001181/0.3976, allocations: 0.4957 MB / 465.5 MB, free: 14.02 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001309/0.3989, allocations: 363.4 kB / 465.8 MB, free: 13.66 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00726/0.4062, allocations: 7.051 MB / 472.9 MB, free: 6.207 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001493/0.4077, allocations: 87.84 kB / 472.9 MB, free: 6.121 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001334/0.4078, allocations: 72 kB / 473 MB, free: 6.051 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 (191): * Single equations (assignments): 187 * 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%) 5,(1,100.0%) 1} * Non-linear torn systems: 1 {6 20} Notification: Performance of prepare postOptimizeDAE: time 0.001844/0.4097, allocations: 1.067 MB / 474.1 MB, free: 4.973 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003432/0.41, allocations: 209.5 kB / 474.3 MB, free: 4.766 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004116/0.4142, allocations: 2.454 MB / 476.7 MB, free: 2.246 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.245e-05/0.4142, allocations: 12 kB / 476.8 MB, free: 2.234 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.738e-06/0.4142, allocations: 7.953 kB / 476.8 MB, free: 2.227 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.446e-05/0.4142, allocations: 7.984 kB / 476.8 MB, free: 2.219 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007855/0.4221, allocations: 5.268 MB / 482 MB, free: 12.83 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.214e-06/0.4221, allocations: 4.125 kB / 482 MB, free: 12.83 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008183/0.4229, allocations: 179.8 kB / 482.2 MB, free: 12.65 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001417/0.4244, allocations: 0.6288 MB / 482.8 MB, free: 12.01 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.619e-05/0.4245, allocations: 32 kB / 482.9 MB, free: 11.98 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01085/0.4353, allocations: 11.09 MB / 494 MB, free: 236 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.4353, allocations: 256 / 494 MB, free: 236 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005198/0.4405, allocations: 3.555 MB / 497.5 MB, free: 12.58 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009234/0.4415, allocations: 470.3 kB / 498 MB, free: 12.1 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003853/0.4419, allocations: 31.98 kB / 498 MB, free: 12.07 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001031/0.4429, allocations: 75.92 kB / 498.1 MB, free: 11.99 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002387/0.4432, allocations: 121 kB / 498.2 MB, free: 11.88 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.567e-05/0.4433, allocations: 39.98 kB / 498.2 MB, free: 11.84 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.00211/0.4454, allocations: 1.314 MB / 499.6 MB, free: 10.5 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4454, allocations: 0 / 499.6 MB, free: 10.5 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003387/0.4488, allocations: 1.062 MB / 0.4889 GB, free: 9.438 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 (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%) 5,(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.000321/0.4491, allocations: 189.2 kB / 0.4891 GB, free: 9.254 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005693/0.4548, allocations: 4.112 MB / 0.4931 GB, free: 5.027 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.3e-06/0.4548, allocations: 4 kB / 0.4931 GB, free: 5.023 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002349/0.4572, allocations: 1.769 MB / 0.4948 GB, free: 3.191 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002518/0.4597, allocations: 0.6246 MB / 0.4954 GB, free: 2.574 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0107/0.4704, allocations: 7.012 MB / 0.5023 GB, free: 11.52 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002098/0.4725, allocations: 2.311 MB / 0.5045 GB, free: 9.184 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001876/0.4744, allocations: 0.5412 MB / 0.5051 GB, free: 8.641 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003386/0.4748, allocations: 135.4 kB / 0.5052 GB, free: 8.512 MB / 430.1 MB Notification: Performance of SimCode: time 7.11e-07/0.4748, allocations: 0 / 0.5052 GB, free: 8.512 MB / 430.1 MB Notification: Performance of Templates: time 0.2202/0.695, allocations: 37.27 MB / 0.5416 GB, free: 132.8 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)