Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|// smpm.stator.zeroInductor.i0|smpm.is.1.|smpm.is.2.",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|// smpm.stator.zeroInductor.i0|smpm.is.1.|smpm.is.2.",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001519/0.001519, allocations: 179.1 kB / 13.66 MB, free: 1.66 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.957/1.957, allocations: 205.2 MB / 219.4 MB, free: 14.29 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.001096/0.001096, allocations: 90.64 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.516e-05/3.521e-05, allocations: 0 / 321.5 MB, free: 17.84 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09377/0.09384, allocations: 47.58 MB / 369.1 MB, free: 2.195 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4641/0.558, allocations: 115.6 MB / 484.7 MB, free: 10.23 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003276/0.5584, allocations: 87.45 kB / 484.8 MB, free: 10.18 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6277/1.186, allocations: 76.96 MB / 0.5486 GB, free: 91.83 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.365e-06/1.186, allocations: 1.281 kB / 0.5486 GB, free: 91.83 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000401/1.187, allocations: 84.41 kB / 0.5487 GB, free: 91.82 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: 818 * Number of variables: 818 Notification: Performance of Generate backend data structure: time 0.01365/1.2, allocations: 3.193 MB / 0.5518 GB, free: 90.55 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.44e-05/1.2, allocations: 8.75 kB / 0.5518 GB, free: 90.55 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004797/1.205, allocations: 0.6007 MB / 0.5524 GB, free: 90.36 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01176/1.217, allocations: 3.137 MB / 0.5554 GB, free: 89.82 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002782/1.217, allocations: 235.3 kB / 0.5557 GB, free: 89.81 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001141/1.218, allocations: 310.8 kB / 0.556 GB, free: 89.8 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01174/1.23, allocations: 4.052 MB / 0.5599 GB, free: 89.3 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001471/1.23, allocations: 6.844 kB / 0.5599 GB, free: 89.3 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004927/1.231, allocations: 133.8 kB / 0.5601 GB, free: 89.3 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001749/1.231, allocations: 146.8 kB / 0.5602 GB, free: 89.29 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01008/1.241, allocations: 3.258 MB / 0.5634 GB, free: 89.26 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03371/1.275, allocations: 13.82 MB / 0.5769 GB, free: 81.99 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007734/1.283, allocations: 5.858 MB / 0.5826 GB, free: 76.79 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003349/1.286, allocations: 1.33 MB / 0.5839 GB, free: 76.28 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008771/1.295, allocations: 3.175 MB / 0.587 GB, free: 74.61 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.248e-05/1.295, allocations: 54.36 kB / 0.587 GB, free: 74.55 MB / 410.7 MB Notification: Performance of pre-optimization done (n=137): time 4.959e-06/1.295, allocations: 0 / 0.587 GB, free: 74.55 MB / 410.7 MB Notification: Performance of matching and sorting (n=141): time 0.0118/1.307, allocations: 4.53 MB / 0.5915 GB, free: 72.18 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.517e-05/1.307, allocations: 92.55 kB / 0.5916 GB, free: 72.09 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004579/1.312, allocations: 1.682 MB / 0.5932 GB, free: 71.38 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003885/1.312, allocations: 45.2 kB / 0.5932 GB, free: 71.34 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001295/1.313, allocations: 1.385 MB / 0.5946 GB, free: 70.21 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007659/1.314, allocations: 481.7 kB / 0.5951 GB, free: 69.84 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001734/1.314, allocations: 35.5 kB / 0.5951 GB, free: 69.82 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001559/1.315, allocations: 386.3 kB / 0.5955 GB, free: 69.47 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001877/1.316, allocations: 0.7117 MB / 0.5961 GB, free: 69.19 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002486/1.319, allocations: 1.242 MB / 0.5974 GB, free: 68.23 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002482/1.322, allocations: 0.9082 MB / 0.5982 GB, free: 67.86 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.673e-05/1.322, allocations: 3.969 kB / 0.5983 GB, free: 67.86 MB / 410.7 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.006395/1.328, allocations: 2.547 MB / 0.6007 GB, free: 66.77 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001395/1.329, allocations: 6.353 MB / 0.6069 GB, free: 59.98 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.901e-05/1.33, allocations: 20.62 kB / 0.607 GB, free: 59.97 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002002/1.332, allocations: 0.5174 MB / 0.6075 GB, free: 59.79 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002692/1.334, allocations: 372 kB / 0.6078 GB, free: 59.75 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009869/1.344, allocations: 7.248 MB / 0.6149 GB, free: 54.25 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002747/1.347, allocations: 95.03 kB / 0.615 GB, free: 54.22 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002692/1.347, allocations: 79.05 kB / 0.6151 GB, free: 54.21 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.466e-05/1.347, allocations: 3.688 kB / 0.6151 GB, free: 54.21 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005679/1.353, allocations: 2.465 MB / 0.6175 GB, free: 53.16 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.033e-05/1.353, allocations: 19.06 kB / 0.6175 GB, free: 53.15 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001565/1.355, allocations: 0.5053 MB / 0.618 GB, free: 52.97 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00258/1.357, allocations: 367.6 kB / 0.6183 GB, free: 52.93 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009451/1.367, allocations: 7.306 MB / 0.6255 GB, free: 45.87 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001596/1.368, allocations: 89.92 kB / 0.6256 GB, free: 45.8 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000167/1.369, allocations: 71.38 kB / 0.6256 GB, free: 45.73 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 73 * 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 (187): * Single equations (assignments): 183 * 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 {(1,100.0%) 8,(1,100.0%) 1} * Non-linear torn systems: 1 {6 20} Notification: Performance of prepare postOptimizeDAE: time 0.0005003/1.369, allocations: 220.3 kB / 0.6258 GB, free: 45.51 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006161/1.37, allocations: 209.5 kB / 0.626 GB, free: 45.3 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005673/1.375, allocations: 2.43 MB / 0.6284 GB, free: 43.14 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-05/1.375, allocations: 15.95 kB / 0.6284 GB, free: 43.13 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.128e-05/1.375, allocations: 8 kB / 0.6284 GB, free: 43.12 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.015e-05/1.376, allocations: 11.31 kB / 0.6284 GB, free: 43.12 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01268/1.388, allocations: 5.276 MB / 0.6336 GB, free: 38.67 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.418e-05/1.388, allocations: 4.25 kB / 0.6336 GB, free: 38.67 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001657/1.39, allocations: 184.8 kB / 0.6338 GB, free: 38.52 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002567/1.393, allocations: 0.6503 MB / 0.6344 GB, free: 37.97 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003043/1.393, allocations: 28 kB / 0.6344 GB, free: 37.95 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01495/1.408, allocations: 11.27 MB / 0.6454 GB, free: 26.82 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.861e-06/1.408, allocations: 11.67 kB / 0.6455 GB, free: 26.81 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008026/1.416, allocations: 3.655 MB / 0.649 GB, free: 23.34 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001785/1.418, allocations: 469.5 kB / 0.6495 GB, free: 22.91 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006906/1.419, allocations: 27.19 kB / 0.6495 GB, free: 22.89 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002134/1.421, allocations: 82.84 kB / 0.6496 GB, free: 22.82 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004986/1.421, allocations: 125.5 kB / 0.6497 GB, free: 22.75 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001356/1.421, allocations: 41.55 kB / 0.6497 GB, free: 22.71 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00295/1.424, allocations: 1.278 MB / 0.651 GB, free: 21.52 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.72e-07/1.424, allocations: 0 / 0.651 GB, free: 21.52 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006018/1.43, allocations: 1.101 MB / 0.6521 GB, free: 20.43 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 5 (smpm.inertiaRotor.phi,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,smpm.stator.zeroInductor.i0,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 (90): * Single equations (assignments): 85 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 8,(2,100.0%) 8} * Non-linear torn systems: 1 {6 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.001051/1.432, allocations: 0.4903 MB / 0.6525 GB, free: 20.02 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00888/1.44, allocations: 4.082 MB / 0.6565 GB, free: 16.13 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.938e-06/1.44, allocations: 0 / 0.6565 GB, free: 16.13 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003783/1.444, allocations: 1.737 MB / 0.6582 GB, free: 14.46 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004812/1.449, allocations: 0.5989 MB / 0.6588 GB, free: 13.99 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01439/1.464, allocations: 4.733 MB / 0.6634 GB, free: 9.719 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003287/1.467, allocations: 2.351 MB / 0.6657 GB, free: 7.871 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009091/1.468, allocations: 142.7 kB / 0.6659 GB, free: 7.738 MB / 410.7 MB Notification: Performance of SimCode: time 1.212e-06/1.468, allocations: 0 / 0.6659 GB, free: 7.738 MB / 410.7 MB Notification: Performance of Templates: time 0.4642/1.932, allocations: 106.2 MB / 0.7696 GB, free: 60.5 MB / 426.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.pipe 2>&1)