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.005997/0.005997, allocations: 101.2 kB / 15.73 MB, free: 6.035 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.001216/0.001216, allocations: 190.2 kB / 16.67 MB, free: 5.973 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.43/1.43, allocations: 205.1 MB / 222.5 MB, free: 4.488 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.001672/0.001672, allocations: 45.94 kB / 326.6 MB, free: 14.42 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1385/0.1402, allocations: 46.63 MB / 373.2 MB, free: 1.285 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.08554/0.2257, allocations: 41.74 MB / 415 MB, free: 7.355 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02972/0.2555, allocations: 11.09 MB / 426 MB, free: 12.23 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009057/0.2646, allocations: 267.1 kB / 426.3 MB, free: 11.97 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02147/0.2862, allocations: 8.87 MB / 435.2 MB, free: 3.059 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01266/0.2988, allocations: 3.877 MB / 439.1 MB, free: 15.16 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007029/0.3059, allocations: 2.471 MB / 441.5 MB, free: 12.68 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.3821/0.688, allocations: 13.88 MB / 455.4 MB, free: 6.387 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03777/0.7258, allocations: 25.8 MB / 481.2 MB, free: 2.82 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01229/0.7381, allocations: 7.232 MB / 488.4 MB, free: 0.8164 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01309/0.7512, allocations: 8.277 MB / 496.7 MB, free: 13.12 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005252/0.7565, allocations: 2.029 MB / 498.7 MB, free: 12.46 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007717/0.7643, allocations: 2.422 MB / 0.4894 GB, free: 10.13 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006222/0.7705, allocations: 4.233 MB / 0.4936 GB, free: 6.586 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01486/0.7854, allocations: 8.045 MB / 0.5014 GB, free: 15.03 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03564/0.8211, allocations: 27 MB / 0.5278 GB, free: 6.766 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.105e-06/0.8211, allocations: 0 / 0.5278 GB, free: 6.766 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.8212, allocations: 0 / 0.5278 GB, free: 6.766 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0008464/0.822, allocations: 4 kB / 0.5278 GB, free: 6.762 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.0513/0.8733, allocations: 16.01 MB / 0.5434 GB, free: 6.75 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.524e-05/0.8734, allocations: 12.03 kB / 0.5434 GB, free: 6.738 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05234/0.9257, allocations: 9.194 MB / 0.5524 GB, free: 13.63 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01684/0.9426, allocations: 7.718 MB / 0.56 GB, free: 6.238 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009141/0.9436, allocations: 0.9691 MB / 0.5609 GB, free: 5.281 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004616/0.9482, allocations: 1.268 MB / 0.5621 GB, free: 4.027 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05174/1, allocations: 20.53 MB / 0.5822 GB, free: 15.45 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008715/1.001, allocations: 23.66 kB / 0.5822 GB, free: 15.43 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004987/1.006, allocations: 0.5251 MB / 0.5827 GB, free: 14.92 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009838/1.007, allocations: 0.7494 MB / 0.5834 GB, free: 14.17 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04363/1.051, allocations: 19.25 MB / 0.6022 GB, free: 10.92 MB / 0.4982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3199/1.37, allocations: 64.31 MB / 0.6651 GB, free: 141.9 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02979/1.4, allocations: 57.27 MB / 0.721 GB, free: 86.02 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00634/1.407, allocations: 4.165 MB / 0.7251 GB, free: 83.89 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01774/1.424, allocations: 11.65 MB / 0.7364 GB, free: 76.19 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.68e-05/1.425, allocations: 67.97 kB / 0.7365 GB, free: 76.12 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=361): time 5.09e-06/1.425, allocations: 0 / 0.7365 GB, free: 76.12 MB / 0.5138 GB Notification: Performance of matching and sorting (n=403): time 0.03211/1.457, allocations: 17.87 MB / 0.7539 GB, free: 65.82 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.708e-05/1.457, allocations: 93.48 kB / 0.754 GB, free: 65.73 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007193/1.464, allocations: 5.689 MB / 0.7596 GB, free: 60.06 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.000635/1.465, allocations: 85.7 kB / 0.7597 GB, free: 59.97 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.002407/1.467, allocations: 6.047 MB / 0.7656 GB, free: 53.89 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.00115/1.468, allocations: 1.432 MB / 0.767 GB, free: 52.48 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001936/1.47, allocations: 1.536 MB / 0.7685 GB, free: 50.93 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 4.662e-05/1.47, allocations: 309.1 kB / 0.7688 GB, free: 50.63 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003893/1.474, allocations: 3.146 MB / 0.7718 GB, free: 47.48 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005423/1.48, allocations: 6.888 MB / 0.7786 GB, free: 38.8 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01042/1.49, allocations: 10.81 MB / 0.7891 GB, free: 26.15 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.922e-05/1.49, allocations: 39.94 kB / 0.7892 GB, free: 26.11 MB / 0.5138 GB Notification: Performance of matching and sorting (n=1007) (initialization): time 0.01797/1.508, allocations: 11.03 MB / 0.7999 GB, free: 15.02 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 7.506e-05/1.508, allocations: 63.94 kB / 0.8 GB, free: 14.95 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001687/1.508, allocations: 128 kB / 0.8001 GB, free: 14.83 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002215/1.511, allocations: 0.9761 MB / 0.8011 GB, free: 13.84 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006003/1.517, allocations: 1.856 MB / 0.8029 GB, free: 11.98 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01003/1.527, allocations: 10.25 MB / 0.8129 GB, free: 1.316 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006354/1.533, allocations: 451.7 kB / 0.8133 GB, free: 0.875 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001224/1.534, allocations: 431.9 kB / 0.8137 GB, free: 464 kB / 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.00902/1.543, allocations: 4.521 MB / 0.8181 GB, free: 11.92 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001737/1.545, allocations: 0.575 MB / 0.8187 GB, free: 11.34 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01418/1.559, allocations: 6.694 MB / 0.8252 GB, free: 4.602 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.629e-05/1.559, allocations: 43.98 kB / 0.8253 GB, free: 4.559 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.84e-05/1.559, allocations: 11.98 kB / 0.8253 GB, free: 4.547 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.99e-05/1.559, allocations: 19.92 kB / 0.8253 GB, free: 4.527 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.248/1.808, allocations: 16.46 MB / 0.8414 GB, free: 173.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.847e-05/1.808, allocations: 4.25 kB / 0.8414 GB, free: 173.6 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003422/1.811, allocations: 0.78 MB / 0.8422 GB, free: 173.5 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002244/1.813, allocations: 0.7937 MB / 0.8429 GB, free: 173.3 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004519/1.814, allocations: 92.19 kB / 0.843 GB, free: 173.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008973/1.823, allocations: 9.338 MB / 0.8521 GB, free: 166.7 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.899e-06/1.823, allocations: 7.906 kB / 0.8521 GB, free: 166.7 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01434/1.837, allocations: 9.83 MB / 0.8617 GB, free: 162.6 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002558/1.84, allocations: 1.118 MB / 0.8628 GB, free: 162.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008848/1.841, allocations: 71.5 kB / 0.8629 GB, free: 162.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002489/1.843, allocations: 229 kB / 0.8631 GB, free: 162.2 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005707/1.844, allocations: 281.5 kB / 0.8634 GB, free: 162.1 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002335/1.844, allocations: 121.3 kB / 0.8635 GB, free: 162.1 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005753/1.85, allocations: 3.745 MB / 0.8672 GB, free: 160.8 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.6e-07/1.85, allocations: 0 / 0.8672 GB, free: 160.8 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007902/1.858, allocations: 2.041 MB / 0.8692 GB, free: 160.6 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.0007266/1.858, allocations: 264.4 kB / 0.8694 GB, free: 160.4 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01198/1.87, allocations: 8.246 MB / 0.8775 GB, free: 157 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 6.382e-06/1.87, allocations: 0 / 0.8775 GB, free: 157 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004994/1.875, allocations: 3.616 MB / 0.881 GB, free: 155.3 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00704/1.882, allocations: 1.419 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.03614/1.919, allocations: 21.25 MB / 0.9031 GB, free: 135.2 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01249/1.931, allocations: 7.692 MB / 0.9106 GB, free: 127.5 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.009292/1.941, allocations: 2.404 MB / 0.913 GB, free: 125.1 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002328/1.943, allocations: 451.3 kB / 0.9134 GB, free: 124.7 MB / 0.5294 GB Notification: Performance of SimCode: time 9.72e-07/1.943, allocations: 0 / 0.9134 GB, free: 124.7 MB / 0.5294 GB Notification: Performance of Templates: time 0.1269/2.07, allocations: 77.47 MB / 0.9891 GB, free: 47.21 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)