Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.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.SMPM_VoltageSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001272/0.001272, allocations: 179.6 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.301/1.301, allocations: 194.5 MB / 211.6 MB, free: 3.035 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.001561/0.001561, allocations: 106 kB / 256.9 MB, free: 4.387 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003631/0.0003631, allocations: 8 kB / 310.6 MB, free: 14.93 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09297/0.09334, allocations: 44.5 MB / 355.1 MB, free: 2.328 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2951/0.3885, allocations: 113.1 MB / 468.2 MB, free: 9.09 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002573/0.3888, allocations: 89.77 kB / 468.3 MB, free: 9.043 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3731/0.7619, allocations: 80.15 MB / 0.5356 GB, free: 84.85 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.7619, allocations: 0 / 0.5356 GB, free: 84.85 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003816/0.7623, allocations: 99.06 kB / 0.5357 GB, free: 84.84 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: 908 * Number of variables: 908 Notification: Performance of Generate backend data structure: time 0.01142/0.7737, allocations: 3.817 MB / 0.5394 GB, free: 83.25 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.196e-05/0.7738, allocations: 9.625 kB / 0.5394 GB, free: 83.25 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003398/0.7772, allocations: 0.6445 MB / 0.54 GB, free: 83.03 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008184/0.7854, allocations: 3.408 MB / 0.5434 GB, free: 82.43 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001892/0.7856, allocations: 257.9 kB / 0.5436 GB, free: 82.43 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007479/0.7864, allocations: 341 kB / 0.5439 GB, free: 82.42 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006209/0.7926, allocations: 4.373 MB / 0.5482 GB, free: 81.96 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.511e-05/0.7927, allocations: 4.562 kB / 0.5482 GB, free: 81.96 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002828/0.793, allocations: 154.7 kB / 0.5484 GB, free: 81.95 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001098/0.7931, allocations: 162.2 kB / 0.5485 GB, free: 81.95 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004567/0.7977, allocations: 3.497 MB / 0.5519 GB, free: 81.91 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0186/0.8163, allocations: 14.54 MB / 0.5661 GB, free: 74.77 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003673/0.82, allocations: 5.359 MB / 0.5714 GB, free: 70.03 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0047/0.8247, allocations: 3.3 MB / 0.5746 GB, free: 68.23 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.603e-05/0.8247, allocations: 46.91 kB / 0.5746 GB, free: 68.18 MB / 394.7 MB Notification: Performance of pre-optimization done (n=137): time 2.465e-06/0.8248, allocations: 3.938 kB / 0.5746 GB, free: 68.18 MB / 394.7 MB Notification: Performance of matching and sorting (n=164): time 0.01166/0.8364, allocations: 7.084 MB / 0.5816 GB, free: 64.69 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.302e-05/0.8365, allocations: 75.25 kB / 0.5816 GB, free: 64.61 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002288/0.8388, allocations: 1.834 MB / 0.5834 GB, free: 63.89 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 9.77e-05/0.8389, allocations: 48.7 kB / 0.5835 GB, free: 63.84 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006853/0.8396, allocations: 1.633 MB / 0.5851 GB, free: 62.59 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002804/0.8399, allocations: 0.5582 MB / 0.5856 GB, free: 62.16 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.851e-05/0.84, allocations: 39.34 kB / 0.5857 GB, free: 62.13 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.169e-05/0.8401, allocations: 385.3 kB / 0.586 GB, free: 61.79 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001003/0.8411, allocations: 0.8565 MB / 0.5869 GB, free: 61.45 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001188/0.8423, allocations: 1.456 MB / 0.5883 GB, free: 60.33 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001262/0.8435, allocations: 1.119 MB / 0.5894 GB, free: 59.8 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.073e-06/0.8436, allocations: 6.25 kB / 0.5894 GB, free: 59.8 MB / 394.7 MB Notification: Performance of matching and sorting (n=259) (initialization): time 0.00375/0.8473, allocations: 2.956 MB / 0.5923 GB, free: 58.52 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.32e-05/0.8474, allocations: 13.66 kB / 0.5923 GB, free: 58.52 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.065e-05/0.8474, allocations: 17.91 kB / 0.5923 GB, free: 58.52 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008659/0.8483, allocations: 428.4 kB / 0.5927 GB, free: 58.39 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00154/0.8498, allocations: 480.4 kB / 0.5932 GB, free: 58.34 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004909/0.8547, allocations: 5.692 MB / 0.5987 GB, free: 54.08 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002054/0.8568, allocations: 129.1 kB / 0.5988 GB, free: 54.03 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001464/0.857, allocations: 87.83 kB / 0.5989 GB, free: 54.02 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 85 * 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 (228): * Single equations (assignments): 225 * 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: 2 * 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: 2 {(5,72.0%) 25,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001783/0.8588, allocations: 1.068 MB / 0.6 GB, free: 53.43 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003792/0.8591, allocations: 219.1 kB / 0.6002 GB, free: 53.31 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003646/0.8628, allocations: 2.612 MB / 0.6027 GB, free: 51.75 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.608e-06/0.8628, allocations: 19.38 kB / 0.6027 GB, free: 51.74 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.776e-06/0.8628, allocations: 10.44 kB / 0.6028 GB, free: 51.73 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.212e-05/0.8629, allocations: 7.078 kB / 0.6028 GB, free: 51.73 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009155/0.872, allocations: 6.11 MB / 0.6087 GB, free: 46.66 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.913e-06/0.8721, allocations: 0 / 0.6087 GB, free: 46.66 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001018/0.8731, allocations: 255.6 kB / 0.609 GB, free: 46.46 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001128/0.8742, allocations: 0.5473 MB / 0.6095 GB, free: 46 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.307e-05/0.8743, allocations: 32 kB / 0.6095 GB, free: 45.97 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007064/0.8814, allocations: 8.489 MB / 0.6178 GB, free: 37.7 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.8814, allocations: 4 kB / 0.6178 GB, free: 37.7 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004892/0.8863, allocations: 3.982 MB / 0.6217 GB, free: 34 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001209/0.8876, allocations: 0.512 MB / 0.6222 GB, free: 33.53 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005757/0.8882, allocations: 28 kB / 0.6222 GB, free: 33.5 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001393/0.8896, allocations: 87.53 kB / 0.6223 GB, free: 33.44 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002141/0.8898, allocations: 114.7 kB / 0.6224 GB, free: 33.37 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.421e-05/0.8899, allocations: 47.94 kB / 0.6225 GB, free: 33.33 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002397/0.8923, allocations: 1.399 MB / 0.6239 GB, free: 32.13 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.8923, allocations: 0 / 0.6239 GB, free: 32.13 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002452/0.8948, allocations: 0.6796 MB / 0.6245 GB, free: 31.45 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 6 (smpm.inertiaRotor.w,smpm.stator.core.Phi.im,smpm.stator.zeroInductor.i0,quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.PI_q.x) * 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 (121): * Single equations (assignments): 118 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(6,63.9%) 23,(1,100.0%) 1,(3,88.9%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006175/0.8954, allocations: 474.4 kB / 0.625 GB, free: 31.09 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00351/0.8989, allocations: 2.687 MB / 0.6276 GB, free: 28.62 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.388e-06/0.8989, allocations: 0 / 0.6276 GB, free: 28.62 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002208/0.9011, allocations: 1.714 MB / 0.6293 GB, free: 27.04 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002372/0.9035, allocations: 0.5099 MB / 0.6298 GB, free: 26.64 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.011/0.9145, allocations: 7.7 MB / 0.6373 GB, free: 19.54 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002623/0.9172, allocations: 2.525 MB / 0.6397 GB, free: 17.06 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001904/0.9191, allocations: 0.4945 MB / 0.6402 GB, free: 16.58 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000619/0.9198, allocations: 159.4 kB / 0.6404 GB, free: 16.42 MB / 394.7 MB Notification: Performance of SimCode: time 1.222e-06/0.9198, allocations: 0 / 0.6404 GB, free: 16.42 MB / 394.7 MB Notification: Performance of Templates: time 0.2194/1.139, allocations: 33.85 MB / 0.6734 GB, free: 91.22 MB / 410.7 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe 2>&1)