Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smee.is.1.|smee.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking") translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smee.is.1.|smee.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001472/0.001472, allocations: 188.3 kB / 16.41 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.91/1.91, allocations: 205.4 MB / 222.5 MB, free: 9.129 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001094/0.001094, allocations: 85.8 kB / 270.9 MB, free: 8.379 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003918/0.0003919, allocations: 11.98 kB / 327 MB, free: 208 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3246/0.325, allocations: 47.57 MB / 374.5 MB, free: 45.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1731/0.4982, allocations: 110.2 MB / 484.7 MB, free: 2.527 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003385/0.4986, allocations: 87.95 kB / 484.8 MB, free: 2.441 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.486/0.9846, allocations: 54.92 MB / 0.5271 GB, free: 89.47 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.925e-06/0.9847, allocations: 0 / 0.5271 GB, free: 89.47 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003248/0.985, allocations: 67.94 kB / 0.5271 GB, free: 89.41 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 653 * Number of variables: 653 Notification: Performance of Generate backend data structure: time 0.01113/0.9961, allocations: 2.969 MB / 0.53 GB, free: 86.37 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.564e-05/0.9962, allocations: 8.031 kB / 0.53 GB, free: 86.36 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002036/0.9982, allocations: 364.8 kB / 0.5304 GB, free: 86 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006451/1.005, allocations: 1.957 MB / 0.5323 GB, free: 83.99 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002263/1.005, allocations: 189 kB / 0.5325 GB, free: 83.8 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00104/1.006, allocations: 247.9 kB / 0.5327 GB, free: 83.56 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009925/1.016, allocations: 3.383 MB / 0.536 GB, free: 80 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001406/1.016, allocations: 7.938 kB / 0.536 GB, free: 79.99 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005753/1.017, allocations: 108 kB / 0.5361 GB, free: 79.89 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000142/1.017, allocations: 108.8 kB / 0.5362 GB, free: 79.78 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008798/1.026, allocations: 2.787 MB / 0.539 GB, free: 76.98 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02739/1.053, allocations: 10.91 MB / 0.5496 GB, free: 65.77 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004609/1.058, allocations: 2.489 MB / 0.552 GB, free: 63.12 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004757/1.058, allocations: 134.4 kB / 0.5522 GB, free: 62.97 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.663e-05/1.058, allocations: 63.77 kB / 0.5522 GB, free: 62.9 MB / 378.7 MB Notification: Performance of pre-optimization done (n=136): time 4.238e-06/1.058, allocations: 0 / 0.5522 GB, free: 62.9 MB / 378.7 MB Notification: Performance of matching and sorting (n=150): time 0.02562/1.084, allocations: 7.292 MB / 0.5594 GB, free: 55.48 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.493e-05/1.084, allocations: 94.42 kB / 0.5594 GB, free: 55.38 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003724/1.088, allocations: 1.591 MB / 0.561 GB, free: 53.79 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003992/1.088, allocations: 53.7 kB / 0.561 GB, free: 53.73 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000846/1.089, allocations: 1.147 MB / 0.5622 GB, free: 52.57 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006964/1.09, allocations: 0.5006 MB / 0.5627 GB, free: 52.06 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001893/1.09, allocations: 36 kB / 0.5627 GB, free: 52.03 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001402/1.09, allocations: 386.7 kB / 0.5631 GB, free: 51.64 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002251/1.093, allocations: 0.8549 MB / 0.5639 GB, free: 50.79 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002592/1.095, allocations: 1.31 MB / 0.5652 GB, free: 49.28 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002678/1.098, allocations: 1.037 MB / 0.5662 GB, free: 48.25 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.51e-05/1.098, allocations: 4 kB / 0.5662 GB, free: 48.24 MB / 378.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.007398/1.105, allocations: 2.749 MB / 0.5689 GB, free: 45.47 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001053/1.106, allocations: 5.397 MB / 0.5741 GB, free: 39.65 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.858e-05/1.107, allocations: 16 kB / 0.5742 GB, free: 39.64 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002731/1.109, allocations: 0.6722 MB / 0.5748 GB, free: 38.95 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002704/1.112, allocations: 367.4 kB / 0.5752 GB, free: 38.59 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01311/1.125, allocations: 8.504 MB / 0.5835 GB, free: 29.69 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002655/1.128, allocations: 111.8 kB / 0.5836 GB, free: 29.58 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003726/1.128, allocations: 75.98 kB / 0.5837 GB, free: 29.5 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.38e-05/1.128, allocations: 5.719 kB / 0.5837 GB, free: 29.5 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00673/1.135, allocations: 2.65 MB / 0.5862 GB, free: 26.84 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.921e-05/1.135, allocations: 12 kB / 0.5863 GB, free: 26.82 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002228/1.137, allocations: 0.6635 MB / 0.5869 GB, free: 26.15 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002631/1.14, allocations: 367.4 kB / 0.5873 GB, free: 25.79 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0129/1.153, allocations: 8.541 MB / 0.5956 GB, free: 16.85 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001653/1.155, allocations: 107.8 kB / 0.5957 GB, free: 16.74 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002991/1.155, allocations: 71.98 kB / 0.5958 GB, free: 16.67 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * 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 (183): * Single equations (assignments): 179 * 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 {(2,100.0%) 9,(1,100.0%) 1} * Non-linear torn systems: 1 {6 20} Notification: Performance of prepare postOptimizeDAE: time 0.002391/1.157, allocations: 0.9261 MB / 0.5967 GB, free: 15.73 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006799/1.158, allocations: 197.6 kB / 0.5969 GB, free: 15.54 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007166/1.165, allocations: 2.59 MB / 0.5994 GB, free: 12.92 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.939e-05/1.165, allocations: 19.94 kB / 0.5994 GB, free: 12.9 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.458e-06/1.165, allocations: 0 / 0.5994 GB, free: 12.9 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.803e-05/1.165, allocations: 11.95 kB / 0.5994 GB, free: 12.89 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01482/1.18, allocations: 5.414 MB / 0.6047 GB, free: 7.375 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.661e-05/1.18, allocations: 4.125 kB / 0.6047 GB, free: 7.371 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001943/1.182, allocations: 239.9 kB / 0.6049 GB, free: 7.137 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002876/1.185, allocations: 0.6985 MB / 0.6056 GB, free: 6.426 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003194/1.186, allocations: 35.98 kB / 0.6057 GB, free: 6.391 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01566/1.201, allocations: 10.03 MB / 0.6154 GB, free: 11.82 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.1e-05/1.201, allocations: 7.938 kB / 0.6155 GB, free: 11.82 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01087/1.212, allocations: 3.951 MB / 0.6193 GB, free: 7.754 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001757/1.214, allocations: 474.5 kB / 0.6198 GB, free: 7.27 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005988/1.215, allocations: 32 kB / 0.6198 GB, free: 7.238 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002131/1.217, allocations: 95.89 kB / 0.6199 GB, free: 7.145 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00061/1.217, allocations: 121.6 kB / 0.62 GB, free: 7.027 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001729/1.218, allocations: 47.92 kB / 0.62 GB, free: 6.98 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.003138/1.221, allocations: 1.221 MB / 0.6212 GB, free: 5.77 MB / 394.7 MB Notification: Performance of sort global known variables: time 8.11e-07/1.221, allocations: 0 / 0.6212 GB, free: 5.77 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.005589/1.226, allocations: 1.035 MB / 0.6223 GB, free: 4.734 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 5 (smpm.inertiaRotor.phi,smpm.i_0_s,smpm.idq_sr[1],smpm.idq_sr[2],inertiaLoad.w) * 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 (113): * Single equations (assignments): 109 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 9,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 1 {6 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.001168/1.228, allocations: 414.5 kB / 0.6226 GB, free: 4.328 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01188/1.24, allocations: 4.556 MB / 0.6271 GB, free: 15.66 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.239e-05/1.24, allocations: 4.062 kB / 0.6271 GB, free: 15.65 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004429/1.244, allocations: 1.751 MB / 0.6288 GB, free: 13.85 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004626/1.249, allocations: 0.5875 MB / 0.6294 GB, free: 13.27 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01842/1.267, allocations: 6.903 MB / 0.6361 GB, free: 6.301 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003691/1.271, allocations: 2.122 MB / 0.6382 GB, free: 4.145 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009712/1.272, allocations: 143.4 kB / 0.6383 GB, free: 4.004 MB / 410.7 MB Notification: Performance of SimCode: time 1.152e-06/1.272, allocations: 3.938 kB / 0.6383 GB, free: 4 MB / 410.7 MB Notification: Performance of Templates: time 0.415/1.687, allocations: 83.26 MB / 0.7196 GB, free: 55.98 MB / 410.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.pipe 2>&1)