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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008431/0.0008432, allocations: 86.55 kB / 16.31 MB, free: 6.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008997/0.0008998, allocations: 179.9 kB / 17.21 MB, free: 6.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.538/1.538, allocations: 205.4 MB / 223.4 MB, free: 5.492 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004576/0.0004577, allocations: 12 kB / 280.2 MB, free: 12.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2188/0.2192, allocations: 47.58 MB / 327.8 MB, free: 1.441 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.0375/0.2568, allocations: 36.48 MB / 364.2 MB, free: 14.91 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02397/0.2808, allocations: 10.3 MB / 374.5 MB, free: 4.582 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007782/0.2886, allocations: 255.1 kB / 374.8 MB, free: 4.332 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007208/0.2959, allocations: 1.786 MB / 376.6 MB, free: 2.535 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01227/0.3082, allocations: 3.149 MB / 379.7 MB, free: 15.37 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00663/0.3148, allocations: 1.591 MB / 381.3 MB, free: 13.78 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.02025/0.3351, allocations: 14.78 MB / 396.1 MB, free: 14.94 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04126/0.3764, allocations: 20.28 MB / 416.4 MB, free: 10.56 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01081/0.3872, allocations: 5.142 MB / 421.5 MB, free: 5.398 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01042/0.3977, allocations: 6.121 MB / 427.6 MB, free: 15.25 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003165/0.4009, allocations: 0.7969 MB / 428.4 MB, free: 14.46 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00496/0.4059, allocations: 1.156 MB / 429.6 MB, free: 13.3 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003797/0.4097, allocations: 2.686 MB / 432.3 MB, free: 10.61 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004593/0.4143, allocations: 2.671 MB / 434.9 MB, free: 7.922 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02304/0.4374, allocations: 22.57 MB / 457.5 MB, free: 1.293 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.62e-06/0.4374, allocations: 4 kB / 457.5 MB, free: 1.289 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.725e-06/0.4374, allocations: 0 / 457.5 MB, free: 1.289 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0006803/0.4381, allocations: 0 / 457.5 MB, free: 1.289 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3597 * Number of variables: 3597 Notification: Performance of Generate backend data structure: time 0.3314/0.7695, allocations: 13.34 MB / 470.9 MB, free: 93.31 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.127e-05/0.7696, allocations: 7.938 kB / 470.9 MB, free: 93.31 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04632/0.8159, allocations: 9.216 MB / 480.1 MB, free: 87.17 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01424/0.8302, allocations: 7.552 MB / 487.6 MB, free: 79.61 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008434/0.8311, allocations: 0.9669 MB / 488.6 MB, free: 78.66 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004263/0.8354, allocations: 1.283 MB / 489.9 MB, free: 77.39 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04601/0.8814, allocations: 20.43 MB / 0.4983 GB, free: 56.9 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007192/0.8821, allocations: 20.89 kB / 0.4984 GB, free: 56.88 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003917/0.8861, allocations: 0.5296 MB / 0.4989 GB, free: 56.37 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006654/0.8868, allocations: 0.7455 MB / 0.4996 GB, free: 55.62 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0388/0.9256, allocations: 19.14 MB / 0.5183 GB, free: 36.47 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1138/1.039, allocations: 65.2 MB / 0.582 GB, free: 1.875 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2226/1.262, allocations: 57.22 MB / 0.6378 GB, free: 109.9 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006793/1.269, allocations: 4.183 MB / 0.6419 GB, free: 109.5 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01703/1.286, allocations: 11.68 MB / 0.6533 GB, free: 104.2 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.029e-05/1.286, allocations: 79.75 kB / 0.6534 GB, free: 104.2 MB / 446.1 MB Notification: Performance of pre-optimization done (n=361): time 5.52e-06/1.286, allocations: 0 / 0.6534 GB, free: 104.2 MB / 446.1 MB Notification: Performance of matching and sorting (n=403): time 0.03482/1.321, allocations: 18.79 MB / 0.6718 GB, free: 96.49 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.19e-05/1.321, allocations: 95.67 kB / 0.6719 GB, free: 96.42 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007009/1.328, allocations: 5.646 MB / 0.6774 GB, free: 93.64 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005234/1.329, allocations: 93.7 kB / 0.6775 GB, free: 93.54 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002495/1.331, allocations: 6.043 MB / 0.6834 GB, free: 88.18 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001084/1.332, allocations: 1.43 MB / 0.6848 GB, free: 86.9 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003646/1.333, allocations: 156 kB / 0.6849 GB, free: 86.75 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002824/1.333, allocations: 0.6215 MB / 0.6855 GB, free: 86.22 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003888/1.337, allocations: 3.112 MB / 0.6886 GB, free: 83.5 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005019/1.342, allocations: 6.862 MB / 0.6953 GB, free: 74.85 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005476/1.347, allocations: 4.652 MB / 0.6998 GB, free: 70.17 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.681e-05/1.347, allocations: 36 kB / 0.6998 GB, free: 70.14 MB / 446.1 MB Notification: Performance of matching and sorting (n=1007) (initialization): time 0.01565/1.363, allocations: 10.97 MB / 0.7105 GB, free: 59.11 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.325e-05/1.363, allocations: 64.89 kB / 0.7106 GB, free: 59.04 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001465/1.363, allocations: 128 kB / 0.7107 GB, free: 58.92 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002055/1.365, allocations: 0.9881 MB / 0.7117 GB, free: 57.91 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005923/1.371, allocations: 1.852 MB / 0.7135 GB, free: 56.06 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009012/1.38, allocations: 9.53 MB / 0.7228 GB, free: 46.13 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005771/1.386, allocations: 455.2 kB / 0.7232 GB, free: 45.69 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001054/1.387, allocations: 431.9 kB / 0.7236 GB, free: 45.27 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 583 * 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 (958): * Single equations (assignments): 953 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 {(1,100.0%) 1,(1,100.0%) 1,(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006971/1.394, allocations: 4.508 MB / 0.7281 GB, free: 40.74 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001158/1.395, allocations: 0.571 MB / 0.7286 GB, free: 40.16 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009472/1.405, allocations: 6.698 MB / 0.7351 GB, free: 33.42 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.223e-05/1.405, allocations: 44 kB / 0.7352 GB, free: 33.38 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.388e-05/1.405, allocations: 15.97 kB / 0.7352 GB, free: 33.36 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.127e-05/1.405, allocations: 19.92 kB / 0.7352 GB, free: 33.34 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02367/1.429, allocations: 16.47 MB / 0.7513 GB, free: 16.83 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.255e-05/1.429, allocations: 4 kB / 0.7513 GB, free: 16.82 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003083/1.432, allocations: 0.7723 MB / 0.7521 GB, free: 16.05 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001802/1.434, allocations: 0.7964 MB / 0.7528 GB, free: 15.24 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000291/1.434, allocations: 95.92 kB / 0.7529 GB, free: 15.14 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00763/1.441, allocations: 8.655 MB / 0.7614 GB, free: 6.086 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/1.441, allocations: 4 kB / 0.7614 GB, free: 6.082 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0136/1.455, allocations: 9.796 MB / 0.771 GB, free: 12.17 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002871/1.458, allocations: 1.142 MB / 0.7721 GB, free: 11 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001431/1.459, allocations: 76 kB / 0.7721 GB, free: 10.93 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003168/1.463, allocations: 231.7 kB / 0.7724 GB, free: 10.7 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005955/1.463, allocations: 274.8 kB / 0.7726 GB, free: 10.43 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003463/1.464, allocations: 120 kB / 0.7727 GB, free: 10.31 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.007021/1.471, allocations: 3.699 MB / 0.7764 GB, free: 6.645 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.3e-07/1.471, allocations: 0 / 0.7764 GB, free: 6.645 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.008687/1.479, allocations: 2.049 MB / 0.7784 GB, free: 4.598 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi,smpmQS.inertiaRotor.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 (384): * Single equations (assignments): 379 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 {(1,100.0%) 1,(1,100.0%) 1,(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008219/1.48, allocations: 252.9 kB / 0.7786 GB, free: 4.352 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.1847/1.665, allocations: 8.181 MB / 0.7866 GB, free: 149.7 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.039e-05/1.665, allocations: 4.812 kB / 0.7866 GB, free: 149.7 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.008802/1.674, allocations: 3.61 MB / 0.7901 GB, free: 148.7 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01205/1.686, allocations: 1.357 MB / 0.7914 GB, free: 148.3 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04998/1.736, allocations: 25.76 MB / 0.8166 GB, free: 134.4 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01128/1.747, allocations: 7.694 MB / 0.8241 GB, free: 129 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.008104/1.755, allocations: 2.402 MB / 0.8265 GB, free: 127.4 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001956/1.757, allocations: 458 kB / 0.8269 GB, free: 126.9 MB / 462.1 MB Notification: Performance of SimCode: time 1.944e-06/1.757, allocations: 1.422 kB / 0.8269 GB, free: 126.9 MB / 462.1 MB Notification: Performance of Templates: time 0.1186/1.876, allocations: 76.75 MB / 0.9018 GB, free: 51.02 MB / 462.1 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)