Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_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.1_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.1_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.001293/0.001293, allocations: 99.7 kB / 15.05 MB, free: 1.105 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.001574/0.001574, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.311/1.311, allocations: 205.4 MB / 222.1 MB, free: 5.66 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.0006961/0.0006962, allocations: 16 kB / 278.9 MB, free: 12.81 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2338/0.2345, allocations: 47.58 MB / 326.5 MB, free: 1.434 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.03358/0.2681, allocations: 33.45 MB / 359.9 MB, free: 1.969 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02187/0.29, allocations: 10.69 MB / 370.6 MB, free: 7.254 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00666/0.2967, allocations: 251.1 kB / 370.9 MB, free: 7.008 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00781/0.3046, allocations: 2.234 MB / 373.1 MB, free: 4.762 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01302/0.3176, allocations: 3.825 MB / 376.9 MB, free: 0.9258 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006798/0.3245, allocations: 1.851 MB / 378.8 MB, free: 15.07 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01712/0.3416, allocations: 10.63 MB / 389.4 MB, free: 4.422 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.036/0.3776, allocations: 20.1 MB / 409.5 MB, free: 224 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008275/0.3859, allocations: 4.789 MB / 414.3 MB, free: 11.41 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009723/0.3957, allocations: 5.536 MB / 419.8 MB, free: 5.855 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002873/0.3986, allocations: 0.7852 MB / 420.6 MB, free: 5.07 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004354/0.403, allocations: 1.101 MB / 421.7 MB, free: 3.969 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003533/0.4065, allocations: 2.593 MB / 424.3 MB, free: 1.367 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004136/0.4107, allocations: 2.671 MB / 427 MB, free: 14.68 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02214/0.4329, allocations: 22.47 MB / 449.4 MB, free: 8.152 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.4329, allocations: 3.938 kB / 449.4 MB, free: 8.148 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.374e-06/0.4329, allocations: 4 kB / 449.4 MB, free: 8.145 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000665/0.4336, allocations: 0 / 449.4 MB, free: 8.145 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.3186/0.7522, allocations: 13.28 MB / 462.7 MB, free: 92.04 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.519e-05/0.7522, allocations: 8.969 kB / 462.7 MB, free: 92.04 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04679/0.799, allocations: 9.11 MB / 471.8 MB, free: 88.04 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01551/0.8146, allocations: 7.595 MB / 479.4 MB, free: 81.64 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007777/0.8154, allocations: 0.971 MB / 480.4 MB, free: 80.69 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003656/0.8191, allocations: 1.275 MB / 481.7 MB, free: 79.43 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03991/0.859, allocations: 20.31 MB / 0.4902 GB, free: 59.05 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004104/0.8594, allocations: 27.8 kB / 0.4903 GB, free: 59.03 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002602/0.8621, allocations: 0.5282 MB / 0.4908 GB, free: 58.52 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005335/0.8626, allocations: 0.7494 MB / 0.4915 GB, free: 57.77 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03467/0.8973, allocations: 19.13 MB / 0.5102 GB, free: 38.62 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1053/1.003, allocations: 65.11 MB / 0.5738 GB, free: 4.133 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2477/1.25, allocations: 57.2 MB / 0.6296 GB, free: 100.3 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02689/1.277, allocations: 11.76 MB / 0.6411 GB, free: 96.31 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.872e-05/1.277, allocations: 72.77 kB / 0.6412 GB, free: 96.24 MB / 462.1 MB Notification: Performance of pre-optimization done (n=371): time 5.61e-06/1.277, allocations: 0 / 0.6412 GB, free: 96.24 MB / 462.1 MB Notification: Performance of matching and sorting (n=413): time 0.03481/1.312, allocations: 18.03 MB / 0.6588 GB, free: 88.5 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.245e-05/1.312, allocations: 93.81 kB / 0.6589 GB, free: 88.43 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008768/1.321, allocations: 5.526 MB / 0.6643 GB, free: 86.41 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008477/1.322, allocations: 92.77 kB / 0.6644 GB, free: 86.32 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002927/1.325, allocations: 6.048 MB / 0.6703 GB, free: 81.76 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001245/1.326, allocations: 1.454 MB / 0.6717 GB, free: 80.66 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003969/1.327, allocations: 159.8 kB / 0.6718 GB, free: 80.53 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000347/1.327, allocations: 0.6213 MB / 0.6725 GB, free: 80.09 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004196/1.331, allocations: 3.144 MB / 0.6755 GB, free: 78.92 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005351/1.337, allocations: 6.837 MB / 0.6822 GB, free: 71.96 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00552/1.342, allocations: 4.677 MB / 0.6868 GB, free: 67.74 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.586e-05/1.342, allocations: 36 kB / 0.6868 GB, free: 67.71 MB / 462.1 MB Notification: Performance of matching and sorting (n=1014) (initialization): time 0.01679/1.359, allocations: 11.02 MB / 0.6976 GB, free: 56.79 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.891e-05/1.359, allocations: 60.81 kB / 0.6976 GB, free: 56.73 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000199/1.359, allocations: 124 kB / 0.6977 GB, free: 56.61 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002317/1.362, allocations: 0.988 MB / 0.6987 GB, free: 55.61 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006479/1.368, allocations: 1.868 MB / 0.7005 GB, free: 53.74 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009449/1.378, allocations: 9.72 MB / 0.71 GB, free: 43.62 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006086/1.384, allocations: 451.2 kB / 0.7105 GB, free: 43.18 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001172/1.385, allocations: 435.9 kB / 0.7109 GB, free: 42.75 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 580 * 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 (965): * Single equations (assignments): 960 * 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.007448/1.392, allocations: 4.517 MB / 0.7153 GB, free: 38.22 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001176/1.394, allocations: 0.575 MB / 0.7158 GB, free: 37.64 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0098/1.403, allocations: 6.78 MB / 0.7225 GB, free: 30.81 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.363e-05/1.404, allocations: 44 kB / 0.7225 GB, free: 30.77 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.463e-05/1.404, allocations: 11.95 kB / 0.7225 GB, free: 30.76 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.616e-05/1.404, allocations: 19.92 kB / 0.7225 GB, free: 30.74 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02603/1.43, allocations: 16.59 MB / 0.7387 GB, free: 14.11 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.482e-05/1.43, allocations: 4 kB / 0.7387 GB, free: 14.11 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003366/1.433, allocations: 0.8002 MB / 0.7395 GB, free: 13.31 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002064/1.435, allocations: 0.7884 MB / 0.7403 GB, free: 12.5 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005222/1.436, allocations: 87.97 kB / 0.7404 GB, free: 12.42 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008292/1.444, allocations: 8.857 MB / 0.749 GB, free: 3.16 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.699e-06/1.444, allocations: 11.94 kB / 0.749 GB, free: 3.148 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.016/1.46, allocations: 10.47 MB / 0.7593 GB, free: 8.457 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003441/1.464, allocations: 1.142 MB / 0.7604 GB, free: 7.289 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001257/1.465, allocations: 76 kB / 0.7604 GB, free: 7.215 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002841/1.468, allocations: 231.8 kB / 0.7607 GB, free: 6.988 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005951/1.468, allocations: 282.8 kB / 0.7609 GB, free: 6.711 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002753/1.469, allocations: 116 kB / 0.761 GB, free: 6.598 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.006253/1.475, allocations: 3.624 MB / 0.7646 GB, free: 3.004 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.5e-07/1.475, allocations: 0 / 0.7646 GB, free: 3.004 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.009008/1.484, allocations: 2.042 MB / 0.7666 GB, free: 0.9648 MB / 478.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 (394): * Single equations (assignments): 389 * 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,62.5%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000977/1.485, allocations: 264.5 kB / 0.7668 GB, free: 0.7031 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01447/1.499, allocations: 8.255 MB / 0.7749 GB, free: 8.383 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 9.728e-06/1.499, allocations: 3.938 kB / 0.7749 GB, free: 8.379 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006827/1.506, allocations: 3.664 MB / 0.7785 GB, free: 4.633 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006754/1.513, allocations: 1.294 MB / 0.7797 GB, free: 3.352 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04284/1.556, allocations: 25.46 MB / 0.8046 GB, free: 9.805 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01152/1.567, allocations: 7.907 MB / 0.8123 GB, free: 1.855 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.1938/1.761, allocations: 2.398 MB / 0.8147 GB, free: 199.3 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002417/1.764, allocations: 445.6 kB / 0.8151 GB, free: 199.3 MB / 0.5138 GB Notification: Performance of SimCode: time 1.152e-06/1.764, allocations: 0 / 0.8151 GB, free: 199.3 MB / 0.5138 GB Notification: Performance of Templates: time 0.1257/1.889, allocations: 75.77 MB / 0.8891 GB, free: 148.8 MB / 0.5138 GB make -j1 -f Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile Environment - environmentSimulation: (rm -f Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) Environment - environmentSimulation: