Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=16000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking") translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=16000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.0009831/0.0009831, allocations: 179.6 kB / 16.38 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.173/1.173, allocations: 194.5 MB / 211.6 MB, free: 3.039 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.00159/0.00159, allocations: 114.9 kB / 256.9 MB, free: 4.348 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000358/0.0003581, allocations: 8 kB / 310.6 MB, free: 14.93 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08373/0.0841, allocations: 44.5 MB / 355.1 MB, free: 2.328 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2393/0.3234, allocations: 104.9 MB / 459.9 MB, free: 1.117 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002416/0.3237, allocations: 89.39 kB / 460 MB, free: 1.07 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1344/0.4582, allocations: 54.86 MB / 0.5028 GB, free: 12.11 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.4582, allocations: 0 / 0.5028 GB, free: 12.11 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001774/0.4584, allocations: 71.88 kB / 0.5029 GB, free: 12.04 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 652 * Number of variables: 652 Notification: Performance of Generate backend data structure: time 0.006632/0.4651, allocations: 2.954 MB / 0.5058 GB, free: 9.016 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.261e-05/0.4651, allocations: 8.031 kB / 0.5058 GB, free: 9.008 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001185/0.4663, allocations: 360 kB / 0.5061 GB, free: 8.652 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0042/0.4705, allocations: 1.956 MB / 0.508 GB, free: 6.641 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001334/0.4707, allocations: 185 kB / 0.5082 GB, free: 6.457 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003472/0.471, allocations: 255.9 kB / 0.5084 GB, free: 6.207 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005074/0.4761, allocations: 3.379 MB / 0.5117 GB, free: 2.652 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.503e-05/0.4762, allocations: 8 kB / 0.5117 GB, free: 2.645 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002289/0.4764, allocations: 104 kB / 0.5118 GB, free: 2.543 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001032/0.4765, allocations: 112.8 kB / 0.512 GB, free: 2.43 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1593/0.6358, allocations: 2.776 MB / 0.5147 GB, free: 89.67 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01693/0.6528, allocations: 10.91 MB / 0.5253 GB, free: 87 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002705/0.6556, allocations: 2.483 MB / 0.5277 GB, free: 86.11 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002749/0.6559, allocations: 138.5 kB / 0.5279 GB, free: 86.01 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.978e-05/0.6559, allocations: 48.69 kB / 0.5279 GB, free: 85.97 MB / 394.7 MB Notification: Performance of pre-optimization done (n=136): time 4.408e-06/0.6559, allocations: 2.438 kB / 0.5279 GB, free: 85.97 MB / 394.7 MB Notification: Performance of matching and sorting (n=150): time 0.01524/0.6712, allocations: 7.293 MB / 0.535 GB, free: 84.79 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.069e-05/0.6713, allocations: 94.33 kB / 0.5351 GB, free: 84.69 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003044/0.6743, allocations: 1.591 MB / 0.5367 GB, free: 84.53 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001576/0.6745, allocations: 52.98 kB / 0.5367 GB, free: 84.5 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008394/0.6753, allocations: 1.215 MB / 0.5379 GB, free: 84.08 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004086/0.6758, allocations: 0.4922 MB / 0.5384 GB, free: 83.77 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.832e-05/0.6759, allocations: 33.75 kB / 0.5384 GB, free: 83.77 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001228/0.676, allocations: 380.7 kB / 0.5388 GB, free: 83.46 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001261/0.6772, allocations: 0.8518 MB / 0.5396 GB, free: 83.46 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001444/0.6787, allocations: 1.314 MB / 0.5409 GB, free: 82.95 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001434/0.6801, allocations: 1.035 MB / 0.5419 GB, free: 82.93 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.376e-06/0.6802, allocations: 4.125 kB / 0.5419 GB, free: 82.93 MB / 394.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.004174/0.6843, allocations: 2.879 MB / 0.5447 GB, free: 82.16 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001144/0.6855, allocations: 5.578 MB / 0.5502 GB, free: 76.2 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.24e-05/0.6855, allocations: 15.62 kB / 0.5502 GB, free: 76.2 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001424/0.687, allocations: 0.6685 MB / 0.5509 GB, free: 76 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00126/0.6882, allocations: 374.9 kB / 0.5512 GB, free: 75.98 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007121/0.6954, allocations: 8.488 MB / 0.5595 GB, free: 70.15 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00178/0.6972, allocations: 114.7 kB / 0.5596 GB, free: 70.12 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001319/0.6973, allocations: 68.08 kB / 0.5597 GB, free: 70.11 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.207e-06/0.6973, allocations: 8.531 kB / 0.5597 GB, free: 70.11 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003375/0.7007, allocations: 2.652 MB / 0.5623 GB, free: 69.16 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.861e-05/0.7008, allocations: 15.25 kB / 0.5623 GB, free: 69.16 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001228/0.702, allocations: 0.6714 MB / 0.5629 GB, free: 68.95 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001134/0.7031, allocations: 362.9 kB / 0.5633 GB, free: 68.92 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006693/0.7098, allocations: 8.499 MB / 0.5716 GB, free: 63.05 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00162/0.7115, allocations: 109.2 kB / 0.5717 GB, free: 63.02 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001234/0.7116, allocations: 65.03 kB / 0.5718 GB, free: 63.01 MB / 394.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.001483/0.7131, allocations: 0.9336 MB / 0.5727 GB, free: 62.47 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003423/0.7135, allocations: 200 kB / 0.5729 GB, free: 62.37 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003445/0.7169, allocations: 2.592 MB / 0.5754 GB, free: 61.32 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.326e-06/0.7169, allocations: 11.12 kB / 0.5754 GB, free: 61.32 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/0.7169, allocations: 7.391 kB / 0.5754 GB, free: 61.32 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.269e-05/0.717, allocations: 7.969 kB / 0.5754 GB, free: 61.32 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007627/0.7246, allocations: 5.412 MB / 0.5807 GB, free: 59.09 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.127e-06/0.7247, allocations: 3.438 kB / 0.5807 GB, free: 59.09 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009434/0.7256, allocations: 232.7 kB / 0.5809 GB, free: 59.07 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001475/0.7271, allocations: 0.6984 MB / 0.5816 GB, free: 58.85 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.438e-05/0.7272, allocations: 33.84 kB / 0.5816 GB, free: 58.83 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00771/0.7349, allocations: 10.05 MB / 0.5915 GB, free: 51.53 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.057e-06/0.735, allocations: 7.781 kB / 0.5915 GB, free: 51.53 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004658/0.7396, allocations: 3.948 MB / 0.5953 GB, free: 49.68 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001073/0.7407, allocations: 474 kB / 0.5958 GB, free: 49.38 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002317/0.741, allocations: 34.8 kB / 0.5958 GB, free: 49.36 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009391/0.7419, allocations: 103.4 kB / 0.5959 GB, free: 49.34 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002463/0.7422, allocations: 121.8 kB / 0.596 GB, free: 49.31 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.658e-05/0.7422, allocations: 40.14 kB / 0.5961 GB, free: 49.3 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001437/0.7437, allocations: 1.224 MB / 0.5973 GB, free: 48.84 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.7437, allocations: 0 / 0.5973 GB, free: 48.84 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002845/0.7466, allocations: 1.041 MB / 0.5983 GB, free: 48.75 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.0005698/0.7471, allocations: 415.6 kB / 0.5987 GB, free: 48.58 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.005224/0.7524, allocations: 4.553 MB / 0.6031 GB, free: 46.29 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.152e-06/0.7524, allocations: 3.719 kB / 0.6031 GB, free: 46.29 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001968/0.7544, allocations: 1.743 MB / 0.6048 GB, free: 44.99 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002856/0.7572, allocations: 0.5727 MB / 0.6054 GB, free: 44.55 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009925/0.7672, allocations: 6.855 MB / 0.6121 GB, free: 38.33 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001647/0.7689, allocations: 2.151 MB / 0.6142 GB, free: 36.62 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001841/0.7707, allocations: 0.6 MB / 0.6148 GB, free: 36.21 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003158/0.771, allocations: 129.2 kB / 0.6149 GB, free: 36.09 MB / 394.7 MB Notification: Performance of SimCode: time 1.001e-06/0.771, allocations: 0 / 0.6149 GB, free: 36.09 MB / 394.7 MB Notification: Performance of Templates: time 0.05515/0.8262, allocations: 41.48 MB / 0.6554 GB, free: 15.2 MB / 410.7 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.sim & ./Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.pipe 2>&1)