Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.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.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006552/0.006552, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001462/0.001462, allocations: 198.9 kB / 16.68 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.379/1.379, allocations: 205.1 MB / 222.5 MB, free: 4.551 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.001306/0.001306, allocations: 58.33 kB / 326.6 MB, free: 14.39 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1077, allocations: 46.63 MB / 373.2 MB, free: 1.426 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource): time 0.0202/0.128, allocations: 15.84 MB / 389 MB, free: 1.512 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01426/0.1423, allocations: 5.389 MB / 394.4 MB, free: 12.11 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004495/0.1469, allocations: 99.56 kB / 394.5 MB, free: 12.01 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004561/0.1515, allocations: 1.095 MB / 395.6 MB, free: 10.91 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006959/0.1585, allocations: 1.351 MB / 397 MB, free: 9.547 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003756/0.1623, allocations: 0.9664 MB / 397.9 MB, free: 8.578 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007545/0.1699, allocations: 3.982 MB / 401.9 MB, free: 4.582 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005247/0.1751, allocations: 3.552 MB / 405.5 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003466/0.1786, allocations: 1.869 MB / 407.3 MB, free: 15.09 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003835/0.1825, allocations: 2.269 MB / 409.6 MB, free: 12.81 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009549/0.1835, allocations: 0.5156 MB / 410.1 MB, free: 12.29 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001865/0.1853, allocations: 0.738 MB / 410.9 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00131/0.1867, allocations: 1.286 MB / 412.1 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002842/0.1895, allocations: 2.259 MB / 414.4 MB, free: 7.996 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0086/0.1981, allocations: 6.906 MB / 421.3 MB, free: 1.066 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.091e-05/0.1982, allocations: 4 kB / 421.3 MB, free: 1.062 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.335e-06/0.1982, allocations: 0 / 421.3 MB, free: 1.062 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001757/0.1984, allocations: 3.938 kB / 421.3 MB, free: 1.059 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 911 * Number of variables: 911 Notification: Performance of Generate backend data structure: time 0.0134/0.2118, allocations: 4.758 MB / 426.1 MB, free: 12.22 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.159e-05/0.2119, allocations: 11.89 kB / 426.1 MB, free: 12.21 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003397/0.2153, allocations: 0.697 MB / 426.8 MB, free: 11.51 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005411/0.2207, allocations: 2.39 MB / 429.2 MB, free: 9.066 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002503/0.221, allocations: 259.3 kB / 429.4 MB, free: 8.812 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00103/0.222, allocations: 352.1 kB / 429.8 MB, free: 8.469 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01194/0.234, allocations: 4.46 MB / 434.2 MB, free: 3.953 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001991/0.2342, allocations: 11.98 kB / 434.2 MB, free: 3.941 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008636/0.2351, allocations: 136 kB / 434.4 MB, free: 3.809 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002332/0.2354, allocations: 162.8 kB / 434.5 MB, free: 3.648 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009857/0.2452, allocations: 3.739 MB / 438.3 MB, free: 15.9 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03082/0.2761, allocations: 14.35 MB / 452.6 MB, free: 1.133 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2554/0.5316, allocations: 5.362 MB / 458 MB, free: 62.71 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003584/0.5353, allocations: 1.257 MB / 459.2 MB, free: 62.7 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0103/0.5456, allocations: 3.801 MB / 463 MB, free: 61.03 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.164e-05/0.5457, allocations: 49.08 kB / 463.1 MB, free: 60.98 MB / 382.1 MB Notification: Performance of pre-optimization done (n=127): time 4.559e-06/0.5457, allocations: 0.5312 kB / 463.1 MB, free: 60.98 MB / 382.1 MB Notification: Performance of matching and sorting (n=131): time 0.01174/0.5574, allocations: 5.508 MB / 468.6 MB, free: 58.35 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.196e-05/0.5575, allocations: 69.62 kB / 468.7 MB, free: 58.29 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004631/0.5622, allocations: 2.108 MB / 470.8 MB, free: 57.47 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001105/0.5623, allocations: 51.8 kB / 470.8 MB, free: 57.42 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001354/0.5637, allocations: 1.702 MB / 472.5 MB, free: 56.34 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005/0.5642, allocations: 486.2 kB / 473 MB, free: 56.02 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006154/0.5648, allocations: 339.2 kB / 473.3 MB, free: 55.85 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.093e-05/0.5649, allocations: 302.5 kB / 473.6 MB, free: 55.55 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001255/0.5661, allocations: 0.7207 MB / 474.3 MB, free: 55.29 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001499/0.5676, allocations: 1.348 MB / 475.7 MB, free: 54.21 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00246/0.5701, allocations: 2.226 MB / 477.9 MB, free: 52.7 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-05/0.5702, allocations: 8.359 kB / 477.9 MB, free: 52.7 MB / 382.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.003874/0.574, allocations: 2.529 MB / 480.5 MB, free: 51.57 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.4e-05/0.5741, allocations: 11.84 kB / 480.5 MB, free: 51.57 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.97e-05/0.5741, allocations: 23.75 kB / 480.5 MB, free: 51.57 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004135/0.5745, allocations: 136 kB / 480.6 MB, free: 51.52 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001531/0.5761, allocations: 472.9 kB / 481.1 MB, free: 51.46 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002205/0.5783, allocations: 3.351 MB / 484.4 MB, free: 48.28 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00181/0.5801, allocations: 113.5 kB / 484.5 MB, free: 48.25 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001631/0.5803, allocations: 83.03 kB / 484.6 MB, free: 48.23 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 93 * 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 (227): * Single equations (assignments): 224 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(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): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001984/0.5823, allocations: 1.044 MB / 485.7 MB, free: 47.66 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006707/0.583, allocations: 228.5 kB / 485.9 MB, free: 47.53 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003527/0.5865, allocations: 2.18 MB / 488.1 MB, free: 46.18 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.232e-05/0.5865, allocations: 13 kB / 488.1 MB, free: 46.18 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.879e-05/0.5866, allocations: 11.39 kB / 488.1 MB, free: 46.18 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.286e-05/0.5866, allocations: 6.422 kB / 488.1 MB, free: 46.18 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00914/0.5957, allocations: 5.162 MB / 493.3 MB, free: 41.87 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.686e-06/0.5958, allocations: 0 / 493.3 MB, free: 41.87 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008839/0.5967, allocations: 231.7 kB / 493.5 MB, free: 41.64 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006275/0.5973, allocations: 279.2 kB / 493.8 MB, free: 41.36 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.875e-05/0.5974, allocations: 27.98 kB / 493.8 MB, free: 41.33 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005131/0.6026, allocations: 7.802 MB / 0.4898 GB, free: 33 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.108e-06/0.6026, allocations: 4 kB / 0.4898 GB, free: 33 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004234/0.6068, allocations: 3.192 MB / 0.493 GB, free: 29.71 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001227/0.6081, allocations: 463.5 kB / 0.4934 GB, free: 29.24 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008644/0.6089, allocations: 35.92 kB / 0.4934 GB, free: 29.21 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001471/0.6104, allocations: 67.92 kB / 0.4935 GB, free: 29.14 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000182/0.6106, allocations: 92.88 kB / 0.4936 GB, free: 29.05 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.701e-05/0.6107, allocations: 39.98 kB / 0.4936 GB, free: 29.01 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002665/0.6134, allocations: 1.429 MB / 0.495 GB, free: 27.57 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.6134, allocations: 0 / 0.495 GB, free: 27.57 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002924/0.6163, allocations: 0.5585 MB / 0.4956 GB, free: 27.01 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.PI_q.x) * 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 (112): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,5,100.0%), (1,1,100.0%), (1,8,100.0%), (2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00043/0.6168, allocations: 159.4 kB / 0.4957 GB, free: 26.84 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003022/0.6198, allocations: 2.107 MB / 0.4978 GB, free: 24.7 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.102e-06/0.6198, allocations: 4.875 kB / 0.4978 GB, free: 24.69 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001657/0.6215, allocations: 1.38 MB / 0.4991 GB, free: 23.27 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002986/0.6245, allocations: 0.5723 MB / 0.4997 GB, free: 22.7 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01108/0.6356, allocations: 6.155 MB / 0.5057 GB, free: 16.49 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002606/0.6382, allocations: 2.413 MB / 0.5081 GB, free: 14.04 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00177/0.64, allocations: 498.5 kB / 0.5085 GB, free: 13.55 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006869/0.6407, allocations: 155.4 kB / 0.5087 GB, free: 13.4 MB / 382.1 MB Notification: Performance of SimCode: time 1.172e-06/0.6407, allocations: 0 / 0.5087 GB, free: 13.4 MB / 382.1 MB Notification: Performance of Templates: time 0.0514/0.6921, allocations: 27.12 MB / 0.5352 GB, free: 2.289 MB / 398.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe 2>&1)