Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=3000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=3000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001471/0.001471, allocations: 157.5 kB / 7.633 MB, free: 1.445 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.341/1.341, allocations: 170.7 MB / 178.7 MB, free: 7.047 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001845/0.001845, allocations: 106 kB / 218 MB, free: 15.35 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.738e-05/1.744e-05, allocations: 0 / 262.2 MB, free: 3.078 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2291/0.2291, allocations: 38.77 MB / 301 MB, free: 39.12 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1362/0.3654, allocations: 111.6 MB / 412.6 MB, free: 15.94 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002234/0.3657, allocations: 82.77 kB / 412.7 MB, free: 15.86 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4162/0.7819, allocations: 109.4 MB / 0.5098 GB, free: 30.45 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.894e-06/0.782, allocations: 4 kB / 0.5098 GB, free: 30.44 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0006225/0.7826, allocations: 131.8 kB / 0.5099 GB, free: 30.31 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1292 * Number of variables: 1292 Notification: Performance of Generate backend data structure: time 0.01566/0.7983, allocations: 4.741 MB / 0.5146 GB, free: 25.51 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.515e-05/0.7983, allocations: 15.97 kB / 0.5146 GB, free: 25.49 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004107/0.8024, allocations: 0.7351 MB / 0.5153 GB, free: 24.75 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008577/0.811, allocations: 3.462 MB / 0.5187 GB, free: 21.26 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000294/0.8114, allocations: 160 kB / 0.5188 GB, free: 21.1 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001988/0.8134, allocations: 291.9 kB / 0.5191 GB, free: 20.82 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01129/0.8247, allocations: 4.553 MB / 0.5236 GB, free: 16.26 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01607/0.8408, allocations: 5.556 MB / 0.529 GB, free: 10.49 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003341/0.8412, allocations: 15.89 kB / 0.529 GB, free: 10.48 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001631/0.8428, allocations: 8 kB / 0.529 GB, free: 10.47 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000204/0.8431, allocations: 217.8 kB / 0.5292 GB, free: 10.25 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04012/0.8832, allocations: 19.03 MB / 0.5478 GB, free: 6.789 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005487/0.8887, allocations: 3.896 MB / 0.5516 GB, free: 2.582 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002871/0.8916, allocations: 1.675 MB / 0.5532 GB, free: 0.9102 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004106/0.8921, allocations: 151 kB / 0.5534 GB, free: 0.7461 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.342e-05/0.8922, allocations: 64.52 kB / 0.5535 GB, free: 0.6719 MB / 346.7 MB Notification: Performance of pre-optimization done (n=219): time 4.138e-06/0.8922, allocations: 0 / 0.5535 GB, free: 0.6719 MB / 346.7 MB Notification: Performance of matching and sorting (n=263): time 0.2274/1.12, allocations: 8.888 MB / 0.5621 GB, free: 51.81 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.249e-05/1.12, allocations: 79.39 kB / 0.5622 GB, free: 51.75 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002814/1.122, allocations: 1.92 MB / 0.5641 GB, free: 51.53 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003159/1.123, allocations: 25.7 kB / 0.5641 GB, free: 51.5 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001123/1.124, allocations: 2.227 MB / 0.5663 GB, free: 50.71 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006847/1.125, allocations: 0.8651 MB / 0.5671 GB, free: 50.13 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001411/1.125, allocations: 0 / 0.5671 GB, free: 50.13 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001427/1.125, allocations: 431.8 kB / 0.5675 GB, free: 49.82 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001564/1.127, allocations: 1.29 MB / 0.5688 GB, free: 49.82 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001785/1.128, allocations: 2.128 MB / 0.5709 GB, free: 48.86 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001961/1.13, allocations: 1.691 MB / 0.5725 GB, free: 48.81 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.45e-05/1.13, allocations: 10.62 kB / 0.5725 GB, free: 48.81 MB / 346.7 MB Notification: Performance of matching and sorting (n=400) (initialization): time 0.007266/1.138, allocations: 4.568 MB / 0.577 GB, free: 48.36 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.64e-05/1.138, allocations: 22.17 kB / 0.577 GB, free: 48.36 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-05/1.138, allocations: 26.56 kB / 0.577 GB, free: 48.36 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002378/1.14, allocations: 0.9519 MB / 0.578 GB, free: 48.3 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002838/1.143, allocations: 0.6859 MB / 0.5786 GB, free: 48.3 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01214/1.155, allocations: 12.41 MB / 0.5908 GB, free: 42.05 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003171/1.158, allocations: 119.6 kB / 0.5909 GB, free: 42.04 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004874/1.159, allocations: 133.7 kB / 0.591 GB, free: 42.04 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 118 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (343): * Single equations (assignments): 336 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(6,75.0%) 22,(1,100.0%) 1,(4,93.8%) 18,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005935/1.159, allocations: 184.4 kB / 0.5912 GB, free: 41.92 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000735/1.16, allocations: 293 kB / 0.5915 GB, free: 41.77 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00743/1.168, allocations: 4.124 MB / 0.5955 GB, free: 41.31 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.365e-05/1.168, allocations: 27.81 kB / 0.5955 GB, free: 41.31 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.633e-05/1.168, allocations: 11.31 kB / 0.5955 GB, free: 41.31 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.383e-05/1.168, allocations: 12.89 kB / 0.5955 GB, free: 41.31 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01368/1.181, allocations: 9.06 MB / 0.6044 GB, free: 39.68 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.129e-05/1.181, allocations: 7.062 kB / 0.6044 GB, free: 39.68 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001538/1.183, allocations: 412.8 kB / 0.6048 GB, free: 39.66 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002375/1.185, allocations: 1.054 MB / 0.6058 GB, free: 39.34 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002166/1.186, allocations: 25.47 kB / 0.6058 GB, free: 39.34 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01319/1.199, allocations: 15.94 MB / 0.6214 GB, free: 27.37 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.974e-06/1.199, allocations: 9.688 kB / 0.6214 GB, free: 27.37 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008566/1.207, allocations: 6.448 MB / 0.6277 GB, free: 24.03 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001948/1.209, allocations: 0.647 MB / 0.6283 GB, free: 23.61 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005729/1.21, allocations: 19.97 kB / 0.6284 GB, free: 23.61 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001583/1.212, allocations: 116.8 kB / 0.6285 GB, free: 23.61 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004606/1.212, allocations: 198.6 kB / 0.6287 GB, free: 23.58 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00016/1.212, allocations: 81.2 kB / 0.6287 GB, free: 23.56 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.002048/1.214, allocations: 1.417 MB / 0.6301 GB, free: 22.95 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.51e-07/1.214, allocations: 3.5 kB / 0.6301 GB, free: 22.95 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.003619/1.218, allocations: 0.8847 MB / 0.631 GB, free: 22.94 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 13 (vfController.x,smrM.inertiaRotor.w,smrM.stator.port_n.Phi.re,smrM.stator.port_n.Phi.im,smrM.stator.strayReluctance.Phi.re,smrM.stator.strayReluctance.Phi.im,smrE.inertiaRotor.w,smrE.idq_sr[1],smrE.idq_sr[2],smrE.idq_dr[1],smrE.idq_dr[2],loadInertiaM.phi,loadInertiaE.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (200): * Single equations (assignments): 193 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(6,75.0%) 22,(4,93.8%) 18,(1,100.0%) 4,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 1,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006596/1.219, allocations: 407.9 kB / 0.6314 GB, free: 22.82 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00588/1.224, allocations: 4.3 MB / 0.6356 GB, free: 20.8 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 8.065e-06/1.225, allocations: 0 / 0.6356 GB, free: 20.8 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004178/1.229, allocations: 2.816 MB / 0.6383 GB, free: 19.32 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004313/1.233, allocations: 0.5814 MB / 0.6389 GB, free: 19.19 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01435/1.247, allocations: 7.793 MB / 0.6465 GB, free: 12.27 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002701/1.25, allocations: 3.405 MB / 0.6498 GB, free: 9.676 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.002548/1.253, allocations: 0.6621 MB / 0.6505 GB, free: 9.219 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006568/1.253, allocations: 198.1 kB / 0.6507 GB, free: 9.031 MB / 346.7 MB Notification: Performance of SimCode: time 9.22e-07/1.253, allocations: 0 / 0.6507 GB, free: 9.031 MB / 346.7 MB Notification: Performance of Templates: time 0.2439/1.497, allocations: 41.54 MB / 0.6912 GB, free: 62.3 MB / 362.7 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe 2>&1)