Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.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.SMEE_Generator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=12000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=12000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001357/0.001357, allocations: 169.8 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.295/1.295, allocations: 170.6 MB / 183.8 MB, free: 11.42 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.001652/0.001652, allocations: 107.5 kB / 223.2 MB, free: 4.039 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.839e-05/2.841e-05, allocations: 8 kB / 268.9 MB, free: 20.91 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07092/0.07097, allocations: 38.77 MB / 307.6 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.315/0.3861, allocations: 122.1 MB / 429.8 MB, free: 3.121 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002248/0.3863, allocations: 84.58 kB / 429.9 MB, free: 3.078 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4545/0.8408, allocations: 124.2 MB / 0.541 GB, free: 48.04 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.645e-06/0.8408, allocations: 0 / 0.541 GB, free: 48.04 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0004654/0.8413, allocations: 147.7 kB / 0.5412 GB, free: 47.9 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: 1422 * Number of variables: 1422 Notification: Performance of Generate backend data structure: time 0.01503/0.8564, allocations: 5.239 MB / 0.5463 GB, free: 42.59 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.706e-05/0.8564, allocations: 12.03 kB / 0.5463 GB, free: 42.58 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004617/0.861, allocations: 0.8911 MB / 0.5472 GB, free: 41.68 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00983/0.8709, allocations: 3.931 MB / 0.551 GB, free: 37.67 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005536/0.8715, allocations: 406.9 kB / 0.5514 GB, free: 37.27 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00225/0.8738, allocations: 0.5272 MB / 0.5519 GB, free: 36.75 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01442/0.8882, allocations: 6.694 MB / 0.5584 GB, free: 29.86 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001663/0.8884, allocations: 15.84 kB / 0.5585 GB, free: 29.84 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006851/0.8891, allocations: 228 kB / 0.5587 GB, free: 29.62 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001599/0.8893, allocations: 242.7 kB / 0.5589 GB, free: 29.38 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01015/0.8995, allocations: 5.134 MB / 0.5639 GB, free: 24.24 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03688/0.9364, allocations: 22.49 MB / 0.5859 GB, free: 1.125 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2134/1.15, allocations: 4.292 MB / 0.5901 GB, free: 46.61 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003568/1.153, allocations: 1.968 MB / 0.592 GB, free: 46.59 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000389/1.154, allocations: 156.1 kB / 0.5921 GB, free: 46.5 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.174e-05/1.154, allocations: 63.95 kB / 0.5922 GB, free: 46.46 MB / 346.7 MB Notification: Performance of pre-optimization done (n=245): time 4.97e-06/1.154, allocations: 0 / 0.5922 GB, free: 46.46 MB / 346.7 MB Notification: Performance of matching and sorting (n=299): time 0.02996/1.184, allocations: 12.37 MB / 0.6043 GB, free: 45.25 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.068e-05/1.184, allocations: 81.47 kB / 0.6044 GB, free: 45.19 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004315/1.188, allocations: 2.845 MB / 0.6071 GB, free: 44.94 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000461/1.189, allocations: 74.11 kB / 0.6072 GB, free: 44.91 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001405/1.19, allocations: 2.529 MB / 0.6097 GB, free: 44 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009206/1.191, allocations: 1.013 MB / 0.6107 GB, free: 43.35 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000186/1.191, allocations: 76.78 kB / 0.6107 GB, free: 43.35 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001911/1.192, allocations: 447.3 kB / 0.6112 GB, free: 43.04 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002016/1.194, allocations: 1.496 MB / 0.6126 GB, free: 43.04 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002366/1.196, allocations: 2.568 MB / 0.6151 GB, free: 41.79 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002459/1.198, allocations: 1.973 MB / 0.6171 GB, free: 41.73 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.699e-05/1.198, allocations: 7.594 kB / 0.6171 GB, free: 41.73 MB / 346.7 MB Notification: Performance of matching and sorting (n=464) (initialization): time 0.008269/1.207, allocations: 5.441 MB / 0.6224 GB, free: 41.25 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.195e-05/1.207, allocations: 19.03 kB / 0.6224 GB, free: 41.25 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.666e-05/1.207, allocations: 40.53 kB / 0.6224 GB, free: 41.25 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002062/1.209, allocations: 0.9463 MB / 0.6234 GB, free: 41.2 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002948/1.212, allocations: 0.829 MB / 0.6242 GB, free: 41.2 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01072/1.223, allocations: 10.73 MB / 0.6347 GB, free: 36.57 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00347/1.226, allocations: 231.2 kB / 0.6349 GB, free: 36.5 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004872/1.227, allocations: 154.5 kB / 0.635 GB, free: 36.48 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 153 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (403): * Single equations (assignments): 394 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * 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: 3 {(6,72.2%) 23,(4,93.8%) 19,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005725/1.227, allocations: 322.7 kB / 0.6353 GB, free: 36.25 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007887/1.228, allocations: 389.9 kB / 0.6357 GB, free: 36.05 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007151/1.235, allocations: 4.682 MB / 0.6403 GB, free: 34.06 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.362e-05/1.235, allocations: 29.25 kB / 0.6403 GB, free: 34.06 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.86e-05/1.235, allocations: 9.812 kB / 0.6403 GB, free: 34.06 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.728e-05/1.235, allocations: 19.77 kB / 0.6403 GB, free: 34.06 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01887/1.254, allocations: 11 MB / 0.6511 GB, free: 29.37 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.005189/1.259, allocations: 3.774 MB / 0.6548 GB, free: 27.81 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001951/1.261, allocations: 0.4976 MB / 0.6552 GB, free: 27.79 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002404/1.264, allocations: 1.029 MB / 0.6562 GB, free: 27.49 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002496/1.264, allocations: 74.11 kB / 0.6563 GB, free: 27.45 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01397/1.278, allocations: 14.32 MB / 0.6703 GB, free: 15.92 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.706e-06/1.278, allocations: 10.81 kB / 0.6703 GB, free: 15.91 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0101/1.288, allocations: 7.694 MB / 0.6778 GB, free: 8.477 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002295/1.291, allocations: 0.7916 MB / 0.6786 GB, free: 7.746 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000673/1.291, allocations: 67.89 kB / 0.6787 GB, free: 7.684 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001907/1.293, allocations: 184.5 kB / 0.6788 GB, free: 7.547 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005084/1.294, allocations: 237.2 kB / 0.6791 GB, free: 7.402 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001791/1.294, allocations: 90.8 kB / 0.6792 GB, free: 7.32 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.00392/1.298, allocations: 2.149 MB / 0.6813 GB, free: 5.379 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.01e-07/1.298, allocations: 0 / 0.6813 GB, free: 5.379 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.005458/1.303, allocations: 1.168 MB / 0.6824 GB, free: 4.227 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 34 * Number of states: 10 (smeeM.phiMechanical,smeeM.stator.port_n.Phi.re,smeeM.stator.port_n.Phi.im,smeeM.stator.strayReluctance.Phi.re,smeeM.stator.strayReluctance.Phi.im,smeeE.phiMechanical,smeeE.idq_sr[1],smeeE.idq_sr[2],smeeE.idq_rr[2],smeeE.idq_dr[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (232): * Single equations (assignments): 224 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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: 5 {(4,93.8%) 19,(1,100.0%) 4,(1,100.0%) 8,(6,72.2%) 23,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001067/1.304, allocations: 0.5256 MB / 0.6829 GB, free: 3.812 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.007281/1.312, allocations: 4.779 MB / 0.6876 GB, free: 15.33 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.314e-05/1.312, allocations: 6.531 kB / 0.6876 GB, free: 15.32 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005501/1.317, allocations: 3.066 MB / 0.6906 GB, free: 12.46 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006037/1.323, allocations: 0.8263 MB / 0.6914 GB, free: 11.8 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02075/1.344, allocations: 8.572 MB / 0.6998 GB, free: 4.004 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004385/1.348, allocations: 3.581 MB / 0.7032 GB, free: 1.316 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.003334/1.352, allocations: 0.7623 MB / 0.704 GB, free: 0.7891 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008743/1.353, allocations: 241.4 kB / 0.7042 GB, free: 0.5586 MB / 362.7 MB Notification: Performance of SimCode: time 2.484e-06/1.353, allocations: 0 / 0.7042 GB, free: 0.5586 MB / 362.7 MB Notification: Performance of Templates: time 0.3566/1.709, allocations: 56.8 MB / 0.7597 GB, free: 63.2 MB / 378.7 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe 2>&1)