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.001628/0.001628, allocations: 188.5 kB / 8.353 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.621/1.621, allocations: 194.3 MB / 203.1 MB, free: 9.262 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.0018/0.0018, allocations: 116.3 kB / 248.1 MB, free: 6.355 MB / 203.1 MB Notification: Performance of FrontEnd - loaded program: time 1.637e-05/1.639e-05, allocations: 0 / 298.1 MB, free: 8.227 MB / 251.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09868/0.09872, allocations: 44.5 MB / 342.6 MB, free: 11.63 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3483/0.4471, allocations: 108.8 MB / 451.4 MB, free: 3.582 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002539/0.4474, allocations: 86.58 kB / 451.5 MB, free: 3.539 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.4785/0.9259, allocations: 75.78 MB / 0.5149 GB, free: 68.37 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.9259, allocations: 0 / 0.5149 GB, free: 68.37 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0003348/0.9263, allocations: 79.81 kB / 0.515 GB, free: 68.36 MB / 395.1 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.009166/0.9355, allocations: 3.193 MB / 0.5181 GB, free: 67.3 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.805e-05/0.9355, allocations: 8.844 kB / 0.5181 GB, free: 67.3 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003455/0.939, allocations: 0.5972 MB / 0.5187 GB, free: 67.11 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00814/0.9472, allocations: 3.125 MB / 0.5218 GB, free: 66.58 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001782/0.9474, allocations: 103.2 kB / 0.5219 GB, free: 66.58 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001013/0.9484, allocations: 187.9 kB / 0.522 GB, free: 66.58 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006307/0.9547, allocations: 3.076 MB / 0.5251 GB, free: 66.56 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007657/0.9624, allocations: 3.595 MB / 0.5286 GB, free: 66.09 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.741e-05/0.9625, allocations: 7.062 kB / 0.5286 GB, free: 66.09 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003711/0.9629, allocations: 3.25 kB / 0.5286 GB, free: 66.09 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001141/0.963, allocations: 139.6 kB / 0.5287 GB, free: 66.08 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02136/0.9844, allocations: 13.2 MB / 0.5416 GB, free: 62.73 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005322/0.9897, allocations: 5.782 MB / 0.5472 GB, free: 58.55 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00271/0.9925, allocations: 1.272 MB / 0.5485 GB, free: 58.54 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007092/0.9996, allocations: 3.084 MB / 0.5515 GB, free: 57.96 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.605e-05/0.9997, allocations: 53.72 kB / 0.5516 GB, free: 57.92 MB / 395.1 MB Notification: Performance of pre-optimization done (n=137): time 3.737e-06/0.9997, allocations: 0 / 0.5516 GB, free: 57.92 MB / 395.1 MB Notification: Performance of matching and sorting (n=141): time 0.00818/1.008, allocations: 4.5 MB / 0.5559 GB, free: 56.76 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.436e-05/1.008, allocations: 92.36 kB / 0.556 GB, free: 56.67 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003047/1.011, allocations: 1.397 MB / 0.5574 GB, free: 56.49 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001081/1.011, allocations: 29.02 kB / 0.5574 GB, free: 56.46 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009842/1.012, allocations: 1.454 MB / 0.5588 GB, free: 55.76 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003146/1.012, allocations: 466.4 kB / 0.5593 GB, free: 55.46 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.024e-05/1.013, allocations: 0 / 0.5593 GB, free: 55.46 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001105/1.013, allocations: 375.1 kB / 0.5596 GB, free: 55.15 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009758/1.014, allocations: 0.6798 MB / 0.5603 GB, free: 54.99 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001206/1.015, allocations: 1.196 MB / 0.5615 GB, free: 54.05 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001561/1.016, allocations: 0.9563 MB / 0.5624 GB, free: 53.68 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-05/1.016, allocations: 4.281 kB / 0.5624 GB, free: 53.68 MB / 395.1 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.004233/1.021, allocations: 2.553 MB / 0.5649 GB, free: 52.69 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001217/1.022, allocations: 6.533 MB / 0.5713 GB, free: 45.62 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.346e-05/1.022, allocations: 17.16 kB / 0.5713 GB, free: 45.62 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00118/1.023, allocations: 0.5051 MB / 0.5718 GB, free: 45.44 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001388/1.025, allocations: 369.9 kB / 0.5722 GB, free: 45.43 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005349/1.03, allocations: 7 MB / 0.579 GB, free: 40.19 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001583/1.032, allocations: 63.14 kB / 0.579 GB, free: 40.18 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001654/1.032, allocations: 85.05 kB / 0.5791 GB, free: 40.17 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.147e-06/1.032, allocations: 5.625 kB / 0.5791 GB, free: 40.17 MB / 395.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003348/1.035, allocations: 2.328 MB / 0.5814 GB, free: 39.32 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.257e-05/1.035, allocations: 15.84 kB / 0.5814 GB, free: 39.32 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009265/1.036, allocations: 0.5059 MB / 0.5819 GB, free: 39.14 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00121/1.037, allocations: 360.1 kB / 0.5823 GB, free: 39.12 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006029/1.043, allocations: 6.994 MB / 0.5891 GB, free: 33.9 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002022/1.045, allocations: 55.05 kB / 0.5891 GB, free: 33.9 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002503/1.046, allocations: 76.95 kB / 0.5892 GB, free: 33.88 MB / 395.1 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.0005397/1.046, allocations: 154.7 kB / 0.5894 GB, free: 33.76 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005559/1.047, allocations: 194.7 kB / 0.5896 GB, free: 33.66 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003639/1.05, allocations: 2.352 MB / 0.5918 GB, free: 32.59 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.066e-05/1.05, allocations: 11.06 kB / 0.5919 GB, free: 32.59 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.486e-05/1.05, allocations: 7.922 kB / 0.5919 GB, free: 32.58 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.623e-05/1.05, allocations: 10.83 kB / 0.5919 GB, free: 32.58 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007757/1.058, allocations: 4.807 MB / 0.5966 GB, free: 30.39 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.013e-06/1.058, allocations: 3.531 kB / 0.5966 GB, free: 30.39 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007391/1.059, allocations: 178.9 kB / 0.5967 GB, free: 30.39 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001272/1.06, allocations: 0.6491 MB / 0.5974 GB, free: 30.16 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.459e-05/1.06, allocations: 11.66 kB / 0.5974 GB, free: 30.15 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008206/1.069, allocations: 10.87 MB / 0.608 GB, free: 21.61 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.913e-06/1.069, allocations: 3.938 kB / 0.608 GB, free: 21.61 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004625/1.073, allocations: 3.585 MB / 0.6115 GB, free: 19.73 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009695/1.074, allocations: 441 kB / 0.6119 GB, free: 19.43 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004437/1.075, allocations: 9.422 kB / 0.6119 GB, free: 19.43 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001049/1.076, allocations: 68.73 kB / 0.612 GB, free: 19.42 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002629/1.076, allocations: 114.2 kB / 0.6121 GB, free: 19.41 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.677e-05/1.076, allocations: 35.06 kB / 0.6121 GB, free: 19.4 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.001561/1.078, allocations: 1.048 MB / 0.6132 GB, free: 18.95 MB / 395.1 MB Notification: Performance of sort global known variables: time 1.212e-06/1.078, allocations: 0 / 0.6132 GB, free: 18.95 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.003845/1.082, allocations: 0.9894 MB / 0.6141 GB, free: 18.93 MB / 395.1 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.0005644/1.082, allocations: 434.8 kB / 0.6145 GB, free: 18.76 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.004814/1.087, allocations: 3.919 MB / 0.6184 GB, free: 16.64 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 4.959e-06/1.087, allocations: 3.719 kB / 0.6184 GB, free: 16.64 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001788/1.089, allocations: 1.672 MB / 0.62 GB, free: 15.63 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002381/1.091, allocations: 0.4928 MB / 0.6205 GB, free: 15.5 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008047/1.099, allocations: 4.621 MB / 0.625 GB, free: 13.55 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001909/1.101, allocations: 2.372 MB / 0.6273 GB, free: 12.5 MB / 395.1 MB Notification: Performance of simCode: alias equations: time 0.002496/1.104, allocations: 0.7368 MB / 0.628 GB, free: 12.43 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002451/1.104, allocations: 96.94 kB / 0.6281 GB, free: 12.42 MB / 395.1 MB Notification: Performance of SimCode: time 8.21e-07/1.104, allocations: 0 / 0.6281 GB, free: 12.42 MB / 395.1 MB Notification: Performance of Templates: time 0.0554/1.159, allocations: 35.4 MB / 0.6627 GB, free: 8.496 MB / 411.1 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)