Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=16000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=16000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001054/0.001054, allocations: 180 kB / 16.38 MB, free: 5.766 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.263/1.263, allocations: 194.5 MB / 211.6 MB, free: 3.043 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.001578/0.001578, allocations: 114.2 kB / 256.9 MB, free: 4.355 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002865/0.0002864, allocations: 8 kB / 310.6 MB, free: 14.93 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07807/0.07837, allocations: 44.5 MB / 355.1 MB, free: 2.332 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2591/0.3376, allocations: 109.6 MB / 464.7 MB, free: 12.56 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002407/0.3378, allocations: 95.72 kB / 464.8 MB, free: 12.52 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3189/0.6568, allocations: 76.75 MB / 0.5288 GB, free: 83.34 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.313e-06/0.6568, allocations: 2.125 kB / 0.5288 GB, free: 83.34 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001832/0.657, allocations: 90.2 kB / 0.5289 GB, free: 83.33 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: 817 * Number of variables: 817 Notification: Performance of Generate backend data structure: time 0.007623/0.6647, allocations: 3.535 MB / 0.5324 GB, free: 81.94 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.575e-05/0.6647, allocations: 13.66 kB / 0.5324 GB, free: 81.93 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002512/0.6672, allocations: 0.6028 MB / 0.533 GB, free: 81.74 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007012/0.6742, allocations: 3.155 MB / 0.536 GB, free: 81.21 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001668/0.6744, allocations: 237.6 kB / 0.5363 GB, free: 81.2 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004871/0.6749, allocations: 313.3 kB / 0.5366 GB, free: 81.19 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006466/0.6814, allocations: 4.121 MB / 0.5406 GB, free: 80.69 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.49e-05/0.6815, allocations: 5.5 kB / 0.5406 GB, free: 80.69 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002782/0.6818, allocations: 134.2 kB / 0.5407 GB, free: 80.69 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001274/0.6819, allocations: 139.5 kB / 0.5409 GB, free: 80.68 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004454/0.6864, allocations: 3.357 MB / 0.5441 GB, free: 80.64 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01517/0.7016, allocations: 13.82 MB / 0.5576 GB, free: 75.12 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003835/0.7054, allocations: 5.931 MB / 0.5634 GB, free: 69.94 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004636/0.7101, allocations: 3.238 MB / 0.5666 GB, free: 68.24 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.834e-05/0.7101, allocations: 52.5 kB / 0.5666 GB, free: 68.19 MB / 394.7 MB Notification: Performance of pre-optimization done (n=143): time 3.456e-06/0.7102, allocations: 0 / 0.5666 GB, free: 68.19 MB / 394.7 MB Notification: Performance of matching and sorting (n=147): time 0.01049/0.7207, allocations: 6.785 MB / 0.5733 GB, free: 64.87 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.149e-05/0.7207, allocations: 96.3 kB / 0.5733 GB, free: 64.77 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00194/0.7227, allocations: 1.69 MB / 0.575 GB, free: 64.09 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 9.634e-05/0.7228, allocations: 51.61 kB / 0.575 GB, free: 64.04 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005901/0.7234, allocations: 1.443 MB / 0.5765 GB, free: 62.94 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000233/0.7236, allocations: 0.4918 MB / 0.5769 GB, free: 62.55 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.417e-05/0.7237, allocations: 38.56 kB / 0.577 GB, free: 62.52 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 7.799e-05/0.7238, allocations: 381 kB / 0.5773 GB, free: 62.18 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009015/0.7247, allocations: 0.7666 MB / 0.5781 GB, free: 61.89 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001043/0.7257, allocations: 1.274 MB / 0.5793 GB, free: 60.96 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001072/0.7268, allocations: 0.9536 MB / 0.5803 GB, free: 60.54 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.292e-06/0.7268, allocations: 3.25 kB / 0.5803 GB, free: 60.54 MB / 394.7 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.003353/0.7302, allocations: 2.801 MB / 0.583 GB, free: 59.31 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008976/0.7311, allocations: 6.426 MB / 0.5893 GB, free: 52.42 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.833e-05/0.7311, allocations: 14.94 kB / 0.5893 GB, free: 52.42 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009996/0.7321, allocations: 0.5215 MB / 0.5898 GB, free: 52.24 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00139/0.7335, allocations: 373.9 kB / 0.5902 GB, free: 52.2 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005642/0.7392, allocations: 7.409 MB / 0.5974 GB, free: 46.62 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001535/0.7407, allocations: 93.38 kB / 0.5975 GB, free: 46.6 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000107/0.7409, allocations: 81.58 kB / 0.5976 GB, free: 46.58 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.105e-06/0.7409, allocations: 0.625 kB / 0.5976 GB, free: 46.58 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003066/0.7439, allocations: 2.569 MB / 0.6001 GB, free: 45.45 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.843e-05/0.744, allocations: 17.41 kB / 0.6001 GB, free: 45.45 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008782/0.7449, allocations: 0.5163 MB / 0.6006 GB, free: 45.27 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001168/0.746, allocations: 375 kB / 0.6009 GB, free: 45.23 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00508/0.7511, allocations: 7.41 MB / 0.6082 GB, free: 39.64 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001354/0.7525, allocations: 86.3 kB / 0.6083 GB, free: 39.61 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000102/0.7526, allocations: 75.59 kB / 0.6083 GB, free: 39.6 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 71 * 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 (191): * Single equations (assignments): 187 * 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.001546/0.7542, allocations: 1.064 MB / 0.6094 GB, free: 38.97 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002983/0.7545, allocations: 204.4 kB / 0.6096 GB, free: 38.87 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003177/0.7577, allocations: 2.548 MB / 0.6121 GB, free: 37.63 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.275e-06/0.7577, allocations: 16.66 kB / 0.6121 GB, free: 37.63 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.592e-06/0.7577, allocations: 3.75 kB / 0.6121 GB, free: 37.63 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.047e-05/0.7577, allocations: 7.172 kB / 0.6121 GB, free: 37.63 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006673/0.7644, allocations: 5.474 MB / 0.6174 GB, free: 34.2 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.382e-06/0.7644, allocations: 4 kB / 0.6174 GB, free: 34.2 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007653/0.7652, allocations: 189.9 kB / 0.6176 GB, free: 34.04 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001203/0.7664, allocations: 0.6558 MB / 0.6183 GB, free: 33.51 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.84e-05/0.7665, allocations: 32 kB / 0.6183 GB, free: 33.48 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007833/0.7743, allocations: 11.53 MB / 0.6295 GB, free: 22.16 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.7744, allocations: 3.953 kB / 0.6295 GB, free: 22.16 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004238/0.7786, allocations: 3.825 MB / 0.6333 GB, free: 18.59 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009653/0.7796, allocations: 476.4 kB / 0.6337 GB, free: 18.15 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002417/0.7798, allocations: 32 kB / 0.6338 GB, free: 18.12 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000905/0.7807, allocations: 85.84 kB / 0.6338 GB, free: 18.06 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000225/0.781, allocations: 118.7 kB / 0.634 GB, free: 17.99 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.508e-05/0.7811, allocations: 40 kB / 0.634 GB, free: 17.95 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001515/0.7826, allocations: 1.301 MB / 0.6353 GB, free: 16.83 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.7826, allocations: 0 / 0.6353 GB, free: 16.83 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002907/0.7855, allocations: 1.117 MB / 0.6364 GB, free: 15.72 MB / 394.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 91 * 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.0005731/0.7861, allocations: 453.1 kB / 0.6368 GB, free: 15.36 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004695/0.7908, allocations: 4.246 MB / 0.6409 GB, free: 11.43 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.117e-06/0.7908, allocations: 0.875 kB / 0.6409 GB, free: 11.43 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001902/0.7927, allocations: 1.824 MB / 0.6427 GB, free: 9.73 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002316/0.7951, allocations: 0.5894 MB / 0.6433 GB, free: 9.277 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007729/0.8028, allocations: 7.098 MB / 0.6502 GB, free: 2.762 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001429/0.8042, allocations: 2.385 MB / 0.6526 GB, free: 0.8945 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001612/0.8059, allocations: 0.5369 MB / 0.6531 GB, free: 0.5273 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002899/0.8062, allocations: 131 kB / 0.6532 GB, free: 412 kB / 394.7 MB Notification: Performance of SimCode: time 5.21e-07/0.8062, allocations: 0 / 0.6532 GB, free: 412 kB / 394.7 MB Notification: Performance of Templates: time 0.2016/1.008, allocations: 40.73 MB / 0.693 GB, free: 82.76 MB / 410.7 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.pipe 2>&1)