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.001125/0.001125, allocations: 182.3 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.448/1.448, allocations: 194.2 MB / 208.4 MB, free: 6.711 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.001706/0.001706, allocations: 130.2 kB / 253.5 MB, free: 9.574 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.634e-05/2.638e-05, allocations: 7.984 kB / 304.9 MB, free: 29.76 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08742/0.08747, allocations: 44.5 MB / 349.4 MB, free: 1.238 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4008/0.4884, allocations: 109.5 MB / 459 MB, free: 2.434 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002736/0.4887, allocations: 94.48 kB / 459.1 MB, free: 2.383 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1876/0.6763, allocations: 76.8 MB / 0.5233 GB, free: 11.63 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.6763, allocations: 0 / 0.5233 GB, free: 11.63 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003194/0.6767, allocations: 87.88 kB / 0.5234 GB, free: 11.54 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.01017/0.6868, allocations: 3.188 MB / 0.5265 GB, free: 8.289 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.744e-05/0.6869, allocations: 12.03 kB / 0.5265 GB, free: 8.277 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00384/0.6908, allocations: 0.5858 MB / 0.5271 GB, free: 7.688 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008778/0.6996, allocations: 3.143 MB / 0.5301 GB, free: 4.488 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002811/0.6999, allocations: 230.2 kB / 0.5304 GB, free: 4.262 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001418/0.7014, allocations: 307.9 kB / 0.5307 GB, free: 3.961 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2584/0.9598, allocations: 4.049 MB / 0.5346 GB, free: 73.66 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001164/0.96, allocations: 6.594 kB / 0.5346 GB, free: 73.66 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004916/0.9605, allocations: 130.7 kB / 0.5347 GB, free: 73.66 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000225/0.9607, allocations: 141.5 kB / 0.5349 GB, free: 73.65 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006893/0.9676, allocations: 3.26 MB / 0.5381 GB, free: 73.62 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02416/0.9918, allocations: 13.81 MB / 0.5516 GB, free: 70.38 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00464/0.9965, allocations: 5.845 MB / 0.5573 GB, free: 66.21 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001741/0.9982, allocations: 1.334 MB / 0.5586 GB, free: 66.18 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005343/1.004, allocations: 3.188 MB / 0.5617 GB, free: 65.64 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.281e-05/1.004, allocations: 52.95 kB / 0.5617 GB, free: 65.59 MB / 394.7 MB Notification: Performance of pre-optimization done (n=137): time 3.286e-06/1.004, allocations: 3.406 kB / 0.5617 GB, free: 65.59 MB / 394.7 MB Notification: Performance of matching and sorting (n=141): time 0.006849/1.011, allocations: 4.523 MB / 0.5662 GB, free: 64.55 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.407e-05/1.011, allocations: 90.05 kB / 0.5662 GB, free: 64.46 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002275/1.013, allocations: 1.679 MB / 0.5679 GB, free: 64.23 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 8.889e-05/1.013, allocations: 54.17 kB / 0.5679 GB, free: 64.2 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007435/1.014, allocations: 1.454 MB / 0.5693 GB, free: 63.66 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002832/1.014, allocations: 484.2 kB / 0.5698 GB, free: 63.36 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.568e-05/1.014, allocations: 33.31 kB / 0.5698 GB, free: 63.36 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001036/1.014, allocations: 371.6 kB / 0.5702 GB, free: 63.06 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009116/1.015, allocations: 0.7173 MB / 0.5709 GB, free: 63.05 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001184/1.016, allocations: 1.244 MB / 0.5721 GB, free: 62.45 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001125/1.017, allocations: 0.9079 MB / 0.573 GB, free: 62.32 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.018e-05/1.017, allocations: 10.83 kB / 0.573 GB, free: 62.32 MB / 394.7 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.003492/1.021, allocations: 2.676 MB / 0.5756 GB, free: 61.28 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001418/1.022, allocations: 6.601 MB / 0.5821 GB, free: 54.27 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.445e-05/1.022, allocations: 13.59 kB / 0.5821 GB, free: 54.27 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001103/1.024, allocations: 0.523 MB / 0.5826 GB, free: 54.1 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001252/1.025, allocations: 368.4 kB / 0.5829 GB, free: 54.09 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005792/1.031, allocations: 7.233 MB / 0.59 GB, free: 48.66 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001711/1.032, allocations: 96.64 kB / 0.5901 GB, free: 48.62 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001272/1.032, allocations: 74.72 kB / 0.5902 GB, free: 48.61 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.518e-06/1.032, allocations: 6.625 kB / 0.5902 GB, free: 48.61 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003327/1.036, allocations: 2.475 MB / 0.5926 GB, free: 47.68 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.88e-05/1.036, allocations: 15.22 kB / 0.5926 GB, free: 47.68 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009442/1.037, allocations: 0.5209 MB / 0.5931 GB, free: 47.5 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001219/1.038, allocations: 365.6 kB / 0.5935 GB, free: 47.49 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005559/1.044, allocations: 7.232 MB / 0.6005 GB, free: 42.04 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001782/1.045, allocations: 85.72 kB / 0.6006 GB, free: 42.02 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001226/1.046, allocations: 74.31 kB / 0.6007 GB, free: 42 MB / 394.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.000462/1.046, allocations: 232.4 kB / 0.6009 GB, free: 41.83 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003306/1.046, allocations: 203.9 kB / 0.6011 GB, free: 41.72 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003699/1.05, allocations: 2.426 MB / 0.6035 GB, free: 40.59 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.606e-06/1.05, allocations: 17.41 kB / 0.6035 GB, free: 40.59 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/1.05, allocations: 7 kB / 0.6035 GB, free: 40.59 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.333e-05/1.05, allocations: 9.578 kB / 0.6035 GB, free: 40.59 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007568/1.058, allocations: 5.287 MB / 0.6087 GB, free: 38.19 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.591e-06/1.058, allocations: 3.812 kB / 0.6087 GB, free: 38.19 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007229/1.058, allocations: 187 kB / 0.6088 GB, free: 38.18 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001254/1.06, allocations: 0.6408 MB / 0.6095 GB, free: 37.95 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.49e-05/1.06, allocations: 34.56 kB / 0.6095 GB, free: 37.93 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00869/1.068, allocations: 11.29 MB / 0.6205 GB, free: 29.01 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/1.069, allocations: 7.656 kB / 0.6205 GB, free: 29 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005038/1.074, allocations: 3.654 MB / 0.6241 GB, free: 27.05 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001409/1.075, allocations: 468.5 kB / 0.6245 GB, free: 26.73 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002846/1.075, allocations: 30.75 kB / 0.6246 GB, free: 26.71 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000971/1.076, allocations: 79.69 kB / 0.6246 GB, free: 26.7 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003772/1.077, allocations: 125.1 kB / 0.6248 GB, free: 26.67 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.589e-05/1.077, allocations: 36.81 kB / 0.6248 GB, free: 26.66 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002267/1.079, allocations: 1.278 MB / 0.6261 GB, free: 26.12 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.9e-07/1.079, allocations: 0 / 0.6261 GB, free: 26.12 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00481/1.084, allocations: 1.112 MB / 0.6271 GB, free: 26.02 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 () * 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.0007975/1.085, allocations: 493.1 kB / 0.6276 GB, free: 25.84 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.005466/1.09, allocations: 4.133 MB / 0.6316 GB, free: 23.62 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.831e-06/1.09, allocations: 8 kB / 0.6317 GB, free: 23.61 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001994/1.092, allocations: 1.742 MB / 0.6334 GB, free: 22.55 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002893/1.095, allocations: 0.5993 MB / 0.6339 GB, free: 22.39 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008376/1.104, allocations: 4.75 MB / 0.6386 GB, free: 20.04 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001788/1.105, allocations: 2.386 MB / 0.6409 GB, free: 18.17 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002695/1.108, allocations: 0.7914 MB / 0.6417 GB, free: 17.67 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002264/1.108, allocations: 99.44 kB / 0.6418 GB, free: 17.57 MB / 394.7 MB Notification: Performance of SimCode: time 9.82e-07/1.108, allocations: 0 / 0.6418 GB, free: 17.57 MB / 394.7 MB Notification: Performance of Templates: time 0.06933/1.178, allocations: 43.93 MB / 0.6847 GB, free: 256 kB / 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)