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.005564/0.005564, allocations: 166.3 kB / 15.11 MB, free: 5.59 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.228/1.228, allocations: 170.8 MB / 186.6 MB, free: 1.117 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.001583/0.001583, allocations: 106.6 kB / 226.2 MB, free: 10.12 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004922/0.0004923, allocations: 12 kB / 274.1 MB, free: 10.09 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2712/0.2717, allocations: 38.76 MB / 312.9 MB, free: 38.82 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3618/0.6336, allocations: 112.4 MB / 425.3 MB, free: 50.73 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004272/0.6341, allocations: 88.7 kB / 425.4 MB, free: 50.73 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3171/0.9513, allocations: 110.6 MB / 0.5234 GB, free: 11.92 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.224e-06/0.9513, allocations: 0 / 0.5234 GB, free: 11.92 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0005529/0.9519, allocations: 139.7 kB / 0.5236 GB, free: 11.78 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: 1292 * Number of variables: 1292 Notification: Performance of Generate backend data structure: time 0.01707/0.9689, allocations: 5.192 MB / 0.5286 GB, free: 6.512 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.445e-05/0.969, allocations: 8.031 kB / 0.5286 GB, free: 6.504 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004143/0.9732, allocations: 0.7351 MB / 0.5294 GB, free: 5.762 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009705/0.9829, allocations: 3.477 MB / 0.5327 GB, free: 2.207 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004003/0.9833, allocations: 369.9 kB / 0.5331 GB, free: 1.844 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001805/0.9852, allocations: 491.9 kB / 0.5336 GB, free: 1.363 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01475/0.9999, allocations: 6.403 MB / 0.5398 GB, free: 10.75 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001346/1, allocations: 11.84 kB / 0.5398 GB, free: 10.74 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005867/1.001, allocations: 212 kB / 0.54 GB, free: 10.53 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002493/1.001, allocations: 221.8 kB / 0.5402 GB, free: 10.31 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01156/1.013, allocations: 5.02 MB / 0.5452 GB, free: 5.281 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2286/1.241, allocations: 19.98 MB / 0.5647 GB, free: 43.71 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003826/1.245, allocations: 4.042 MB / 0.5686 GB, free: 41.98 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003117/1.245, allocations: 155.7 kB / 0.5688 GB, free: 41.88 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.583e-05/1.245, allocations: 56.91 kB / 0.5688 GB, free: 41.84 MB / 362.7 MB Notification: Performance of pre-optimization done (n=215): time 5.079e-06/1.245, allocations: 2.656 kB / 0.5688 GB, free: 41.84 MB / 362.7 MB Notification: Performance of matching and sorting (n=257): time 0.02776/1.273, allocations: 13.35 MB / 0.5819 GB, free: 39.57 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.703e-05/1.273, allocations: 80.25 kB / 0.5819 GB, free: 39.5 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003796/1.277, allocations: 2.406 MB / 0.5843 GB, free: 39.28 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004589/1.278, allocations: 68.61 kB / 0.5843 GB, free: 39.25 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001609/1.279, allocations: 2.227 MB / 0.5865 GB, free: 38.53 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000966/1.28, allocations: 0.8824 MB / 0.5874 GB, free: 38.03 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001714/1.28, allocations: 66.53 kB / 0.5874 GB, free: 38.03 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001752/1.281, allocations: 427.2 kB / 0.5879 GB, free: 37.72 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002032/1.283, allocations: 1.418 MB / 0.5892 GB, free: 37.71 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002182/1.285, allocations: 2.246 MB / 0.5914 GB, free: 36.77 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002233/1.287, allocations: 1.813 MB / 0.5932 GB, free: 36.73 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.162e-05/1.287, allocations: 10.91 kB / 0.5932 GB, free: 36.73 MB / 362.7 MB Notification: Performance of matching and sorting (n=394) (initialization): time 0.007598/1.295, allocations: 5.014 MB / 0.5981 GB, free: 36.27 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.749e-05/1.295, allocations: 15.59 kB / 0.5981 GB, free: 36.27 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.74e-05/1.295, allocations: 28.09 kB / 0.5982 GB, free: 36.27 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002119/1.297, allocations: 0.9654 MB / 0.5991 GB, free: 36.21 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002314/1.299, allocations: 0.678 MB / 0.5998 GB, free: 36.21 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01121/1.31, allocations: 13.15 MB / 0.6126 GB, free: 29.33 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002774/1.313, allocations: 177.8 kB / 0.6128 GB, free: 29.28 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002463/1.314, allocations: 130.1 kB / 0.6129 GB, free: 29.25 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 115 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (339): * Single equations (assignments): 332 * 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%) 22,(1,100.0%) 1,(4,93.8%) 16,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002873/1.316, allocations: 1.524 MB / 0.6144 GB, free: 28.48 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006554/1.317, allocations: 323.5 kB / 0.6147 GB, free: 28.31 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006501/1.324, allocations: 4.472 MB / 0.6191 GB, free: 26.35 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-05/1.324, allocations: 22.09 kB / 0.6191 GB, free: 26.35 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.601e-05/1.324, allocations: 14.92 kB / 0.6191 GB, free: 26.35 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.112e-05/1.324, allocations: 14.81 kB / 0.6191 GB, free: 26.35 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01534/1.339, allocations: 9.801 MB / 0.6287 GB, free: 22.25 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.341e-05/1.339, allocations: 6.438 kB / 0.6287 GB, free: 22.25 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001633/1.341, allocations: 401.6 kB / 0.6291 GB, free: 22.24 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002426/1.343, allocations: 1.035 MB / 0.6301 GB, free: 21.94 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002386/1.343, allocations: 77.64 kB / 0.6302 GB, free: 21.89 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01417/1.358, allocations: 16.9 MB / 0.6467 GB, free: 9.16 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.06e-06/1.358, allocations: 7.656 kB / 0.6467 GB, free: 9.16 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00956/1.367, allocations: 6.737 MB / 0.6532 GB, free: 5.699 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002141/1.369, allocations: 0.6964 MB / 0.6539 GB, free: 5.25 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006078/1.37, allocations: 58.64 kB / 0.654 GB, free: 5.211 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001517/1.372, allocations: 149.8 kB / 0.6541 GB, free: 5.176 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004598/1.372, allocations: 193.7 kB / 0.6543 GB, free: 5.145 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001506/1.372, allocations: 74.69 kB / 0.6544 GB, free: 5.125 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.00269/1.375, allocations: 1.836 MB / 0.6562 GB, free: 4.426 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.2e-07/1.375, allocations: 0 / 0.6562 GB, free: 4.426 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.004122/1.379, allocations: 1.018 MB / 0.6572 GB, free: 4.312 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 13 (vfController.x,smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (197): * Single equations (assignments): 190 * 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%) 16,(1,100.0%) 5,(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.0009228/1.38, allocations: 441.3 kB / 0.6576 GB, free: 4.137 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.006667/1.387, allocations: 4.61 MB / 0.6621 GB, free: 0.6484 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.193e-06/1.387, allocations: 0.9375 kB / 0.6621 GB, free: 0.6484 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007047/1.394, allocations: 3.198 MB / 0.6652 GB, free: 14.41 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004001/1.398, allocations: 0.7727 MB / 0.666 GB, free: 13.8 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01863/1.416, allocations: 11.48 MB / 0.6772 GB, free: 3.289 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003296/1.42, allocations: 3.398 MB / 0.6805 GB, free: 0.7109 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002639/1.422, allocations: 0.6937 MB / 0.6812 GB, free: 236 kB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006347/1.423, allocations: 217.9 kB / 0.6814 GB, free: 28 kB / 378.7 MB Notification: Performance of SimCode: time 2.315e-06/1.423, allocations: 0 / 0.6814 GB, free: 28 kB / 378.7 MB Notification: Performance of Templates: time 0.2973/1.72, allocations: 51.38 MB / 0.7316 GB, free: 64.51 MB / 394.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)