Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.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.AIMC_DOL,tolerance=1e-05,outputFormat="empty",numberOfIntervals=15000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL,tolerance=1e-05,outputFormat="empty",numberOfIntervals=15000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.009819/0.009819, allocations: 165.6 kB / 15.11 MB, free: 5.973 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.386/1.386, allocations: 170.8 MB / 186.6 MB, free: 1.121 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.001721/0.001721, allocations: 115.3 kB / 226.2 MB, free: 10.1 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003511/0.0003511, allocations: 12 kB / 274.1 MB, free: 10.08 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2736/0.274, allocations: 38.77 MB / 312.9 MB, free: 38.76 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3394/0.6135, allocations: 109.7 MB / 422.6 MB, free: 49.98 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002882/0.6138, allocations: 87.45 kB / 422.7 MB, free: 49.98 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2475/0.8613, allocations: 112.9 MB / 0.5231 GB, free: 12.18 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.916e-06/0.8613, allocations: 0 / 0.5231 GB, free: 12.18 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0004846/0.8618, allocations: 131.8 kB / 0.5232 GB, free: 12.05 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: 1305 * Number of variables: 1305 Notification: Performance of Generate backend data structure: time 0.01782/0.8797, allocations: 5.31 MB / 0.5284 GB, free: 6.66 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.031e-05/0.8797, allocations: 11.97 kB / 0.5284 GB, free: 6.648 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004061/0.8838, allocations: 0.774 MB / 0.5292 GB, free: 5.867 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00904/0.8929, allocations: 3.631 MB / 0.5327 GB, free: 2.16 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003625/0.8933, allocations: 374 kB / 0.5331 GB, free: 1.793 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001529/0.8948, allocations: 0.4959 MB / 0.5335 GB, free: 1.297 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0167/0.9115, allocations: 6.591 MB / 0.54 GB, free: 10.5 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001483/0.9117, allocations: 11.84 kB / 0.54 GB, free: 10.48 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005663/0.9123, allocations: 216 kB / 0.5402 GB, free: 10.27 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002084/0.9125, allocations: 209.9 kB / 0.5404 GB, free: 10.07 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01123/0.9237, allocations: 5.231 MB / 0.5455 GB, free: 4.824 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2505/1.174, allocations: 20.46 MB / 0.5655 GB, free: 43.59 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004369/1.179, allocations: 4.68 MB / 0.5701 GB, free: 41.56 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003597/1.179, allocations: 156.9 kB / 0.5702 GB, free: 41.46 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.988e-05/1.179, allocations: 58.22 kB / 0.5703 GB, free: 41.43 MB / 362.7 MB Notification: Performance of pre-optimization done (n=235): time 5.62e-06/1.179, allocations: 0 / 0.5703 GB, free: 41.43 MB / 362.7 MB Notification: Performance of matching and sorting (n=276): time 0.03069/1.21, allocations: 13.46 MB / 0.5834 GB, free: 39.14 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.618e-05/1.21, allocations: 82.86 kB / 0.5835 GB, free: 39.07 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0052/1.215, allocations: 2.536 MB / 0.586 GB, free: 38.85 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006233/1.216, allocations: 73.42 kB / 0.586 GB, free: 38.82 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001505/1.217, allocations: 2.197 MB / 0.5882 GB, free: 38.13 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001051/1.218, allocations: 0.9377 MB / 0.5891 GB, free: 37.63 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001603/1.219, allocations: 60.41 kB / 0.5892 GB, free: 37.63 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000161/1.219, allocations: 427.6 kB / 0.5896 GB, free: 37.32 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002135/1.221, allocations: 1.508 MB / 0.591 GB, free: 37.31 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002284/1.223, allocations: 2.197 MB / 0.5932 GB, free: 36.56 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002355/1.226, allocations: 1.87 MB / 0.595 GB, free: 36.52 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.45e-05/1.226, allocations: 7.406 kB / 0.595 GB, free: 36.52 MB / 362.7 MB Notification: Performance of matching and sorting (n=389) (initialization): time 0.007782/1.233, allocations: 5.089 MB / 0.6 GB, free: 36.05 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.476e-05/1.233, allocations: 16.28 kB / 0.6 GB, free: 36.05 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.267e-05/1.233, allocations: 17.5 kB / 0.6 GB, free: 36.05 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001953/1.235, allocations: 0.9341 MB / 0.6009 GB, free: 35.98 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002359/1.238, allocations: 0.67 MB / 0.6016 GB, free: 35.98 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01092/1.249, allocations: 13.03 MB / 0.6143 GB, free: 28.04 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003335/1.252, allocations: 150.4 kB / 0.6145 GB, free: 27.99 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002787/1.252, allocations: 124.4 kB / 0.6146 GB, free: 27.96 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 90 * Number of states: 0 () * Number of discrete variables: 3 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (333): * Single equations (assignments): 325 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(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 {(2,100.0%) 12,(1,100.0%) 1,(4,100.0%) 27,(1,100.0%) 8,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003567/1.256, allocations: 1.619 MB / 0.6162 GB, free: 27.15 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009076/1.257, allocations: 329 kB / 0.6165 GB, free: 26.98 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007469/1.264, allocations: 4.88 MB / 0.6212 GB, free: 24.75 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.138e-05/1.264, allocations: 25.06 kB / 0.6213 GB, free: 24.75 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.838e-05/1.264, allocations: 14.06 kB / 0.6213 GB, free: 24.75 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.256e-05/1.264, allocations: 14.39 kB / 0.6213 GB, free: 24.75 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01768/1.282, allocations: 10.75 MB / 0.6318 GB, free: 20.07 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.478e-05/1.282, allocations: 3.25 kB / 0.6318 GB, free: 20.07 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001736/1.284, allocations: 434.8 kB / 0.6322 GB, free: 20.06 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002372/1.286, allocations: 1.087 MB / 0.6333 GB, free: 19.71 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002138/1.287, allocations: 69.52 kB / 0.6333 GB, free: 19.67 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01569/1.302, allocations: 18.46 MB / 0.6514 GB, free: 5.234 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.988e-06/1.302, allocations: 14.7 kB / 0.6514 GB, free: 5.23 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01097/1.313, allocations: 7.333 MB / 0.6585 GB, free: 1.43 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002654/1.316, allocations: 0.7457 MB / 0.6593 GB, free: 0.957 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006025/1.317, allocations: 61.36 kB / 0.6593 GB, free: 0.918 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001563/1.318, allocations: 145.9 kB / 0.6595 GB, free: 0.8828 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005863/1.319, allocations: 220.3 kB / 0.6597 GB, free: 0.8438 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001666/1.319, allocations: 75.28 kB / 0.6597 GB, free: 0.8242 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.003139/1.322, allocations: 1.943 MB / 0.6616 GB, free: 92 kB / 362.7 MB Notification: Performance of sort global known variables: time 4.01e-07/1.322, allocations: 0 / 0.6616 GB, free: 92 kB / 362.7 MB Notification: Performance of remove unused functions: time 0.004862/1.327, allocations: 1.038 MB / 0.6627 GB, free: 0 / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 14 (aimcM.inertiaRotor.w,aimcM.stator.zeroInductor.i0,aimcM.stator.core.Phi.re,aimcM.stator.core.Phi.im,aimcM.stator.strayReluctance.Phi.re,aimcM.stator.strayReluctance.Phi.im,aimcE.inertiaRotor.w,aimcE.i_0_s,aimcE.idq_sr[1],aimcE.idq_sr[2],aimcE.idq_rr[1],aimcE.idq_rr[2],quadraticLoadTorqueM.phi,quadraticLoadTorqueE.phi) * Number of discrete variables: 3 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (206): * Single equations (assignments): 197 * 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: 8 * 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: 8 {(4,100.0%) 26,(2,100.0%) 12,(1,100.0%) 8,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001107/1.328, allocations: 436.3 kB / 0.6631 GB, free: 15.74 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.008358/1.337, allocations: 4.862 MB / 0.6678 GB, free: 11.3 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.54e-05/1.337, allocations: 384 / 0.6678 GB, free: 11.3 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006516/1.343, allocations: 3.406 MB / 0.6711 GB, free: 8.152 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006006/1.349, allocations: 0.8394 MB / 0.672 GB, free: 7.504 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02664/1.376, allocations: 12.29 MB / 0.684 GB, free: 12.98 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004781/1.381, allocations: 3.553 MB / 0.6874 GB, free: 10.27 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.003329/1.384, allocations: 0.7342 MB / 0.6882 GB, free: 9.762 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007473/1.385, allocations: 209 kB / 0.6884 GB, free: 9.566 MB / 394.7 MB Notification: Performance of SimCode: time 1.102e-06/1.385, allocations: 4 kB / 0.6884 GB, free: 9.562 MB / 394.7 MB Notification: Performance of Templates: time 0.3193/1.704, allocations: 53.48 MB / 0.7406 GB, free: 67.81 MB / 394.7 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.pipe 2>&1)