Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_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.1_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.1_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.0008339/0.0008338, allocations: 98.11 kB / 15.36 MB, free: 0.7344 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.005416/0.005416, allocations: 169.4 kB / 16.26 MB, free: 6.652 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.523/1.523, allocations: 205.4 MB / 222.4 MB, free: 5.562 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.0004375/0.0004375, allocations: 16 kB / 279.5 MB, free: 12.48 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2085/0.2089, allocations: 47.58 MB / 327.1 MB, free: 1.406 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.02677/0.2358, allocations: 28.54 MB / 355.6 MB, free: 6.711 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01636/0.2522, allocations: 8.497 MB / 364.1 MB, free: 14.19 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005331/0.2575, allocations: 155.5 kB / 364.3 MB, free: 14.04 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004891/0.2625, allocations: 1.559 MB / 365.8 MB, free: 12.47 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008338/0.2708, allocations: 2.679 MB / 368.5 MB, free: 9.781 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003699/0.2745, allocations: 1.4 MB / 369.9 MB, free: 8.379 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01029/0.2848, allocations: 8.971 MB / 378.9 MB, free: 15.37 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01865/0.3035, allocations: 12.02 MB / 390.9 MB, free: 3.246 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004764/0.3083, allocations: 3.058 MB / 393.9 MB, free: 180 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005603/0.3139, allocations: 3.793 MB / 397.7 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001737/0.3157, allocations: 480 kB / 398.2 MB, free: 11.89 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002974/0.3187, allocations: 0.8354 MB / 399 MB, free: 11.06 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001654/0.3204, allocations: 1.584 MB / 400.6 MB, free: 9.473 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005028/0.3254, allocations: 3.792 MB / 404.4 MB, free: 5.656 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01929/0.3447, allocations: 14.78 MB / 419.2 MB, free: 6.828 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.945e-06/0.3448, allocations: 4 kB / 419.2 MB, free: 6.824 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.095e-06/0.3448, allocations: 3.938 kB / 419.2 MB, free: 6.82 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0004345/0.3452, allocations: 0 / 419.2 MB, free: 6.82 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: 1994 * Number of variables: 1994 Notification: Performance of Generate backend data structure: time 0.03428/0.3795, allocations: 8.176 MB / 427.4 MB, free: 14.55 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.034e-05/0.3796, allocations: 12.03 kB / 427.4 MB, free: 14.54 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04122/0.4208, allocations: 5.278 MB / 432.7 MB, free: 9.246 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01057/0.4314, allocations: 4.668 MB / 437.3 MB, free: 4.496 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005538/0.432, allocations: 0.5339 MB / 437.9 MB, free: 3.961 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002279/0.4343, allocations: 0.703 MB / 438.6 MB, free: 3.258 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02658/0.4609, allocations: 11.31 MB / 449.9 MB, free: 7.863 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000324/0.4613, allocations: 23.8 kB / 449.9 MB, free: 7.84 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001638/0.4629, allocations: 300 kB / 450.2 MB, free: 7.547 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005384/0.4635, allocations: 443 kB / 450.6 MB, free: 7.113 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1906/0.6541, allocations: 10.8 MB / 461.4 MB, free: 98.5 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04699/0.7011, allocations: 38.13 MB / 499.6 MB, free: 71.68 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0133/0.7145, allocations: 28.08 MB / 0.5153 GB, free: 39.79 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003517/0.718, allocations: 2.64 MB / 0.5178 GB, free: 37.14 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01037/0.7284, allocations: 7.954 MB / 0.5256 GB, free: 29.12 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.45e-05/0.7285, allocations: 60.5 kB / 0.5257 GB, free: 29.05 MB / 382.1 MB Notification: Performance of pre-optimization done (n=217): time 4.098e-06/0.7285, allocations: 0 / 0.5257 GB, free: 29.05 MB / 382.1 MB Notification: Performance of matching and sorting (n=233): time 0.01658/0.7451, allocations: 10.37 MB / 0.5358 GB, free: 18.64 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001518/0.7466, allocations: 1.92 MB / 0.5377 GB, free: 16.57 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004592/0.7513, allocations: 3.818 MB / 0.5414 GB, free: 12.77 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003339/0.7516, allocations: 69.7 kB / 0.5415 GB, free: 12.7 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001472/0.7531, allocations: 3.544 MB / 0.5449 GB, free: 9.133 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006205/0.7537, allocations: 0.8394 MB / 0.5457 GB, free: 8.301 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003994/0.7541, allocations: 380.4 kB / 0.5461 GB, free: 7.922 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.179e-05/0.7542, allocations: 301.1 kB / 0.5464 GB, free: 7.625 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002282/0.7565, allocations: 1.895 MB / 0.5482 GB, free: 5.723 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00315/0.7596, allocations: 4.393 MB / 0.5525 GB, free: 96 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008026/0.7677, allocations: 6.784 MB / 0.5592 GB, free: 8.094 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.629e-05/0.7678, allocations: 27.94 kB / 0.5592 GB, free: 8.066 MB / 398.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.01201/0.7798, allocations: 6.987 MB / 0.566 GB, free: 1.059 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.154e-05/0.7799, allocations: 43.84 kB / 0.5661 GB, free: 1.02 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001398/0.78, allocations: 88 kB / 0.5661 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001972/0.782, allocations: 0.7325 MB / 0.5669 GB, free: 196 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003663/0.7857, allocations: 1.123 MB / 0.568 GB, free: 15.07 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007392/0.7931, allocations: 5.244 MB / 0.5731 GB, free: 9.688 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003789/0.7969, allocations: 311.1 kB / 0.5734 GB, free: 9.383 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005226/0.7974, allocations: 276.3 kB / 0.5736 GB, free: 9.113 MB / 414.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.003933/0.8014, allocations: 2.518 MB / 0.5761 GB, free: 6.582 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007128/0.8021, allocations: 395.1 kB / 0.5765 GB, free: 6.191 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007479/0.8096, allocations: 4.271 MB / 0.5806 GB, free: 1.902 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.958e-05/0.8096, allocations: 24 kB / 0.5807 GB, free: 1.879 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.063e-05/0.8097, allocations: 8 kB / 0.5807 GB, free: 1.871 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.243e-05/0.8097, allocations: 11.95 kB / 0.5807 GB, free: 1.859 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02316/0.8329, allocations: 14.29 MB / 0.5946 GB, free: 3.375 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.936e-05/0.8329, allocations: 12 kB / 0.5947 GB, free: 3.363 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001896/0.8348, allocations: 479.2 kB / 0.5951 GB, free: 2.895 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002087/0.8369, allocations: 0.6934 MB / 0.5958 GB, free: 2.191 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001699/0.8371, allocations: 67.98 kB / 0.5958 GB, free: 2.125 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009076/0.8462, allocations: 6.937 MB / 0.6026 GB, free: 10.92 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001717/0.8479, allocations: 1.858 MB / 0.6044 GB, free: 8.914 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01056/0.8585, allocations: 6.737 MB / 0.611 GB, free: 1.895 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002086/0.8606, allocations: 0.7967 MB / 0.6118 GB, free: 1.074 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005314/0.8612, allocations: 67.92 kB / 0.6119 GB, free: 1.008 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001793/0.863, allocations: 172.2 kB / 0.612 GB, free: 0.8398 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000454/0.8635, allocations: 221.5 kB / 0.6122 GB, free: 0.6211 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001842/0.8636, allocations: 87.98 kB / 0.6123 GB, free: 0.5352 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.177/1.041, allocations: 2.515 MB / 0.6148 GB, free: 149.4 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.5e-07/1.041, allocations: 1.031 kB / 0.6148 GB, free: 149.4 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005734/1.046, allocations: 1.289 MB / 0.616 GB, free: 149.4 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.0005702/1.047, allocations: 228.1 kB / 0.6163 GB, free: 149.3 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007191/1.054, allocations: 5.143 MB / 0.6213 GB, free: 148.2 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.614e-06/1.054, allocations: 5.312 kB / 0.6213 GB, free: 148.2 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003136/1.057, allocations: 2.409 MB / 0.6236 GB, free: 147 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01054/1.068, allocations: 0.9417 MB / 0.6246 GB, free: 146.7 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02058/1.089, allocations: 15.48 MB / 0.6397 GB, free: 137.8 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003922/1.093, allocations: 4.496 MB / 0.6441 GB, free: 135.4 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004015/1.097, allocations: 1.361 MB / 0.6454 GB, free: 134.5 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007393/1.097, allocations: 298.5 kB / 0.6457 GB, free: 134.2 MB / 446.1 MB Notification: Performance of SimCode: time 9.12e-07/1.097, allocations: 4 kB / 0.6457 GB, free: 134.2 MB / 446.1 MB Notification: Performance of Templates: time 0.08348/1.181, allocations: 54.01 MB / 0.6984 GB, free: 82.31 MB / 446.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.sim & ./Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe 2>&1)