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.006924/0.006924, allocations: 101.1 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.001186/0.001186, allocations: 191.1 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.523/1.523, allocations: 205.1 MB / 222.5 MB, free: 4.367 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.00112/0.00112, allocations: 49.8 kB / 326.6 MB, free: 14.46 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0981/0.09923, allocations: 46.63 MB / 373.2 MB, free: 1.293 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.02905/0.1283, allocations: 30.23 MB / 403.4 MB, free: 2.926 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01972/0.1481, allocations: 8.635 MB / 412.1 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008291/0.1564, allocations: 167.5 kB / 412.2 MB, free: 10.1 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01212/0.1686, allocations: 4.891 MB / 417.1 MB, free: 5.188 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01111/0.1798, allocations: 2.964 MB / 420.1 MB, free: 2.207 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006705/0.1865, allocations: 1.613 MB / 421.7 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01828/0.2048, allocations: 8.695 MB / 430.4 MB, free: 7.863 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02438/0.2292, allocations: 12.84 MB / 443.2 MB, free: 10.93 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008607/0.2379, allocations: 4.215 MB / 447.4 MB, free: 6.699 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009299/0.2472, allocations: 4.733 MB / 452.2 MB, free: 1.949 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004656/0.2519, allocations: 1.164 MB / 453.3 MB, free: 0.7852 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2904/0.5423, allocations: 1.525 MB / 454.9 MB, free: 23.91 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004972/0.5473, allocations: 2.406 MB / 457.3 MB, free: 23.91 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01473/0.5621, allocations: 4.673 MB / 461.9 MB, free: 23.41 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02783/0.5899, allocations: 15.73 MB / 477.7 MB, free: 20.8 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.59, allocations: 0 / 477.7 MB, free: 20.8 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.59, allocations: 1.344 kB / 477.7 MB, free: 20.8 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0005362/0.5905, allocations: 0 / 477.7 MB, free: 20.8 MB / 382.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.03704/0.6276, allocations: 9.757 MB / 487.4 MB, free: 15.12 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.069e-05/0.6276, allocations: 9.688 kB / 487.4 MB, free: 15.12 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02978/0.6574, allocations: 5.273 MB / 492.7 MB, free: 12.75 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0129/0.6704, allocations: 4.689 MB / 497.4 MB, free: 9.688 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004487/0.6708, allocations: 0.5401 MB / 497.9 MB, free: 9.449 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003916/0.6748, allocations: 0.7031 MB / 498.6 MB, free: 9.211 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03268/0.7075, allocations: 11.32 MB / 0.498 GB, free: 1.449 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000356/0.7079, allocations: 15.81 kB / 0.498 GB, free: 1.434 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003095/0.711, allocations: 296.8 kB / 0.4983 GB, free: 1.152 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003962/0.7114, allocations: 450.9 kB / 0.4987 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02623/0.7376, allocations: 10.81 MB / 0.5093 GB, free: 5.906 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08955/0.8272, allocations: 37.57 MB / 0.546 GB, free: 15.9 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02665/0.8539, allocations: 28.11 MB / 0.5734 GB, free: 15.98 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005676/0.8596, allocations: 2.658 MB / 0.576 GB, free: 13.32 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01978/0.8794, allocations: 7.902 MB / 0.5838 GB, free: 5.371 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.061e-05/0.8796, allocations: 64.22 kB / 0.5838 GB, free: 5.305 MB / 478.1 MB Notification: Performance of pre-optimization done (n=217): time 4.088e-06/0.8796, allocations: 0 / 0.5838 GB, free: 5.305 MB / 478.1 MB Notification: Performance of matching and sorting (n=233): time 0.02236/0.9019, allocations: 10.36 MB / 0.5939 GB, free: 10.95 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002175/0.9041, allocations: 2.009 MB / 0.5959 GB, free: 8.777 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00721/0.9114, allocations: 3.826 MB / 0.5996 GB, free: 4.973 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006488/0.9121, allocations: 65.45 kB / 0.5997 GB, free: 4.906 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002847/0.9149, allocations: 3.55 MB / 0.6032 GB, free: 1.34 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001122/0.9161, allocations: 0.8267 MB / 0.604 GB, free: 0.5195 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001521/0.9176, allocations: 0.9564 MB / 0.6049 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001155/0.9177, allocations: 301.1 kB / 0.6052 GB, free: 15.26 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002777/0.9205, allocations: 1.891 MB / 0.607 GB, free: 13.36 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004235/0.9247, allocations: 4.396 MB / 0.6113 GB, free: 7.777 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00764/0.9324, allocations: 6.788 MB / 0.618 GB, free: 140 kB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.482e-05/0.9325, allocations: 24 kB / 0.618 GB, free: 116 kB / 0.4981 GB Notification: Performance of matching and sorting (n=627) (initialization): time 0.01249/0.945, allocations: 6.977 MB / 0.6248 GB, free: 9.648 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 7.732e-05/0.9451, allocations: 52.09 kB / 0.6248 GB, free: 9.602 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001647/0.9453, allocations: 84 kB / 0.6249 GB, free: 9.52 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002233/0.9475, allocations: 0.7361 MB / 0.6256 GB, free: 8.773 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00393/0.9515, allocations: 1.119 MB / 0.6267 GB, free: 7.742 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007753/0.9592, allocations: 5.638 MB / 0.6322 GB, free: 2.016 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005916/0.9652, allocations: 311.1 kB / 0.6325 GB, free: 1.711 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008132/0.966, allocations: 279.9 kB / 0.6328 GB, free: 1.438 MB / 0.5137 GB 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.2949/1.261, allocations: 2.519 MB / 0.6353 GB, free: 184.9 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001341/1.262, allocations: 388.1 kB / 0.6356 GB, free: 184.9 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008816/1.271, allocations: 4.266 MB / 0.6398 GB, free: 184.7 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.861e-05/1.271, allocations: 24.69 kB / 0.6398 GB, free: 184.7 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.434e-05/1.271, allocations: 6.812 kB / 0.6398 GB, free: 184.7 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.128e-05/1.271, allocations: 12.19 kB / 0.6398 GB, free: 184.7 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02527/1.297, allocations: 14.28 MB / 0.6538 GB, free: 180.3 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.69e-05/1.297, allocations: 11.72 kB / 0.6538 GB, free: 180.3 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001684/1.298, allocations: 483.9 kB / 0.6543 GB, free: 180.2 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001943/1.3, allocations: 0.6874 MB / 0.6549 GB, free: 180.1 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001987/1.3, allocations: 73.3 kB / 0.655 GB, free: 180 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007801/1.308, allocations: 7.493 MB / 0.6623 GB, free: 175.2 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001469/1.31, allocations: 1.95 MB / 0.6642 GB, free: 173.5 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01004/1.32, allocations: 6.745 MB / 0.6708 GB, free: 170.3 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002458/1.322, allocations: 0.7919 MB / 0.6716 GB, free: 170 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008759/1.323, allocations: 59.98 kB / 0.6716 GB, free: 170 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002086/1.325, allocations: 164.7 kB / 0.6718 GB, free: 169.9 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005188/1.326, allocations: 223.7 kB / 0.672 GB, free: 169.9 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001913/1.326, allocations: 86.61 kB / 0.6721 GB, free: 169.9 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.00409/1.33, allocations: 2.514 MB / 0.6745 GB, free: 168.8 MB / 0.5137 GB Notification: Performance of sort global known variables: time 5e-07/1.33, allocations: 0 / 0.6745 GB, free: 168.8 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.007369/1.337, allocations: 1.297 MB / 0.6758 GB, free: 167.5 MB / 0.5137 GB 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.0008308/1.338, allocations: 236.8 kB / 0.676 GB, free: 167.3 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.007936/1.346, allocations: 5.168 MB / 0.6811 GB, free: 162.8 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.559e-05/1.346, allocations: 4 kB / 0.6811 GB, free: 162.8 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.003775/1.35, allocations: 2.423 MB / 0.6835 GB, free: 160.6 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005838/1.356, allocations: 0.9845 MB / 0.6844 GB, free: 159.8 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02289/1.379, allocations: 12.31 MB / 0.6964 GB, free: 147.7 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004669/1.384, allocations: 4.489 MB / 0.7008 GB, free: 143.2 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.003784/1.387, allocations: 1.364 MB / 0.7022 GB, free: 141.8 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007532/1.388, allocations: 295.4 kB / 0.7024 GB, free: 141.5 MB / 0.5137 GB Notification: Performance of SimCode: time 8.32e-07/1.388, allocations: 0 / 0.7024 GB, free: 141.5 MB / 0.5137 GB Notification: Performance of Templates: time 0.08356/1.472, allocations: 53.33 MB / 0.7545 GB, free: 88.2 MB / 0.5137 GB 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)