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.001682/0.001682, allocations: 187.8 kB / 8.351 MB, free: 0.707 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.243/1.243, allocations: 194.3 MB / 203.1 MB, free: 9.32 MB / 171.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001639/0.001639, allocations: 120.4 kB / 248.1 MB, free: 6.336 MB / 203.1 MB Notification: Performance of FrontEnd - loaded program: time 1.264e-05/1.267e-05, allocations: 0 / 298.1 MB, free: 8.246 MB / 251.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07613/0.07616, allocations: 44.51 MB / 342.6 MB, free: 11.64 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2754/0.3516, allocations: 104.1 MB / 446.7 MB, free: 8.094 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002292/0.3519, allocations: 84.83 kB / 446.8 MB, free: 8.051 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.1425/0.4944, allocations: 54.21 MB / 0.4892 GB, free: 8.84 MB / 379.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.4944, allocations: 0 / 0.4892 GB, free: 8.84 MB / 379.1 MB Notification: Performance of Transformations before backend: time 0.0002671/0.4947, allocations: 71.88 kB / 0.4893 GB, free: 8.77 MB / 379.1 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.006376/0.5011, allocations: 2.634 MB / 0.4919 GB, free: 6.074 MB / 379.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.845e-05/0.5011, allocations: 12.03 kB / 0.4919 GB, free: 6.062 MB / 379.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001462/0.5026, allocations: 352 kB / 0.4922 GB, free: 5.715 MB / 379.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004398/0.507, allocations: 1.941 MB / 0.4941 GB, free: 3.719 MB / 379.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001205/0.5071, allocations: 84 kB / 0.4942 GB, free: 3.637 MB / 379.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006221/0.5078, allocations: 147.9 kB / 0.4944 GB, free: 3.492 MB / 379.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00523/0.513, allocations: 2.556 MB / 0.4968 GB, free: 0.9297 MB / 379.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007879/0.5209, allocations: 2.964 MB / 0.4997 GB, free: 13.8 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001654/0.5212, allocations: 15.78 kB / 0.4998 GB, free: 13.78 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006493/0.5218, allocations: 8 kB / 0.4998 GB, free: 13.77 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000149/0.522, allocations: 112.8 kB / 0.4999 GB, free: 13.66 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01811/0.5401, allocations: 10.41 MB / 0.51 GB, free: 2.98 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002673/0.5428, allocations: 2.355 MB / 0.5123 GB, free: 472 kB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1841/0.727, allocations: 1.004 MB / 0.5133 GB, free: 83.18 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003602/0.7274, allocations: 142.9 kB / 0.5135 GB, free: 83.09 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.359e-05/0.7274, allocations: 47.5 kB / 0.5135 GB, free: 83.05 MB / 395.1 MB Notification: Performance of pre-optimization done (n=136): time 5.04e-06/0.7274, allocations: 0 / 0.5135 GB, free: 83.05 MB / 395.1 MB Notification: Performance of matching and sorting (n=150): time 0.008459/0.7359, allocations: 4.95 MB / 0.5183 GB, free: 82.44 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.792e-05/0.736, allocations: 94.23 kB / 0.5184 GB, free: 82.34 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001854/0.7378, allocations: 1.324 MB / 0.5197 GB, free: 82.19 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001398/0.738, allocations: 27.78 kB / 0.5197 GB, free: 82.16 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005568/0.7385, allocations: 1.215 MB / 0.5209 GB, free: 81.74 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003145/0.7389, allocations: 495 kB / 0.5214 GB, free: 81.48 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.082e-05/0.739, allocations: 0.6562 kB / 0.5214 GB, free: 81.48 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 8.611e-05/0.7391, allocations: 373.6 kB / 0.5218 GB, free: 81.18 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000901/0.74, allocations: 0.7903 MB / 0.5225 GB, free: 81.17 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001034/0.741, allocations: 1.231 MB / 0.5237 GB, free: 80.66 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001139/0.7421, allocations: 0.9711 MB / 0.5247 GB, free: 80.65 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.745e-06/0.7422, allocations: 6.656 kB / 0.5247 GB, free: 80.65 MB / 395.1 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.003505/0.7457, allocations: 2.607 MB / 0.5272 GB, free: 80.45 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007938/0.7465, allocations: 5.532 MB / 0.5326 GB, free: 74.59 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.819e-05/0.7465, allocations: 16.44 kB / 0.5327 GB, free: 74.59 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001284/0.7478, allocations: 0.6609 MB / 0.5333 GB, free: 74.56 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001263/0.7491, allocations: 369.5 kB / 0.5336 GB, free: 74.56 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006504/0.7556, allocations: 7.94 MB / 0.5414 GB, free: 70.74 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001462/0.7571, allocations: 76.36 kB / 0.5415 GB, free: 70.74 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001414/0.7572, allocations: 75.34 kB / 0.5415 GB, free: 70.74 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.67e-05/0.7573, allocations: 3.031 kB / 0.5416 GB, free: 70.74 MB / 395.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003224/0.7605, allocations: 2.386 MB / 0.5439 GB, free: 70.67 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.682e-05/0.7605, allocations: 16.97 kB / 0.5439 GB, free: 70.67 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001302/0.7619, allocations: 0.6602 MB / 0.5445 GB, free: 70.63 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001249/0.7631, allocations: 361.8 kB / 0.5449 GB, free: 70.63 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007458/0.7706, allocations: 7.957 MB / 0.5527 GB, free: 66.8 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001716/0.7723, allocations: 69.02 kB / 0.5527 GB, free: 66.8 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001976/0.7726, allocations: 72.69 kB / 0.5528 GB, free: 66.8 MB / 395.1 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 () * 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.0004585/0.773, allocations: 161.3 kB / 0.5529 GB, free: 66.68 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004177/0.7735, allocations: 185.4 kB / 0.5531 GB, free: 66.59 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00418/0.7776, allocations: 2.413 MB / 0.5555 GB, free: 65.94 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.367e-05/0.7777, allocations: 19.08 kB / 0.5555 GB, free: 65.93 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.676e-06/0.7777, allocations: 5.5 kB / 0.5555 GB, free: 65.93 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.302e-05/0.7777, allocations: 7.266 kB / 0.5555 GB, free: 65.93 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008111/0.7858, allocations: 4.884 MB / 0.5603 GB, free: 63.99 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.266e-06/0.7859, allocations: 6.766 kB / 0.5603 GB, free: 63.99 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00101/0.7869, allocations: 238.8 kB / 0.5605 GB, free: 63.98 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00156/0.7885, allocations: 0.6803 MB / 0.5612 GB, free: 63.77 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001003/0.7886, allocations: 10.27 kB / 0.5612 GB, free: 63.77 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007936/0.7965, allocations: 9.404 MB / 0.5704 GB, free: 56.97 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.989e-06/0.7966, allocations: 3.625 kB / 0.5704 GB, free: 56.97 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004246/0.8008, allocations: 3.721 MB / 0.574 GB, free: 55.24 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008888/0.8017, allocations: 451.6 kB / 0.5744 GB, free: 54.96 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002434/0.802, allocations: 5.875 kB / 0.5744 GB, free: 54.96 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009199/0.8029, allocations: 75.84 kB / 0.5745 GB, free: 54.96 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002579/0.8032, allocations: 119.9 kB / 0.5746 GB, free: 54.94 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.846e-05/0.8033, allocations: 48.45 kB / 0.5747 GB, free: 54.93 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.001261/0.8045, allocations: 0.9883 MB / 0.5756 GB, free: 54.52 MB / 395.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.8046, allocations: 2.844 kB / 0.5756 GB, free: 54.52 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.002872/0.8074, allocations: 0.9149 MB / 0.5765 GB, free: 54.5 MB / 395.1 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 () * 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.0005201/0.808, allocations: 389.6 kB / 0.5769 GB, free: 54.39 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.004783/0.8128, allocations: 4.272 MB / 0.5811 GB, free: 52.23 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/0.8128, allocations: 10.94 kB / 0.5811 GB, free: 52.23 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001695/0.8145, allocations: 1.629 MB / 0.5827 GB, free: 51.35 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002143/0.8166, allocations: 479.1 kB / 0.5831 GB, free: 51.25 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007498/0.8242, allocations: 4.72 MB / 0.5878 GB, free: 49.38 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001428/0.8256, allocations: 2.152 MB / 0.5899 GB, free: 48.39 MB / 395.1 MB Notification: Performance of simCode: alias equations: time 0.002378/0.828, allocations: 0.8174 MB / 0.5907 GB, free: 48.32 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002525/0.8283, allocations: 98.33 kB / 0.5907 GB, free: 48.32 MB / 395.1 MB Notification: Performance of SimCode: time 8.92e-07/0.8283, allocations: 0 / 0.5907 GB, free: 48.32 MB / 395.1 MB Notification: Performance of Templates: time 0.0482/0.8765, allocations: 36.64 MB / 0.6265 GB, free: 32.27 MB / 395.1 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)