Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_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.SMPM_Inverter,tolerance=1e-05,outputFormat="empty",numberOfIntervals=6000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter,tolerance=1e-05,outputFormat="empty",numberOfIntervals=6000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001505/0.001505, allocations: 170.5 kB / 12.72 MB, free: 2.594 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.127/1.127, allocations: 170.6 MB / 183.8 MB, free: 11.47 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.001597/0.001596, allocations: 95.52 kB / 223.2 MB, free: 4.109 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.012e-05/2.016e-05, allocations: 8 kB / 268.9 MB, free: 20.91 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06687/0.0669, allocations: 38.76 MB / 307.6 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3089/0.3758, allocations: 116.8 MB / 424.5 MB, free: 8.324 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002525/0.3761, allocations: 87.25 kB / 424.6 MB, free: 8.277 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.451/0.8271, allocations: 118.6 MB / 0.5305 GB, free: 59 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.8272, allocations: 0 / 0.5305 GB, free: 59 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003583/0.8275, allocations: 143.8 kB / 0.5306 GB, free: 58.86 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1354 * Number of variables: 1354 Notification: Performance of Generate backend data structure: time 0.01247/0.84, allocations: 4.949 MB / 0.5354 GB, free: 53.83 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.832e-05/0.8401, allocations: 15.97 kB / 0.5355 GB, free: 53.82 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003596/0.8437, allocations: 0.7854 MB / 0.5362 GB, free: 53.02 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007624/0.8513, allocations: 3.656 MB / 0.5398 GB, free: 49.29 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002178/0.8516, allocations: 386.3 kB / 0.5402 GB, free: 48.91 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001038/0.8526, allocations: 0.5037 MB / 0.5407 GB, free: 48.41 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01087/0.8635, allocations: 6.518 MB / 0.547 GB, free: 41.68 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001156/0.8637, allocations: 15.98 kB / 0.547 GB, free: 41.67 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004775/0.8641, allocations: 220 kB / 0.5472 GB, free: 41.45 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001666/0.8643, allocations: 234.2 kB / 0.5475 GB, free: 41.22 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009904/0.8742, allocations: 5.007 MB / 0.5524 GB, free: 36.21 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03283/0.9071, allocations: 21.09 MB / 0.573 GB, free: 14.58 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003523/0.9107, allocations: 4.022 MB / 0.5769 GB, free: 10.25 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002119/0.9128, allocations: 1.803 MB / 0.5786 GB, free: 8.445 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003029/0.9131, allocations: 151 kB / 0.5788 GB, free: 8.281 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.463e-05/0.9132, allocations: 64.5 kB / 0.5788 GB, free: 8.207 MB / 346.7 MB Notification: Performance of pre-optimization done (n=226): time 4.348e-06/0.9132, allocations: 4 kB / 0.5788 GB, free: 8.203 MB / 346.7 MB Notification: Performance of matching and sorting (n=275): time 0.2372/1.15, allocations: 11.73 MB / 0.5903 GB, free: 54.93 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.613e-05/1.15, allocations: 87.66 kB / 0.5904 GB, free: 54.86 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005158/1.156, allocations: 2.583 MB / 0.5929 GB, free: 54.61 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005189/1.156, allocations: 72.42 kB / 0.593 GB, free: 54.58 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001935/1.158, allocations: 2.37 MB / 0.5953 GB, free: 53.77 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009089/1.159, allocations: 0.9494 MB / 0.5962 GB, free: 53.17 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001669/1.159, allocations: 64.66 kB / 0.5963 GB, free: 53.17 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001815/1.159, allocations: 434.9 kB / 0.5967 GB, free: 52.86 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002427/1.162, allocations: 1.403 MB / 0.5981 GB, free: 52.85 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003054/1.165, allocations: 2.324 MB / 0.6003 GB, free: 51.79 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002727/1.168, allocations: 1.842 MB / 0.6021 GB, free: 51.74 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.489e-05/1.168, allocations: 13.53 kB / 0.6021 GB, free: 51.74 MB / 346.7 MB Notification: Performance of matching and sorting (n=424) (initialization): time 0.007859/1.176, allocations: 5.126 MB / 0.6072 GB, free: 51.27 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.32e-05/1.176, allocations: 22.31 kB / 0.6072 GB, free: 51.27 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.686e-05/1.176, allocations: 30.33 kB / 0.6072 GB, free: 51.27 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00219/1.178, allocations: 1.006 MB / 0.6082 GB, free: 51.2 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00239/1.18, allocations: 0.72 MB / 0.6089 GB, free: 51.2 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01251/1.193, allocations: 13.49 MB / 0.6221 GB, free: 44.6 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003118/1.196, allocations: 192.5 kB / 0.6223 GB, free: 44.59 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000282/1.196, allocations: 145.9 kB / 0.6224 GB, free: 44.59 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 130 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (364): * Single equations (assignments): 357 * 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,72.2%) 23,(1,100.0%) 1,(4,93.8%) 20,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005339/1.197, allocations: 300.9 kB / 0.6227 GB, free: 44.46 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004844/1.197, allocations: 351.5 kB / 0.623 GB, free: 44.29 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006802/1.204, allocations: 4.52 MB / 0.6274 GB, free: 43.2 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.699e-05/1.204, allocations: 31.73 kB / 0.6275 GB, free: 43.2 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.37e-05/1.204, allocations: 16.91 kB / 0.6275 GB, free: 43.2 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.246e-05/1.204, allocations: 15.14 kB / 0.6275 GB, free: 43.2 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0156/1.22, allocations: 10.63 MB / 0.6379 GB, free: 38.68 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.279e-05/1.22, allocations: 5.688 kB / 0.6379 GB, free: 38.68 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001605/1.221, allocations: 425.5 kB / 0.6383 GB, free: 38.67 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002427/1.224, allocations: 1.068 MB / 0.6393 GB, free: 38.36 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00018/1.224, allocations: 67.44 kB / 0.6394 GB, free: 38.32 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0141/1.238, allocations: 16.92 MB / 0.6559 GB, free: 25.59 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.584e-06/1.238, allocations: 10.94 kB / 0.6559 GB, free: 25.59 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008838/1.247, allocations: 7.054 MB / 0.6628 GB, free: 21.81 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001877/1.249, allocations: 0.7399 MB / 0.6635 GB, free: 21.33 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005263/1.25, allocations: 61.22 kB / 0.6636 GB, free: 21.3 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001567/1.251, allocations: 148.8 kB / 0.6637 GB, free: 21.26 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004607/1.252, allocations: 209.7 kB / 0.6639 GB, free: 21.23 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000177/1.252, allocations: 82.45 kB / 0.664 GB, free: 21.21 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.003013/1.255, allocations: 1.957 MB / 0.6659 GB, free: 20.44 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.363e-06/1.255, allocations: 0 / 0.6659 GB, free: 20.44 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.004517/1.259, allocations: 1.085 MB / 0.667 GB, free: 20.32 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * Number of states: 13 (vfController.x,smpmM.inertiaRotor.w,smpmM.stator.port_n.Phi.re,smpmM.stator.port_n.Phi.im,smpmM.stator.strayReluctance.Phi.re,smpmM.stator.strayReluctance.Phi.im,smpmE.inertiaRotor.w,smpmE.idq_sr[1],smpmE.idq_sr[2],smpmE.idq_rr[2],smpmE.idq_dr[1],loadInertiaM.phi,loadInertiaE.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (213): * Single equations (assignments): 206 * 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%) 23,(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.0009075/1.26, allocations: 0.5619 MB / 0.6675 GB, free: 20.1 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.006336/1.267, allocations: 4.648 MB / 0.6721 GB, free: 15.68 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 9.077e-06/1.267, allocations: 0 / 0.6721 GB, free: 15.68 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004545/1.271, allocations: 3.014 MB / 0.675 GB, free: 12.85 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004466/1.276, allocations: 0.8775 MB / 0.6759 GB, free: 12.16 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01314/1.289, allocations: 8.376 MB / 0.6841 GB, free: 4.605 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002628/1.292, allocations: 3.523 MB / 0.6875 GB, free: 1.945 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.00251/1.294, allocations: 0.7318 MB / 0.6882 GB, free: 1.441 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005888/1.295, allocations: 225.8 kB / 0.6884 GB, free: 1.23 MB / 346.7 MB Notification: Performance of SimCode: time 1.222e-06/1.295, allocations: 4 kB / 0.6884 GB, free: 1.227 MB / 346.7 MB Notification: Performance of Templates: time 0.3039/1.599, allocations: 56.81 MB / 0.7439 GB, free: 73.87 MB / 378.7 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe 2>&1)