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.007725/0.007725, allocations: 103.6 kB / 15.73 MB, free: 6.039 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.001893/0.001893, allocations: 192.7 kB / 16.67 MB, free: 5.969 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.586/1.586, allocations: 205.1 MB / 222.5 MB, free: 4.508 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.001183/0.001183, allocations: 50.02 kB / 326.6 MB, free: 14.36 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09355/0.09474, allocations: 46.62 MB / 373.2 MB, free: 1.309 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.04392/0.1387, allocations: 41.75 MB / 415 MB, free: 7.375 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0246/0.1633, allocations: 11.08 MB / 426 MB, free: 12.26 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007226/0.1706, allocations: 271.1 kB / 426.3 MB, free: 12 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02245/0.1931, allocations: 8.877 MB / 435.2 MB, free: 3.078 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01321/0.2063, allocations: 3.885 MB / 439.1 MB, free: 15.17 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007175/0.2135, allocations: 2.463 MB / 441.5 MB, free: 12.7 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2402/0.4538, allocations: 13.89 MB / 455.4 MB, free: 6.34 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04024/0.4941, allocations: 25.79 MB / 481.2 MB, free: 2.777 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01456/0.5087, allocations: 7.231 MB / 488.4 MB, free: 0.7539 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01686/0.5257, allocations: 8.271 MB / 496.7 MB, free: 13.07 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.007008/0.5327, allocations: 2.034 MB / 498.7 MB, free: 12.49 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009422/0.5422, allocations: 2.424 MB / 0.4894 GB, free: 10.16 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.008131/0.5503, allocations: 4.237 MB / 0.4936 GB, free: 6.609 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01864/0.569, allocations: 8.04 MB / 0.5014 GB, free: 15.06 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03906/0.6081, allocations: 27 MB / 0.5278 GB, free: 6.793 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.506e-06/0.6082, allocations: 0 / 0.5278 GB, free: 6.793 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.6082, allocations: 4 kB / 0.5278 GB, free: 6.789 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0008941/0.6091, allocations: 0 / 0.5278 GB, free: 6.789 MB / 430.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.05384/0.663, allocations: 16.02 MB / 0.5434 GB, free: 6.773 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.164e-05/0.663, allocations: 8.031 kB / 0.5434 GB, free: 6.766 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05158/0.7146, allocations: 9.195 MB / 0.5524 GB, free: 13.65 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02009/0.7348, allocations: 7.727 MB / 0.56 GB, free: 6.254 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001459/0.7363, allocations: 0.9597 MB / 0.5609 GB, free: 5.305 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005892/0.7422, allocations: 1.277 MB / 0.5621 GB, free: 4.043 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05685/0.7991, allocations: 20.52 MB / 0.5822 GB, free: 15.47 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007299/0.7999, allocations: 23.38 kB / 0.5822 GB, free: 15.45 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004821/0.8047, allocations: 0.5284 MB / 0.5827 GB, free: 14.94 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008748/0.8056, allocations: 0.7493 MB / 0.5835 GB, free: 14.19 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04458/0.8502, allocations: 19.25 MB / 0.6022 GB, free: 10.95 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4787/1.329, allocations: 64.32 MB / 0.6651 GB, free: 142 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02861/1.358, allocations: 57.27 MB / 0.721 GB, free: 86.14 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005835/1.363, allocations: 4.168 MB / 0.7251 GB, free: 84 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01802/1.382, allocations: 11.63 MB / 0.7364 GB, free: 76.31 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.539e-05/1.382, allocations: 72.59 kB / 0.7365 GB, free: 76.24 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=361): time 6.272e-06/1.382, allocations: 0 / 0.7365 GB, free: 76.24 MB / 0.5138 GB Notification: Performance of matching and sorting (n=403): time 0.03337/1.415, allocations: 17.86 MB / 0.7539 GB, free: 65.88 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.6e-05/1.415, allocations: 94.58 kB / 0.754 GB, free: 65.77 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00784/1.423, allocations: 5.685 MB / 0.7596 GB, free: 60.11 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0006102/1.424, allocations: 89.7 kB / 0.7597 GB, free: 60.02 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.002504/1.426, allocations: 6.048 MB / 0.7656 GB, free: 53.94 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001138/1.427, allocations: 1.435 MB / 0.767 GB, free: 52.52 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001917/1.429, allocations: 1.536 MB / 0.7685 GB, free: 50.97 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 4.602e-05/1.429, allocations: 305.1 kB / 0.7688 GB, free: 50.67 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003856/1.433, allocations: 3.142 MB / 0.7718 GB, free: 47.53 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005596/1.439, allocations: 6.894 MB / 0.7786 GB, free: 38.84 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01025/1.449, allocations: 10.81 MB / 0.7891 GB, free: 26.19 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.58e-05/1.449, allocations: 36 kB / 0.7892 GB, free: 26.16 MB / 0.5138 GB Notification: Performance of matching and sorting (n=1007) (initialization): time 0.0177/1.467, allocations: 11.03 MB / 0.7999 GB, free: 15.06 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 7.458e-05/1.467, allocations: 56 kB / 0.8 GB, free: 15 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001471/1.467, allocations: 128 kB / 0.8001 GB, free: 14.88 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00222/1.469, allocations: 0.9917 MB / 0.8011 GB, free: 13.88 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006069/1.475, allocations: 1.856 MB / 0.8029 GB, free: 12.02 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009812/1.485, allocations: 10.25 MB / 0.8129 GB, free: 1.355 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006201/1.492, allocations: 455.1 kB / 0.8133 GB, free: 0.9102 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001664/1.493, allocations: 428 kB / 0.8137 GB, free: 0.4922 MB / 0.5138 GB 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 (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,1,100.0%), (8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.009264/1.503, allocations: 4.523 MB / 0.8181 GB, free: 11.95 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002009/1.505, allocations: 0.5633 MB / 0.8187 GB, free: 11.38 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01436/1.519, allocations: 6.705 MB / 0.8252 GB, free: 4.633 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.106e-05/1.519, allocations: 43.94 kB / 0.8253 GB, free: 4.59 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.565e-05/1.519, allocations: 8 kB / 0.8253 GB, free: 4.582 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.333e-05/1.519, allocations: 19.92 kB / 0.8253 GB, free: 4.562 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2512/1.77, allocations: 16.45 MB / 0.8414 GB, free: 173.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-05/1.77, allocations: 4.641 kB / 0.8414 GB, free: 173.7 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003294/1.774, allocations: 0.7854 MB / 0.8422 GB, free: 173.6 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002511/1.776, allocations: 0.7938 MB / 0.8429 GB, free: 173.4 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004788/1.777, allocations: 86.92 kB / 0.843 GB, free: 173.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008881/1.786, allocations: 9.339 MB / 0.8521 GB, free: 166.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.187e-06/1.786, allocations: 3.938 kB / 0.8521 GB, free: 166.8 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01359/1.799, allocations: 9.833 MB / 0.8617 GB, free: 162.8 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002872/1.802, allocations: 1.117 MB / 0.8628 GB, free: 162.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001022/1.803, allocations: 75.62 kB / 0.8629 GB, free: 162.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00257/1.806, allocations: 229.8 kB / 0.8631 GB, free: 162.3 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005153/1.806, allocations: 278 kB / 0.8634 GB, free: 162.2 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002488/1.807, allocations: 121.6 kB / 0.8635 GB, free: 162.2 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.006617/1.813, allocations: 3.743 MB / 0.8672 GB, free: 160.9 MB / 0.5294 GB Notification: Performance of sort global known variables: time 4.31e-07/1.813, allocations: 5.75 kB / 0.8672 GB, free: 160.9 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.008373/1.822, allocations: 2.04 MB / 0.8692 GB, free: 160.7 MB / 0.5294 GB 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 (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,1,100.0%), (8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001012/1.823, allocations: 261.8 kB / 0.8694 GB, free: 160.5 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01177/1.834, allocations: 8.243 MB / 0.8775 GB, free: 157.1 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 7.294e-06/1.834, allocations: 0 / 0.8775 GB, free: 157.1 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005121/1.84, allocations: 3.628 MB / 0.881 GB, free: 155.4 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006844/1.846, allocations: 1.418 MB / 0.8824 GB, free: 154.7 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03698/1.883, allocations: 21.25 MB / 0.9031 GB, free: 135.3 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00937/1.893, allocations: 7.7 MB / 0.9107 GB, free: 127.5 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.006399/1.899, allocations: 2.397 MB / 0.913 GB, free: 125.1 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001351/1.901, allocations: 447.3 kB / 0.9134 GB, free: 124.7 MB / 0.5294 GB Notification: Performance of SimCode: time 8.12e-07/1.901, allocations: 4 kB / 0.9134 GB, free: 124.7 MB / 0.5294 GB Notification: Performance of Templates: time 0.1199/2.021, allocations: 77.46 MB / 0.9891 GB, free: 47.25 MB / 0.5294 GB make -j1 -f Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile (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)