Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.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.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.0009375/0.0009376, allocations: 180 kB / 16.38 MB, free: 5.766 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.132/1.132, allocations: 194.5 MB / 211.6 MB, free: 3.055 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.00146/0.001461, allocations: 115 kB / 256.9 MB, free: 4.344 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002771/0.0002771, allocations: 8 kB / 310.6 MB, free: 14.91 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07569/0.07598, allocations: 44.5 MB / 355.1 MB, free: 2.309 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2873/0.3633, allocations: 156.3 MB / 0.4994 GB, free: 14.46 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002228/0.3636, allocations: 108 kB / 0.4995 GB, free: 14.4 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.188/1.551, allocations: 397.2 MB / 0.8874 GB, free: 39.77 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.575e-06/1.551, allocations: 0 / 0.8874 GB, free: 39.77 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0007498/1.552, allocations: 297.9 kB / 0.8877 GB, free: 39.74 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3594 * Number of variables: 3594 Notification: Performance of Generate backend data structure: time 0.03456/1.586, allocations: 11.99 MB / 0.8994 GB, free: 35.7 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.259e-05/1.587, allocations: 9.656 kB / 0.8994 GB, free: 35.7 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03297/1.62, allocations: 6.457 MB / 0.9057 GB, free: 34.98 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02298/1.643, allocations: 9.698 MB / 0.9152 GB, free: 33.58 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001274/1.644, allocations: 0.9442 MB / 0.9161 GB, free: 33.55 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005877/1.65, allocations: 1.239 MB / 0.9173 GB, free: 33.54 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04446/1.694, allocations: 20.88 MB / 0.9377 GB, free: 25.94 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005409/1.695, allocations: 24.97 kB / 0.9377 GB, free: 25.92 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003886/1.699, allocations: 0.5313 MB / 0.9383 GB, free: 25.52 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009122/1.7, allocations: 0.851 MB / 0.9391 GB, free: 25.36 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03789/1.738, allocations: 18.94 MB / 0.9576 GB, free: 10.45 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3452/2.083, allocations: 66.01 MB / 1.022 GB, free: 28.74 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03845/2.121, allocations: 46.12 MB / 1.067 GB, free: 25.39 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04096/2.162, allocations: 23.95 MB / 1.09 GB, free: 24.27 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.366e-05/2.162, allocations: 101.8 kB / 1.091 GB, free: 24.23 MB / 474.7 MB Notification: Performance of pre-optimization done (n=782): time 9.437e-06/2.162, allocations: 0 / 1.091 GB, free: 24.23 MB / 474.7 MB Notification: Performance of matching and sorting (n=824): time 0.09406/2.257, allocations: 46.84 MB / 1.136 GB, free: 21.07 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.973e-05/2.257, allocations: 125 kB / 1.136 GB, free: 21 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005833/2.263, allocations: 3.795 MB / 1.14 GB, free: 19.59 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001421/2.264, allocations: 137.6 kB / 1.14 GB, free: 19.47 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002374/2.266, allocations: 5.067 MB / 1.145 GB, free: 15.66 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003439/2.27, allocations: 2.738 MB / 1.148 GB, free: 13.54 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007168/2.271, allocations: 163.3 kB / 1.148 GB, free: 13.41 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0006469/2.271, allocations: 0.6749 MB / 1.149 GB, free: 12.94 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007729/2.279, allocations: 5.186 MB / 1.154 GB, free: 10.83 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01054/2.289, allocations: 7.627 MB / 1.161 GB, free: 5.688 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0104/2.3, allocations: 6.533 MB / 1.168 GB, free: 1.289 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.861e-05/2.3, allocations: 21.31 kB / 1.168 GB, free: 1.27 MB / 490.7 MB Notification: Performance of matching and sorting (n=1175) (initialization): time 0.2444/2.544, allocations: 15.91 MB / 1.183 GB, free: 95.11 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.762e-05/2.545, allocations: 36.91 kB / 1.183 GB, free: 95.11 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000103/2.545, allocations: 75.19 kB / 1.183 GB, free: 95.11 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00639/2.551, allocations: 4.134 MB / 1.187 GB, free: 94.99 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006883/2.558, allocations: 1.688 MB / 1.189 GB, free: 94.99 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01133/2.569, allocations: 12.22 MB / 1.201 GB, free: 90.39 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00635/2.576, allocations: 456.6 kB / 1.201 GB, free: 90.39 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001979/2.578, allocations: 396.4 kB / 1.202 GB, free: 90.39 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 339 * 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 (877): * Single equations (assignments): 821 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 6 * 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: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of prepare postOptimizeDAE: time 0.01009/2.588, allocations: 4.447 MB / 1.206 GB, free: 90.28 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001627/2.589, allocations: 0.6093 MB / 1.207 GB, free: 90.28 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02293/2.612, allocations: 14.59 MB / 1.221 GB, free: 89.9 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001803/2.613, allocations: 197.1 kB / 1.221 GB, free: 89.9 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.354e-05/2.613, allocations: 0 / 1.221 GB, free: 89.9 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001124/2.613, allocations: 37.95 kB / 1.221 GB, free: 89.9 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05224/2.665, allocations: 29.24 MB / 1.25 GB, free: 78.74 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.905e-05/2.665, allocations: 3.562 kB / 1.25 GB, free: 78.74 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004945/2.67, allocations: 1.082 MB / 1.251 GB, free: 78.71 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006808/2.677, allocations: 4.014 MB / 1.255 GB, free: 77.46 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001616/2.678, allocations: 173.2 kB / 1.255 GB, free: 77.36 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01026/2.689, allocations: 12.06 MB / 1.267 GB, free: 69.45 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/2.689, allocations: 3.719 kB / 1.267 GB, free: 69.45 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03065/2.719, allocations: 22.14 MB / 1.288 GB, free: 57.59 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005578/2.725, allocations: 1.796 MB / 1.29 GB, free: 55.98 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002567/2.728, allocations: 124 kB / 1.29 GB, free: 55.86 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00493/2.733, allocations: 334.3 kB / 1.29 GB, free: 55.63 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002098/2.735, allocations: 0.5826 MB / 1.291 GB, free: 55.26 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001459/2.736, allocations: 225.6 kB / 1.291 GB, free: 55.06 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.005751/2.742, allocations: 2.841 MB / 1.294 GB, free: 52.7 MB / 490.7 MB Notification: Performance of sort global known variables: time 6.11e-07/2.742, allocations: 0 / 1.294 GB, free: 52.7 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01095/2.753, allocations: 2.215 MB / 1.296 GB, free: 50.5 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.w,quadraticSpeedDependentTorqueQS.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 (562): * Single equations (assignments): 506 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 6 * 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: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.002441/2.755, allocations: 0.6869 MB / 1.297 GB, free: 50.04 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02262/2.778, allocations: 13.23 MB / 1.31 GB, free: 38.59 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.284e-05/2.778, allocations: 0.5625 kB / 1.31 GB, free: 38.59 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01248/2.791, allocations: 6.846 MB / 1.316 GB, free: 32.61 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007516/2.798, allocations: 1.279 MB / 1.318 GB, free: 31.66 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2816/3.08, allocations: 31.79 MB / 1.349 GB, free: 85.79 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01312/3.093, allocations: 8.075 MB / 1.357 GB, free: 84.82 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.00692/3.1, allocations: 2.008 MB / 1.359 GB, free: 84.75 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001402/3.101, allocations: 454.5 kB / 1.359 GB, free: 84.75 MB / 490.7 MB Notification: Performance of SimCode: time 8.82e-07/3.101, allocations: 0 / 1.359 GB, free: 84.75 MB / 490.7 MB Notification: Performance of Templates: time 0.1777/3.279, allocations: 133.3 MB / 1.489 GB, free: 25.73 MB / 490.7 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1)