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.001489/0.001489, allocations: 182.2 kB / 13.64 MB, free: 1.676 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.316/1.316, allocations: 194.2 MB / 208.4 MB, free: 6.715 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.00153/0.00153, allocations: 124.6 kB / 253.5 MB, free: 9.578 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.944e-05/2.958e-05, allocations: 4 kB / 304.9 MB, free: 29.76 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07904/0.07908, allocations: 44.5 MB / 349.4 MB, free: 1.242 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3322/0.4113, allocations: 104.8 MB / 454.2 MB, free: 6.977 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002719/0.4117, allocations: 89.69 kB / 454.3 MB, free: 6.93 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1396/0.5513, allocations: 54.95 MB / 0.4973 GB, free: 6.59 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.5513, allocations: 0 / 0.4973 GB, free: 6.59 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.000216/0.5516, allocations: 79.81 kB / 0.4974 GB, free: 6.512 MB / 362.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.006482/0.5581, allocations: 2.64 MB / 0.5 GB, free: 3.809 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.839e-05/0.5581, allocations: 8.031 kB / 0.5 GB, free: 3.801 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001521/0.5597, allocations: 360 kB / 0.5003 GB, free: 3.445 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004544/0.5642, allocations: 1.933 MB / 0.5022 GB, free: 1.457 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001575/0.5644, allocations: 189 kB / 0.5024 GB, free: 1.27 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005429/0.565, allocations: 255.9 kB / 0.5026 GB, free: 1.02 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005799/0.5708, allocations: 3.325 MB / 0.5059 GB, free: 13.52 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.032e-05/0.5709, allocations: 11.91 kB / 0.5059 GB, free: 13.51 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002602/0.5712, allocations: 108 kB / 0.506 GB, free: 13.4 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001226/0.5713, allocations: 112.8 kB / 0.5061 GB, free: 13.29 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004713/0.576, allocations: 2.701 MB / 0.5087 GB, free: 10.57 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01651/0.5926, allocations: 10.9 MB / 0.5194 GB, free: 15.37 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0027/0.5953, allocations: 2.413 MB / 0.5218 GB, free: 12.79 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001419/0.5968, allocations: 1.063 MB / 0.5228 GB, free: 11.73 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003116/0.5971, allocations: 142.4 kB / 0.5229 GB, free: 11.57 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.162e-05/0.5971, allocations: 43.88 kB / 0.523 GB, free: 11.52 MB / 394.7 MB Notification: Performance of pre-optimization done (n=136): time 3.317e-06/0.5972, allocations: 4 kB / 0.523 GB, free: 11.51 MB / 394.7 MB Notification: Performance of matching and sorting (n=150): time 0.01086/0.608, allocations: 5.488 MB / 0.5283 GB, free: 5.965 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.509e-05/0.6081, allocations: 98.36 kB / 0.5284 GB, free: 5.852 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002444/0.6106, allocations: 1.564 MB / 0.53 GB, free: 4.293 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001774/0.6108, allocations: 53.7 kB / 0.53 GB, free: 4.234 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008104/0.6116, allocations: 1.206 MB / 0.5312 GB, free: 3.012 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004557/0.612, allocations: 0.5045 MB / 0.5317 GB, free: 2.5 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.663e-05/0.6121, allocations: 36 kB / 0.5317 GB, free: 2.465 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001553/0.6123, allocations: 377.9 kB / 0.5321 GB, free: 2.09 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001205/0.6135, allocations: 0.82 MB / 0.5329 GB, free: 1.27 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2158/0.8293, allocations: 1.271 MB / 0.5341 GB, free: 91.11 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002349/0.8317, allocations: 1.012 MB / 0.5351 GB, free: 91.09 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-05/0.8318, allocations: 4.625 kB / 0.5351 GB, free: 91.09 MB / 394.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.004802/0.8366, allocations: 2.799 MB / 0.5378 GB, free: 91 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009562/0.8376, allocations: 5.584 MB / 0.5433 GB, free: 85.15 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.362e-05/0.8376, allocations: 12.41 kB / 0.5433 GB, free: 85.15 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001669/0.8393, allocations: 0.6703 MB / 0.544 GB, free: 85.12 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001493/0.8408, allocations: 376.1 kB / 0.5443 GB, free: 85.12 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007977/0.8488, allocations: 8.256 MB / 0.5524 GB, free: 81.22 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001843/0.8506, allocations: 115.9 kB / 0.5525 GB, free: 81.22 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002058/0.8509, allocations: 74.47 kB / 0.5526 GB, free: 81.22 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.108e-05/0.8509, allocations: 3.625 kB / 0.5526 GB, free: 81.22 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004503/0.8554, allocations: 2.595 MB / 0.5551 GB, free: 81.15 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.243e-05/0.8555, allocations: 18.61 kB / 0.5551 GB, free: 81.15 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001575/0.857, allocations: 0.6781 MB / 0.5558 GB, free: 81.11 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00151/0.8586, allocations: 363.8 kB / 0.5561 GB, free: 81.11 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00801/0.8666, allocations: 8.267 MB / 0.5642 GB, free: 77.21 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002051/0.8687, allocations: 107 kB / 0.5643 GB, free: 77.21 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001839/0.8689, allocations: 69.31 kB / 0.5644 GB, free: 77.21 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 () * 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.0005555/0.8695, allocations: 208.7 kB / 0.5646 GB, free: 77.1 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004777/0.8699, allocations: 204.9 kB / 0.5648 GB, free: 77.09 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004091/0.874, allocations: 2.564 MB / 0.5673 GB, free: 76.94 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.408e-06/0.8741, allocations: 17.62 kB / 0.5673 GB, free: 76.94 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.294e-06/0.8741, allocations: 3.844 kB / 0.5673 GB, free: 76.94 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.236e-05/0.8741, allocations: 6.469 kB / 0.5673 GB, free: 76.94 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008292/0.8824, allocations: 5.357 MB / 0.5725 GB, free: 75.73 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.937e-06/0.8824, allocations: 3.406 kB / 0.5725 GB, free: 75.73 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009487/0.8834, allocations: 237.1 kB / 0.5728 GB, free: 75.72 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001463/0.8849, allocations: 0.6848 MB / 0.5734 GB, free: 75.52 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001115/0.885, allocations: 30.41 kB / 0.5735 GB, free: 75.5 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008258/0.8933, allocations: 9.773 MB / 0.583 GB, free: 68.39 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.8933, allocations: 0 / 0.583 GB, free: 68.39 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005497/0.8988, allocations: 3.873 MB / 0.5868 GB, free: 66.61 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001198/0.9001, allocations: 465.4 kB / 0.5872 GB, free: 66.32 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002927/0.9004, allocations: 37 kB / 0.5873 GB, free: 66.3 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001009/0.9014, allocations: 95.45 kB / 0.5873 GB, free: 66.28 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002766/0.9017, allocations: 129.8 kB / 0.5875 GB, free: 66.26 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.976e-05/0.9018, allocations: 34.56 kB / 0.5875 GB, free: 66.25 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001671/0.9035, allocations: 1.204 MB / 0.5887 GB, free: 65.78 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.6e-07/0.9035, allocations: 0 / 0.5887 GB, free: 65.78 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003424/0.9069, allocations: 1.043 MB / 0.5897 GB, free: 65.69 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 () * 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.0006719/0.9076, allocations: 417 kB / 0.5901 GB, free: 65.55 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.005686/0.9133, allocations: 4.502 MB / 0.5945 GB, free: 63.25 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.434e-06/0.9133, allocations: 0 / 0.5945 GB, free: 63.25 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002009/0.9153, allocations: 1.705 MB / 0.5962 GB, free: 62.32 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002799/0.9182, allocations: 0.5638 MB / 0.5967 GB, free: 62.18 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008589/0.9268, allocations: 4.897 MB / 0.6015 GB, free: 60.2 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001609/0.9285, allocations: 2.159 MB / 0.6036 GB, free: 59.21 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002585/0.9311, allocations: 0.8814 MB / 0.6045 GB, free: 59.15 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002665/0.9313, allocations: 97.66 kB / 0.6046 GB, free: 59.14 MB / 394.7 MB Notification: Performance of SimCode: time 1.052e-06/0.9313, allocations: 0 / 0.6046 GB, free: 59.14 MB / 394.7 MB Notification: Performance of Templates: time 0.06266/0.994, allocations: 44.55 MB / 0.6481 GB, free: 25.79 MB / 394.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)