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.001277/0.001277, allocations: 105.9 kB / 16.62 MB, free: 6.812 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.001063/0.001063, allocations: 193.8 kB / 17.55 MB, free: 5.953 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.517/1.517, allocations: 205.1 MB / 223.4 MB, free: 12.36 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.001407/0.001407, allocations: 51.92 kB / 279.5 MB, free: 3.461 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.109, allocations: 46.63 MB / 326.2 MB, free: 4.754 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.03289/0.1419, allocations: 29.75 MB / 355.9 MB, free: 6.871 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02368/0.1657, allocations: 8.519 MB / 364.4 MB, free: 14.33 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008222/0.174, allocations: 159.5 kB / 364.6 MB, free: 14.17 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01277/0.1868, allocations: 4.572 MB / 369.2 MB, free: 9.582 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0108/0.1977, allocations: 2.679 MB / 371.8 MB, free: 6.891 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005149/0.2028, allocations: 1.497 MB / 373.3 MB, free: 5.391 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.2145/0.4174, allocations: 8.743 MB / 382.1 MB, free: 12.7 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02296/0.4404, allocations: 14.35 MB / 396.4 MB, free: 11.04 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007654/0.4481, allocations: 4.192 MB / 400.6 MB, free: 9.398 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008154/0.4563, allocations: 4.773 MB / 405.4 MB, free: 7.211 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003984/0.4604, allocations: 1.165 MB / 406.6 MB, free: 7.211 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007064/0.4674, allocations: 1.528 MB / 408.1 MB, free: 7.117 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004635/0.4721, allocations: 2.413 MB / 410.5 MB, free: 5.562 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01126/0.4834, allocations: 4.666 MB / 415.2 MB, free: 1.477 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0244/0.5078, allocations: 15.9 MB / 431.1 MB, free: 4.074 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.444e-06/0.5079, allocations: 0 / 431.1 MB, free: 4.074 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.5079, allocations: 4 kB / 431.1 MB, free: 4.07 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0004643/0.5084, allocations: 4 kB / 431.1 MB, free: 4.066 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.03218/0.5406, allocations: 9.776 MB / 440.8 MB, free: 10.27 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.403e-05/0.5407, allocations: 12.03 kB / 440.9 MB, free: 10.26 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02966/0.5703, allocations: 5.261 MB / 446.1 MB, free: 5.055 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0129/0.5833, allocations: 4.643 MB / 450.8 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006988/0.584, allocations: 0.5329 MB / 451.3 MB, free: 36 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004032/0.5881, allocations: 0.7124 MB / 452 MB, free: 15.33 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0338/0.6219, allocations: 11.32 MB / 463.3 MB, free: 3.973 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004942/0.6224, allocations: 19.8 kB / 463.3 MB, free: 3.953 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003267/0.6257, allocations: 295 kB / 463.6 MB, free: 3.672 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006034/0.6264, allocations: 443 kB / 464.1 MB, free: 3.238 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02988/0.6563, allocations: 10.81 MB / 474.9 MB, free: 8.438 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07384/0.7302, allocations: 37.98 MB / 0.5008 GB, free: 1.98 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02156/0.7518, allocations: 28.13 MB / 0.5283 GB, free: 2.035 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.2194/0.9713, allocations: 2.646 MB / 0.5309 GB, free: 152.4 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01677/0.9881, allocations: 7.923 MB / 0.5386 GB, free: 150 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.17e-05/0.9882, allocations: 64.31 kB / 0.5387 GB, free: 150 MB / 446.1 MB Notification: Performance of pre-optimization done (n=217): time 4.849e-06/0.9882, allocations: 0.7188 kB / 0.5387 GB, free: 150 MB / 446.1 MB Notification: Performance of matching and sorting (n=233): time 0.01931/1.007, allocations: 10.37 MB / 0.5488 GB, free: 145.5 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001611/1.009, allocations: 1.996 MB / 0.5508 GB, free: 143.7 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005429/1.015, allocations: 3.826 MB / 0.5545 GB, free: 142.3 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000312/1.015, allocations: 61.64 kB / 0.5545 GB, free: 142.2 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00179/1.017, allocations: 3.549 MB / 0.558 GB, free: 139.5 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006797/1.017, allocations: 0.8267 MB / 0.5588 GB, free: 138.9 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001138/1.019, allocations: 0.9606 MB / 0.5598 GB, free: 138.4 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.75e-05/1.019, allocations: 304.4 kB / 0.56 GB, free: 138.1 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002283/1.021, allocations: 1.886 MB / 0.5619 GB, free: 137.4 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003358/1.024, allocations: 4.392 MB / 0.5662 GB, free: 133.3 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006125/1.03, allocations: 6.789 MB / 0.5728 GB, free: 127.8 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.179e-05/1.03, allocations: 23.19 kB / 0.5728 GB, free: 127.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.01068/1.041, allocations: 6.989 MB / 0.5797 GB, free: 124.4 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.318e-05/1.041, allocations: 40 kB / 0.5797 GB, free: 124.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001157/1.041, allocations: 88 kB / 0.5798 GB, free: 124.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001763/1.043, allocations: 0.7421 MB / 0.5805 GB, free: 123.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003283/1.046, allocations: 1.12 MB / 0.5816 GB, free: 122.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00576/1.052, allocations: 5.643 MB / 0.5871 GB, free: 117.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004135/1.056, allocations: 309.7 kB / 0.5874 GB, free: 117.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005082/1.057, allocations: 275.7 kB / 0.5877 GB, free: 117.1 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.004123/1.061, allocations: 2.529 MB / 0.5901 GB, free: 114.8 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009041/1.062, allocations: 387.2 kB / 0.5905 GB, free: 114.4 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006067/1.068, allocations: 4.276 MB / 0.5947 GB, free: 110.1 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.436e-05/1.068, allocations: 24 kB / 0.5947 GB, free: 110.1 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.889e-06/1.068, allocations: 7.75 kB / 0.5947 GB, free: 110.1 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.911e-05/1.068, allocations: 15.95 kB / 0.5947 GB, free: 110.1 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01941/1.087, allocations: 14.29 MB / 0.6087 GB, free: 95.61 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-05/1.088, allocations: 12 kB / 0.6087 GB, free: 95.59 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001669/1.089, allocations: 475.2 kB / 0.6091 GB, free: 95.13 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001738/1.091, allocations: 0.7015 MB / 0.6098 GB, free: 94.42 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000171/1.091, allocations: 67.97 kB / 0.6099 GB, free: 94.35 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007071/1.098, allocations: 7.489 MB / 0.6172 GB, free: 86.59 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001262/1.1, allocations: 1.955 MB / 0.6191 GB, free: 84.48 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008402/1.108, allocations: 6.733 MB / 0.6257 GB, free: 77.46 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002034/1.11, allocations: 0.7928 MB / 0.6265 GB, free: 76.65 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005122/1.111, allocations: 68.98 kB / 0.6265 GB, free: 76.58 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001652/1.112, allocations: 159.8 kB / 0.6267 GB, free: 76.43 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004047/1.113, allocations: 217.5 kB / 0.6269 GB, free: 76.21 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001456/1.113, allocations: 95.92 kB / 0.627 GB, free: 76.12 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003045/1.116, allocations: 2.509 MB / 0.6294 GB, free: 73.63 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.21e-07/1.116, allocations: 3.938 kB / 0.6294 GB, free: 73.62 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004377/1.12, allocations: 1.294 MB / 0.6307 GB, free: 72.33 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.0004262/1.121, allocations: 216.5 kB / 0.6309 GB, free: 72.12 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0117/1.132, allocations: 7.024 MB / 0.6378 GB, free: 65.07 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.738e-05/1.132, allocations: 4 kB / 0.6378 GB, free: 65.07 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003255/1.136, allocations: 2.408 MB / 0.6401 GB, free: 62.63 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005329/1.141, allocations: 0.9904 MB / 0.6411 GB, free: 61.65 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02256/1.164, allocations: 15.44 MB / 0.6562 GB, free: 46.03 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003526/1.167, allocations: 4.504 MB / 0.6606 GB, free: 41.48 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004348/1.172, allocations: 1.36 MB / 0.6619 GB, free: 40.12 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007976/1.172, allocations: 291.4 kB / 0.6622 GB, free: 39.84 MB / 446.1 MB Notification: Performance of SimCode: time 1.904e-06/1.172, allocations: 4 kB / 0.6622 GB, free: 39.83 MB / 446.1 MB Notification: Performance of Templates: time 0.3627/1.535, allocations: 56.82 MB / 0.7177 GB, free: 129.3 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)