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_OpenCircuit.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_OpenCircuit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001278/0.001277, allocations: 104 kB / 16.92 MB, free: 5.789 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.001427/0.001427, allocations: 191.3 kB / 17.85 MB, free: 5.191 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.512/1.512, allocations: 205.1 MB / 223.7 MB, free: 12.35 MB / 190.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.00127/0.00127, allocations: 47.92 kB / 280 MB, free: 3.16 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09075/0.09203, allocations: 46.64 MB / 326.7 MB, free: 4.453 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.03203/0.1241, allocations: 30.24 MB / 356.9 MB, free: 6.07 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02123/0.1454, allocations: 8.655 MB / 365.5 MB, free: 13.39 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007335/0.1528, allocations: 163.5 kB / 365.7 MB, free: 13.23 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01235/0.1652, allocations: 4.883 MB / 370.6 MB, free: 8.324 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01062/0.1758, allocations: 2.949 MB / 373.5 MB, free: 5.359 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006927/0.1827, allocations: 1.61 MB / 375.1 MB, free: 3.746 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.2506/0.4333, allocations: 8.644 MB / 383.8 MB, free: 12.89 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02614/0.4596, allocations: 12.87 MB / 396.7 MB, free: 11.19 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009174/0.4688, allocations: 4.211 MB / 400.9 MB, free: 9.641 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01151/0.4803, allocations: 4.741 MB / 405.6 MB, free: 7.449 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004462/0.4848, allocations: 1.167 MB / 406.8 MB, free: 7.449 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007125/0.492, allocations: 1.533 MB / 408.3 MB, free: 7.355 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004765/0.4968, allocations: 2.421 MB / 410.7 MB, free: 5.461 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01318/0.51, allocations: 4.669 MB / 415.4 MB, free: 1.086 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02866/0.5387, allocations: 15.66 MB / 431.1 MB, free: 3.895 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.185e-06/0.5387, allocations: 0 / 431.1 MB, free: 3.895 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.5388, allocations: 0 / 431.1 MB, free: 3.895 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0005568/0.5393, allocations: 4 kB / 431.1 MB, free: 3.891 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1994 * Number of variables: 1994 Notification: Performance of Generate backend data structure: time 0.03597/0.5753, allocations: 9.779 MB / 440.9 MB, free: 10.09 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.784e-05/0.5754, allocations: 16.03 kB / 440.9 MB, free: 10.08 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0309/0.6063, allocations: 5.253 MB / 446.1 MB, free: 4.875 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01284/0.6192, allocations: 4.669 MB / 450.8 MB, free: 368 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006249/0.6198, allocations: 0.5375 MB / 451.3 MB, free: 15.83 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003727/0.6236, allocations: 0.7079 MB / 452 MB, free: 15.13 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03775/0.6613, allocations: 11.32 MB / 463.4 MB, free: 3.766 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006043/0.662, allocations: 7.906 kB / 463.4 MB, free: 3.758 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003577/0.6656, allocations: 305.2 kB / 463.7 MB, free: 3.469 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006099/0.6662, allocations: 447 kB / 464.1 MB, free: 3.031 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02945/0.6957, allocations: 10.8 MB / 474.9 MB, free: 8.238 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08308/0.7788, allocations: 37.98 MB / 0.5009 GB, free: 1.773 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02321/0.8021, allocations: 28.12 MB / 0.5283 GB, free: 1.84 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.2371/1.039, allocations: 2.644 MB / 0.5309 GB, free: 152.9 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01773/1.057, allocations: 7.937 MB / 0.5387 GB, free: 150.6 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.239e-05/1.057, allocations: 58.45 kB / 0.5387 GB, free: 150.6 MB / 446.1 MB Notification: Performance of pre-optimization done (n=217): time 4.739e-06/1.057, allocations: 0 / 0.5387 GB, free: 150.6 MB / 446.1 MB Notification: Performance of matching and sorting (n=233): time 0.02016/1.077, allocations: 10.36 MB / 0.5488 GB, free: 146.1 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001649/1.079, allocations: 2.01 MB / 0.5508 GB, free: 144.3 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005322/1.084, allocations: 3.833 MB / 0.5545 GB, free: 142.9 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003926/1.085, allocations: 61.61 kB / 0.5546 GB, free: 142.8 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001945/1.087, allocations: 3.544 MB / 0.5581 GB, free: 140.1 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007862/1.087, allocations: 0.8302 MB / 0.5589 GB, free: 139.5 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001212/1.089, allocations: 0.9516 MB / 0.5598 GB, free: 139 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.742e-05/1.089, allocations: 301.1 kB / 0.5601 GB, free: 138.7 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002448/1.091, allocations: 1.894 MB / 0.5619 GB, free: 138 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003528/1.095, allocations: 4.391 MB / 0.5662 GB, free: 133.9 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006384/1.101, allocations: 6.79 MB / 0.5728 GB, free: 128.4 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.902e-05/1.101, allocations: 27.47 kB / 0.5729 GB, free: 128.4 MB / 446.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.01091/1.112, allocations: 6.978 MB / 0.5797 GB, free: 125.5 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.451e-05/1.112, allocations: 42.28 kB / 0.5797 GB, free: 125.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001283/1.112, allocations: 89.12 kB / 0.5798 GB, free: 125.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001892/1.114, allocations: 0.7455 MB / 0.5805 GB, free: 125.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003315/1.118, allocations: 1.117 MB / 0.5816 GB, free: 124.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006062/1.124, allocations: 5.639 MB / 0.5871 GB, free: 119.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005817/1.13, allocations: 313.6 kB / 0.5874 GB, free: 118.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001212/1.131, allocations: 271.9 kB / 0.5877 GB, free: 118.7 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 393 * 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 (590): * Single equations (assignments): 587 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * 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): 1 system {(4,32,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005238/1.136, allocations: 2.521 MB / 0.5902 GB, free: 116.3 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001114/1.137, allocations: 387.3 kB / 0.5905 GB, free: 116 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006385/1.144, allocations: 4.277 MB / 0.5947 GB, free: 111.7 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.544e-05/1.144, allocations: 24 kB / 0.5947 GB, free: 111.6 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.078e-05/1.144, allocations: 11.98 kB / 0.5947 GB, free: 111.6 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.236e-05/1.144, allocations: 11.95 kB / 0.5947 GB, free: 111.6 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02071/1.164, allocations: 14.28 MB / 0.6087 GB, free: 97.15 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.638e-05/1.164, allocations: 16.06 kB / 0.6087 GB, free: 97.14 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001687/1.166, allocations: 483 kB / 0.6092 GB, free: 96.67 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001845/1.168, allocations: 0.6892 MB / 0.6098 GB, free: 95.97 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001707/1.168, allocations: 71.97 kB / 0.6099 GB, free: 95.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007422/1.176, allocations: 7.502 MB / 0.6172 GB, free: 88.12 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001328/1.177, allocations: 1.949 MB / 0.6191 GB, free: 86.02 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008795/1.186, allocations: 6.747 MB / 0.6257 GB, free: 79 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002293/1.188, allocations: 0.7929 MB / 0.6265 GB, free: 78.18 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006527/1.189, allocations: 63.98 kB / 0.6266 GB, free: 78.12 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001802/1.191, allocations: 167.9 kB / 0.6267 GB, free: 77.96 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004044/1.191, allocations: 217.4 kB / 0.6269 GB, free: 77.74 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001447/1.191, allocations: 95.91 kB / 0.627 GB, free: 77.65 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003578/1.195, allocations: 2.509 MB / 0.6295 GB, free: 75.16 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.31e-07/1.195, allocations: 0 / 0.6295 GB, free: 75.16 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005729/1.2, allocations: 1.289 MB / 0.6307 GB, free: 73.87 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 1 ($STATESET1.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 (241): * Single equations (assignments): 238 * 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): 1 system {(4,32,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00055/1.201, allocations: 224.2 kB / 0.6309 GB, free: 73.65 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01224/1.213, allocations: 7.017 MB / 0.6378 GB, free: 66.61 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.846e-05/1.213, allocations: 4.125 kB / 0.6378 GB, free: 66.61 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003385/1.217, allocations: 2.411 MB / 0.6402 GB, free: 64.16 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004968/1.222, allocations: 0.9867 MB / 0.6411 GB, free: 63.19 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02749/1.249, allocations: 12.48 MB / 0.6533 GB, free: 50.52 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004938/1.254, allocations: 4.493 MB / 0.6577 GB, free: 45.98 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004209/1.258, allocations: 1.356 MB / 0.659 GB, free: 44.62 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007884/1.259, allocations: 299.4 kB / 0.6593 GB, free: 44.33 MB / 446.1 MB Notification: Performance of SimCode: time 9.21e-07/1.259, allocations: 0 / 0.6593 GB, free: 44.33 MB / 446.1 MB Notification: Performance of Templates: time 0.3068/1.566, allocations: 56.83 MB / 0.7148 GB, free: 130.5 MB / 446.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.sim & ./Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe 2>&1)