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.001577/0.001577, allocations: 181.3 kB / 13.66 MB, free: 1.664 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.922/1.922, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001032/0.001032, allocations: 82.7 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.493e-05/3.51e-05, allocations: 4 kB / 321.5 MB, free: 17.84 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09479/0.09485, allocations: 47.57 MB / 369.1 MB, free: 2.184 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4383/0.5332, allocations: 110.1 MB / 479.2 MB, free: 15.5 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003054/0.5336, allocations: 87.62 kB / 479.3 MB, free: 15.45 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2348/0.7684, allocations: 55.01 MB / 0.5218 GB, free: 9.562 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.7685, allocations: 0 / 0.5218 GB, free: 9.562 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003296/0.7688, allocations: 75.92 kB / 0.5218 GB, free: 9.488 MB / 410.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.009994/0.7788, allocations: 2.633 MB / 0.5244 GB, free: 6.793 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.731e-05/0.7789, allocations: 12.03 kB / 0.5244 GB, free: 6.781 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002082/0.781, allocations: 352 kB / 0.5247 GB, free: 6.434 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006791/0.7878, allocations: 1.952 MB / 0.5266 GB, free: 4.426 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002556/0.7882, allocations: 185.7 kB / 0.5268 GB, free: 4.242 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009408/0.7891, allocations: 244 kB / 0.5271 GB, free: 4.004 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01077/0.7999, allocations: 3.333 MB / 0.5303 GB, free: 0.4961 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001427/0.8001, allocations: 11.91 kB / 0.5303 GB, free: 496 kB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004788/0.8006, allocations: 108 kB / 0.5304 GB, free: 388 kB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001897/0.8008, allocations: 108.8 kB / 0.5305 GB, free: 276 kB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2854/1.086, allocations: 2.701 MB / 0.5332 GB, free: 96.76 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03296/1.119, allocations: 10.92 MB / 0.5438 GB, free: 94.07 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005069/1.124, allocations: 2.422 MB / 0.5462 GB, free: 93.18 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00304/1.127, allocations: 1.047 MB / 0.5472 GB, free: 93.17 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005783/1.128, allocations: 142.3 kB / 0.5474 GB, free: 93.07 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.611e-05/1.128, allocations: 52.67 kB / 0.5474 GB, free: 93.03 MB / 410.7 MB Notification: Performance of pre-optimization done (n=136): time 4.419e-06/1.128, allocations: 1.781 kB / 0.5474 GB, free: 93.03 MB / 410.7 MB Notification: Performance of matching and sorting (n=150): time 0.01901/1.147, allocations: 5.489 MB / 0.5528 GB, free: 92.23 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.621e-05/1.147, allocations: 94.08 kB / 0.5529 GB, free: 92.14 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003949/1.151, allocations: 1.567 MB / 0.5544 GB, free: 91.97 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003799/1.152, allocations: 53.7 kB / 0.5544 GB, free: 91.94 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009965/1.153, allocations: 1.154 MB / 0.5556 GB, free: 91.3 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007939/1.154, allocations: 0.5073 MB / 0.5561 GB, free: 90.91 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001896/1.154, allocations: 35.56 kB / 0.5561 GB, free: 90.88 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001662/1.154, allocations: 377.6 kB / 0.5565 GB, free: 90.54 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00222/1.156, allocations: 0.8211 MB / 0.5573 GB, free: 90.23 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002629/1.159, allocations: 1.281 MB / 0.5585 GB, free: 89.38 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002627/1.162, allocations: 1.012 MB / 0.5595 GB, free: 89.03 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.058e-05/1.162, allocations: 3.969 kB / 0.5595 GB, free: 89.03 MB / 410.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.00794/1.17, allocations: 2.67 MB / 0.5621 GB, free: 88.11 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001194/1.171, allocations: 5.404 MB / 0.5674 GB, free: 82.39 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.79e-05/1.171, allocations: 11.66 kB / 0.5674 GB, free: 82.39 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002747/1.174, allocations: 0.6678 MB / 0.568 GB, free: 82.19 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002802/1.177, allocations: 372 kB / 0.5684 GB, free: 82.18 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01261/1.189, allocations: 8.271 MB / 0.5765 GB, free: 76.45 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002773/1.192, allocations: 108.5 kB / 0.5766 GB, free: 76.42 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004115/1.192, allocations: 73.25 kB / 0.5767 GB, free: 76.4 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.532e-05/1.193, allocations: 7.094 kB / 0.5767 GB, free: 76.4 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006741/1.199, allocations: 2.608 MB / 0.5792 GB, free: 75.52 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.035e-05/1.199, allocations: 13.09 kB / 0.5792 GB, free: 75.52 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002271/1.202, allocations: 0.6587 MB / 0.5799 GB, free: 75.31 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002734/1.204, allocations: 367.2 kB / 0.5802 GB, free: 75.28 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01252/1.217, allocations: 8.33 MB / 0.5883 GB, free: 69.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00167/1.219, allocations: 100.9 kB / 0.5884 GB, free: 69.48 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001989/1.219, allocations: 69.09 kB / 0.5885 GB, free: 69.46 MB / 410.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.0005274/1.219, allocations: 222.8 kB / 0.5887 GB, free: 69.27 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007381/1.22, allocations: 197.7 kB / 0.5889 GB, free: 69.17 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006824/1.227, allocations: 2.561 MB / 0.5914 GB, free: 68.16 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.061e-05/1.227, allocations: 19.05 kB / 0.5914 GB, free: 68.16 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.736e-06/1.227, allocations: 0 / 0.5914 GB, free: 68.16 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.932e-05/1.227, allocations: 6.75 kB / 0.5914 GB, free: 68.16 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01523/1.242, allocations: 5.363 MB / 0.5967 GB, free: 65.98 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.525e-05/1.243, allocations: 3.438 kB / 0.5967 GB, free: 65.98 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002029/1.245, allocations: 236.2 kB / 0.5969 GB, free: 65.96 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002886/1.248, allocations: 0.6834 MB / 0.5976 GB, free: 65.75 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003758/1.248, allocations: 37.56 kB / 0.5976 GB, free: 65.73 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01442/1.262, allocations: 9.763 MB / 0.6071 GB, free: 58.57 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.743e-06/1.262, allocations: 7.438 kB / 0.6071 GB, free: 58.57 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008774/1.271, allocations: 3.864 MB / 0.6109 GB, free: 56.77 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001762/1.273, allocations: 473.7 kB / 0.6114 GB, free: 56.48 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007155/1.274, allocations: 30.88 kB / 0.6114 GB, free: 56.46 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002301/1.276, allocations: 106.4 kB / 0.6115 GB, free: 56.43 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005273/1.277, allocations: 114.5 kB / 0.6116 GB, free: 56.41 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001537/1.277, allocations: 45.61 kB / 0.6117 GB, free: 56.4 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002655/1.28, allocations: 1.206 MB / 0.6128 GB, free: 55.51 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.021e-06/1.28, allocations: 4 kB / 0.6128 GB, free: 55.51 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005338/1.285, allocations: 1.038 MB / 0.6138 GB, free: 54.48 MB / 410.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.0009661/1.286, allocations: 407.9 kB / 0.6142 GB, free: 54.17 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00975/1.296, allocations: 4.44 MB / 0.6186 GB, free: 49.98 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.969e-06/1.296, allocations: 384 / 0.6186 GB, free: 49.98 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003731/1.299, allocations: 1.71 MB / 0.6202 GB, free: 48.38 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004731/1.304, allocations: 0.5713 MB / 0.6208 GB, free: 47.93 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0143/1.319, allocations: 4.903 MB / 0.6256 GB, free: 43.54 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002254/1.321, allocations: 2.128 MB / 0.6277 GB, free: 41.84 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008982/1.322, allocations: 142.3 kB / 0.6278 GB, free: 41.71 MB / 410.7 MB Notification: Performance of SimCode: time 1.132e-06/1.322, allocations: 0 / 0.6278 GB, free: 41.71 MB / 410.7 MB Notification: Performance of Templates: time 0.4165/1.738, allocations: 83.21 MB / 0.7091 GB, free: 100.9 MB / 426.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)