Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.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.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.001128/0.001128, allocations: 86.72 kB / 15.06 MB, free: 1.09 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.001714/0.001714, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.698/1.698, allocations: 205.4 MB / 222.1 MB, free: 5.645 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.0004714/0.0004714, allocations: 10.81 kB / 278.9 MB, free: 12.82 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.324/0.3245, allocations: 47.59 MB / 326.5 MB, free: 1.395 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking): time 0.01709/0.3416, allocations: 13.74 MB / 340.2 MB, free: 5.723 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0131/0.3547, allocations: 4.85 MB / 345.1 MB, free: 0.8594 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003379/0.3582, allocations: 87.62 kB / 345.2 MB, free: 0.7734 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003186/0.3614, allocations: 0.8079 MB / 346 MB, free: 15.96 MB / 286.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.004681/0.3661, allocations: 1.092 MB / 347.1 MB, free: 14.86 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002631/0.3687, allocations: 0.6432 MB / 347.7 MB, free: 14.22 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.006914/0.3757, allocations: 3.954 MB / 351.7 MB, free: 10.25 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004301/0.38, allocations: 2.135 MB / 353.8 MB, free: 8.07 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002701/0.3827, allocations: 1.292 MB / 355.1 MB, free: 6.773 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003215/0.3859, allocations: 1.642 MB / 356.7 MB, free: 5.125 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009346/0.3869, allocations: 204 kB / 356.9 MB, free: 4.926 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001718/0.3886, allocations: 403.7 kB / 357.3 MB, free: 4.531 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00104/0.3897, allocations: 0.798 MB / 358.1 MB, free: 3.73 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00116/0.3908, allocations: 0.7381 MB / 358.9 MB, free: 2.984 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006193/0.397, allocations: 5.244 MB / 364.1 MB, free: 13.73 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.963e-06/0.3971, allocations: 0 / 364.1 MB, free: 13.73 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.919e-06/0.3971, allocations: 0 / 364.1 MB, free: 13.73 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002117/0.3973, allocations: 3.938 kB / 364.1 MB, free: 13.72 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.009414/0.4067, allocations: 3.696 MB / 367.8 MB, free: 9.953 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.329e-05/0.4068, allocations: 12.03 kB / 367.8 MB, free: 9.941 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002915/0.4097, allocations: 0.628 MB / 368.4 MB, free: 9.309 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003945/0.4137, allocations: 2.102 MB / 370.5 MB, free: 7.152 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001805/0.4139, allocations: 242.2 kB / 370.8 MB, free: 6.914 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004346/0.4143, allocations: 307.9 kB / 371.1 MB, free: 6.613 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007366/0.4217, allocations: 4.162 MB / 375.2 MB, free: 2.363 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.886e-05/0.4218, allocations: 3.906 kB / 375.2 MB, free: 2.359 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002795/0.4221, allocations: 132 kB / 375.4 MB, free: 2.23 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000139/0.4222, allocations: 146.1 kB / 375.5 MB, free: 2.086 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005853/0.4281, allocations: 3.541 MB / 379.1 MB, free: 14.54 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01958/0.4477, allocations: 13.81 MB / 392.9 MB, free: 356 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005766/0.4535, allocations: 5.906 MB / 398.8 MB, free: 9.727 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002169/0.4557, allocations: 1.362 MB / 400.1 MB, free: 8.355 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005568/0.4613, allocations: 3.178 MB / 403.3 MB, free: 5.109 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.397e-05/0.4614, allocations: 55.77 kB / 403.4 MB, free: 5.047 MB / 334.1 MB Notification: Performance of pre-optimization done (n=138): time 6.873e-06/0.4614, allocations: 0 / 403.4 MB, free: 5.047 MB / 334.1 MB Notification: Performance of matching and sorting (n=142): time 0.01342/0.4748, allocations: 6.657 MB / 410 MB, free: 14.2 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001036/0.475, allocations: 102.3 kB / 410.1 MB, free: 14.08 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004316/0.4793, allocations: 1.914 MB / 412 MB, free: 12.12 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001197/0.4794, allocations: 53.7 kB / 412.1 MB, free: 12.06 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001303/0.4807, allocations: 1.451 MB / 413.5 MB, free: 10.59 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004819/0.4812, allocations: 489 kB / 414 MB, free: 10.11 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.942e-05/0.4813, allocations: 36 kB / 414.1 MB, free: 10.07 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002374/0.4816, allocations: 377.9 kB / 414.4 MB, free: 9.699 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001383/0.483, allocations: 0.7496 MB / 415.2 MB, free: 8.949 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001828/0.4848, allocations: 1.287 MB / 416.5 MB, free: 7.426 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00166/0.4865, allocations: 0.9394 MB / 417.4 MB, free: 6.484 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.847e-05/0.4865, allocations: 4 kB / 417.4 MB, free: 6.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.004972/0.4915, allocations: 2.772 MB / 420.2 MB, free: 3.668 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005192/0.492, allocations: 0.5716 MB / 420.7 MB, free: 2.867 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.475e-05/0.4921, allocations: 19.98 kB / 420.8 MB, free: 2.848 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001258/0.4933, allocations: 0.5185 MB / 421.3 MB, free: 2.316 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001356/0.4947, allocations: 367.4 kB / 421.6 MB, free: 1.957 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008496/0.5032, allocations: 7.268 MB / 428.9 MB, free: 10.29 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001699/0.5049, allocations: 99.78 kB / 429 MB, free: 10.19 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001951/0.5052, allocations: 75.98 kB / 429.1 MB, free: 10.12 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.085e-05/0.5052, allocations: 7.281 kB / 429.1 MB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004568/0.5097, allocations: 2.531 MB / 431.6 MB, free: 7.547 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.019e-05/0.5098, allocations: 16.41 kB / 431.6 MB, free: 7.531 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00121/0.511, allocations: 0.5189 MB / 432.2 MB, free: 7 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0014/0.5124, allocations: 375.4 kB / 432.5 MB, free: 6.633 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008004/0.5205, allocations: 7.244 MB / 439.8 MB, free: 14.98 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001498/0.522, allocations: 95.78 kB / 439.9 MB, free: 14.89 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001851/0.5222, allocations: 72 kB / 439.9 MB, free: 14.82 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.002302/0.5245, allocations: 1.071 MB / 441 MB, free: 13.73 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006688/0.5252, allocations: 205.5 kB / 441.2 MB, free: 13.53 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004478/0.5297, allocations: 2.494 MB / 443.7 MB, free: 10.97 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.376e-05/0.5297, allocations: 12 kB / 443.7 MB, free: 10.96 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.71e-05/0.5297, allocations: 4 kB / 443.7 MB, free: 10.96 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.471e-05/0.5297, allocations: 15.91 kB / 443.7 MB, free: 10.94 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00995/0.5397, allocations: 5.312 MB / 449 MB, free: 5.48 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.114e-05/0.5397, allocations: 7.953 kB / 449 MB, free: 5.473 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008017/0.5405, allocations: 188 kB / 449.2 MB, free: 5.289 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001632/0.5422, allocations: 0.66 MB / 449.9 MB, free: 4.613 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001034/0.5423, allocations: 24 kB / 449.9 MB, free: 4.59 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2055/0.7478, allocations: 11.29 MB / 461.2 MB, free: 104.2 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.581e-06/0.7479, allocations: 5.641 kB / 461.2 MB, free: 104.2 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005504/0.7534, allocations: 3.607 MB / 464.8 MB, free: 102.5 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001012/0.7544, allocations: 468.4 kB / 465.3 MB, free: 102.3 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002431/0.7547, allocations: 39.38 kB / 465.3 MB, free: 102.3 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008466/0.7555, allocations: 81.77 kB / 465.4 MB, free: 102.3 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002984/0.7558, allocations: 113 kB / 465.5 MB, free: 102.3 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.525e-05/0.7559, allocations: 39.59 kB / 465.5 MB, free: 102.3 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001956/0.7579, allocations: 1.31 MB / 466.9 MB, free: 101.7 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.7579, allocations: 0 / 466.9 MB, free: 101.7 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003177/0.7611, allocations: 1.063 MB / 467.9 MB, free: 101.7 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.0003297/0.7614, allocations: 163.6 kB / 468.1 MB, free: 101.6 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005189/0.7666, allocations: 4.191 MB / 472.3 MB, free: 99.41 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.801e-06/0.7666, allocations: 3.969 kB / 472.3 MB, free: 99.41 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002125/0.7688, allocations: 1.793 MB / 474.1 MB, free: 98.36 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003031/0.7718, allocations: 0.6197 MB / 474.7 MB, free: 98.18 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00921/0.781, allocations: 7.042 MB / 481.7 MB, free: 91.74 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001514/0.7826, allocations: 2.323 MB / 484 MB, free: 89.39 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001694/0.7843, allocations: 0.5295 MB / 484.6 MB, free: 88.86 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002733/0.7845, allocations: 135.4 kB / 484.7 MB, free: 88.73 MB / 382.1 MB Notification: Performance of SimCode: time 1.833e-06/0.7846, allocations: 0 / 484.7 MB, free: 88.73 MB / 382.1 MB Notification: Performance of Templates: time 0.04655/0.8311, allocations: 37.07 MB / 0.5095 GB, free: 51.62 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.sim & ./Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.pipe 2>&1)