Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.0009368/0.0009369, allocations: 179.4 kB / 16.38 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.119/1.119, allocations: 194.5 MB / 211.6 MB, free: 3.047 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001617/0.001617, allocations: 114.3 kB / 256.9 MB, free: 4.352 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000299/0.000299, allocations: 8 kB / 310.6 MB, free: 14.93 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08425/0.08456, allocations: 44.49 MB / 355.1 MB, free: 2.336 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2728/0.3574, allocations: 103.7 MB / 458.8 MB, free: 2.289 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002539/0.3578, allocations: 93.39 kB / 458.9 MB, free: 2.242 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3648/0.7226, allocations: 80.2 MB / 0.5265 GB, free: 81.68 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.874e-06/0.7227, allocations: 2.953 kB / 0.5265 GB, free: 81.68 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003437/0.723, allocations: 78.45 kB / 0.5265 GB, free: 81.67 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 819 * Number of variables: 819 Notification: Performance of Generate backend data structure: time 0.01177/0.7348, allocations: 3.53 MB / 0.53 GB, free: 80.33 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.563e-05/0.7349, allocations: 10.22 kB / 0.53 GB, free: 80.33 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004404/0.7393, allocations: 0.7356 MB / 0.5307 GB, free: 80.14 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009488/0.7488, allocations: 3.371 MB / 0.534 GB, free: 79.62 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002717/0.7491, allocations: 232.7 kB / 0.5342 GB, free: 79.61 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001198/0.7503, allocations: 315.2 kB / 0.5345 GB, free: 79.61 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01237/0.7627, allocations: 4.174 MB / 0.5386 GB, free: 79.23 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.411e-05/0.7628, allocations: 5.219 kB / 0.5386 GB, free: 79.23 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003739/0.7632, allocations: 134.8 kB / 0.5387 GB, free: 79.22 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001768/0.7633, allocations: 143.8 kB / 0.5389 GB, free: 79.21 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006028/0.7694, allocations: 3.454 MB / 0.5422 GB, free: 79.18 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01957/0.789, allocations: 13.58 MB / 0.5555 GB, free: 75.21 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00489/0.7939, allocations: 6.872 MB / 0.5622 GB, free: 69.03 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004288/0.7982, allocations: 3.264 MB / 0.5654 GB, free: 67.18 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.557e-05/0.7982, allocations: 47.78 kB / 0.5654 GB, free: 67.13 MB / 394.7 MB Notification: Performance of pre-optimization done (n=130): time 2.555e-06/0.7983, allocations: 4 kB / 0.5654 GB, free: 67.12 MB / 394.7 MB Notification: Performance of matching and sorting (n=150): time 0.01065/0.8089, allocations: 6.803 MB / 0.5721 GB, free: 63.63 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.212e-05/0.809, allocations: 69.84 kB / 0.5722 GB, free: 63.56 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001834/0.8108, allocations: 1.622 MB / 0.5737 GB, free: 62.94 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 8.347e-05/0.8109, allocations: 52.8 kB / 0.5738 GB, free: 62.89 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006099/0.8115, allocations: 1.419 MB / 0.5752 GB, free: 61.8 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002559/0.8118, allocations: 0.5049 MB / 0.5757 GB, free: 61.41 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.742e-05/0.8119, allocations: 35.19 kB / 0.5757 GB, free: 61.38 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 8.931e-05/0.812, allocations: 386.9 kB / 0.5761 GB, free: 61.04 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000973/0.8129, allocations: 0.7775 MB / 0.5768 GB, free: 60.73 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001099/0.814, allocations: 1.221 MB / 0.578 GB, free: 59.88 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001139/0.8152, allocations: 1.004 MB / 0.579 GB, free: 59.41 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.26e-06/0.8152, allocations: 3.875 kB / 0.579 GB, free: 59.41 MB / 394.7 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.003444/0.8187, allocations: 2.696 MB / 0.5816 GB, free: 58.36 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.258e-05/0.8187, allocations: 13.75 kB / 0.5817 GB, free: 58.35 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.498e-05/0.8187, allocations: 15.03 kB / 0.5817 GB, free: 58.35 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001133/0.8199, allocations: 0.5034 MB / 0.5822 GB, free: 58.2 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0014/0.8213, allocations: 399.2 kB / 0.5825 GB, free: 58.18 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00611/0.8274, allocations: 6.536 MB / 0.5889 GB, free: 53.54 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001301/0.8287, allocations: 84.25 kB / 0.589 GB, free: 53.51 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001177/0.8288, allocations: 77.36 kB / 0.5891 GB, free: 53.49 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * 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 (184): * Single equations (assignments): 182 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(8,56.2%) 30} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001704/0.8305, allocations: 1.054 MB / 0.5901 GB, free: 52.89 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002271/0.8308, allocations: 198.3 kB / 0.5903 GB, free: 52.8 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003407/0.8342, allocations: 2.574 MB / 0.5928 GB, free: 51.53 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.376e-06/0.8342, allocations: 14.44 kB / 0.5928 GB, free: 51.53 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.855e-06/0.8342, allocations: 7.5 kB / 0.5928 GB, free: 51.53 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.13e-05/0.8342, allocations: 6.562 kB / 0.5928 GB, free: 51.53 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00787/0.8421, allocations: 5.656 MB / 0.5984 GB, free: 48.83 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.405e-06/0.8422, allocations: 3.125 kB / 0.5984 GB, free: 48.83 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009699/0.8431, allocations: 229.2 kB / 0.5986 GB, free: 48.81 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001139/0.8443, allocations: 0.4917 MB / 0.5991 GB, free: 48.63 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.159e-05/0.8444, allocations: 42.3 kB / 0.5991 GB, free: 48.61 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007708/0.8521, allocations: 10.59 MB / 0.6094 GB, free: 39.75 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.275e-06/0.8522, allocations: 0 / 0.6094 GB, free: 39.75 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005043/0.8572, allocations: 3.759 MB / 0.6131 GB, free: 37.55 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00111/0.8583, allocations: 464.3 kB / 0.6136 GB, free: 37.12 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002384/0.8586, allocations: 32 kB / 0.6136 GB, free: 37.09 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009144/0.8595, allocations: 80.56 kB / 0.6137 GB, free: 37.02 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002827/0.8598, allocations: 116 kB / 0.6138 GB, free: 36.95 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.123e-05/0.8599, allocations: 43.23 kB / 0.6138 GB, free: 36.91 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001694/0.8616, allocations: 1.25 MB / 0.615 GB, free: 35.86 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.8616, allocations: 0 / 0.615 GB, free: 35.86 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002129/0.8637, allocations: 0.629 MB / 0.6157 GB, free: 35.23 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (aimc.inertiaRotor.phi,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.strayReluctance.Phi.re,aimc.stator.strayReluctance.Phi.im,aimc.stator.zeroInductor.i0,loadInertia.w) * 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 (108): * Single equations (assignments): 103 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(2,100.0%) 12,(1,100.0%) 1,(1,100.0%) 12,(1,100.0%) 8,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005563/0.8643, allocations: 365.8 kB / 0.616 GB, free: 34.94 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003311/0.8676, allocations: 2.448 MB / 0.6184 GB, free: 32.74 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.117e-06/0.8677, allocations: 4.438 kB / 0.6184 GB, free: 32.73 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001957/0.8696, allocations: 1.735 MB / 0.6201 GB, free: 31.1 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001759/0.8714, allocations: 484.4 kB / 0.6206 GB, free: 30.73 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008751/0.8801, allocations: 7.197 MB / 0.6276 GB, free: 24.14 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00311/0.8833, allocations: 2.432 MB / 0.63 GB, free: 22.23 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002194/0.8855, allocations: 420.2 kB / 0.6304 GB, free: 21.94 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003309/0.8859, allocations: 131 kB / 0.6305 GB, free: 21.82 MB / 394.7 MB Notification: Performance of SimCode: time 1.082e-06/0.8859, allocations: 0 / 0.6305 GB, free: 21.82 MB / 394.7 MB Notification: Performance of Templates: time 0.04957/0.9355, allocations: 31.31 MB / 0.6611 GB, free: 10.39 MB / 410.7 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe 2>&1)