Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.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.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.00162/0.00162, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001973/0.001973, allocations: 198.5 kB / 16.14 MB, free: 6.707 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.335/1.335, allocations: 205.1 MB / 222 MB, free: 5.004 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.001097/0.001097, allocations: 51.92 kB / 278.1 MB, free: 12.98 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1917/0.1928, allocations: 46.62 MB / 324.7 MB, free: 1.84 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.02748/0.2203, allocations: 29.75 MB / 354.4 MB, free: 6.328 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01708/0.2374, allocations: 8.563 MB / 363 MB, free: 13.74 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005332/0.2428, allocations: 159.5 kB / 363.2 MB, free: 13.59 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01131/0.2542, allocations: 4.568 MB / 367.7 MB, free: 9 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008816/0.263, allocations: 2.706 MB / 370.4 MB, free: 6.281 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004389/0.2674, allocations: 1.497 MB / 371.9 MB, free: 4.781 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0105/0.2779, allocations: 8.971 MB / 380.9 MB, free: 11.77 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01551/0.2935, allocations: 10.29 MB / 391.2 MB, free: 1.383 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006/0.2995, allocations: 3.589 MB / 394.8 MB, free: 13.78 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006246/0.3058, allocations: 4.487 MB / 399.3 MB, free: 9.277 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002414/0.3082, allocations: 0.7305 MB / 400 MB, free: 8.547 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004085/0.3123, allocations: 1.086 MB / 401.1 MB, free: 7.461 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003486/0.3158, allocations: 1.962 MB / 403.1 MB, free: 5.492 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007139/0.323, allocations: 4.215 MB / 407.3 MB, free: 1.258 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0158/0.3388, allocations: 15.32 MB / 422.6 MB, free: 1.891 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.572e-06/0.3388, allocations: 3.938 kB / 422.6 MB, free: 1.887 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.704e-06/0.3388, allocations: 0 / 422.6 MB, free: 1.887 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003682/0.3392, allocations: 3.938 kB / 422.6 MB, free: 1.883 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.02477/0.364, allocations: 9.783 MB / 432.4 MB, free: 8.004 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.117e-05/0.3641, allocations: 8.031 kB / 432.4 MB, free: 7.996 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02664/0.3907, allocations: 5.258 MB / 437.7 MB, free: 2.723 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008538/0.3993, allocations: 4.637 MB / 442.3 MB, free: 14 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003521/0.3996, allocations: 0.5339 MB / 442.8 MB, free: 13.47 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001272/0.4009, allocations: 0.7146 MB / 443.5 MB, free: 12.75 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01893/0.4198, allocations: 11.31 MB / 454.8 MB, free: 1.363 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001563/0.42, allocations: 19.8 kB / 454.9 MB, free: 1.344 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007405/0.4208, allocations: 300 kB / 455.2 MB, free: 1.051 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003807/0.4212, allocations: 443 kB / 455.6 MB, free: 0.6172 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1663/0.5875, allocations: 10.81 MB / 466.4 MB, free: 98.95 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03983/0.6274, allocations: 37.99 MB / 0.4926 GB, free: 65.91 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01249/0.6399, allocations: 28.1 MB / 0.52 GB, free: 33.99 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003367/0.6433, allocations: 2.651 MB / 0.5226 GB, free: 31.34 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01059/0.6539, allocations: 7.925 MB / 0.5303 GB, free: 23.34 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.972e-05/0.6539, allocations: 72.44 kB / 0.5304 GB, free: 23.26 MB / 382.1 MB Notification: Performance of pre-optimization done (n=217): time 3.427e-06/0.654, allocations: 3.75 kB / 0.5304 GB, free: 23.26 MB / 382.1 MB Notification: Performance of matching and sorting (n=233): time 0.01628/0.6702, allocations: 10.36 MB / 0.5405 GB, free: 12.87 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001416/0.6717, allocations: 1.913 MB / 0.5424 GB, free: 10.8 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004076/0.6758, allocations: 3.818 MB / 0.5461 GB, free: 7.004 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001318/0.6759, allocations: 65.7 kB / 0.5462 GB, free: 6.934 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001453/0.6774, allocations: 3.551 MB / 0.5497 GB, free: 3.367 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004664/0.6778, allocations: 0.8351 MB / 0.5505 GB, free: 2.539 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001063/0.6789, allocations: 0.9529 MB / 0.5514 GB, free: 1.574 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.924e-05/0.679, allocations: 305.2 kB / 0.5517 GB, free: 1.273 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002266/0.6812, allocations: 1.891 MB / 0.5535 GB, free: 15.38 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004267/0.6855, allocations: 4.386 MB / 0.5578 GB, free: 9.75 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007412/0.6929, allocations: 6.791 MB / 0.5645 GB, free: 1.75 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.137e-05/0.693, allocations: 31.94 kB / 0.5645 GB, free: 1.719 MB / 398.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.01033/0.7033, allocations: 6.98 MB / 0.5713 GB, free: 10.72 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.654e-05/0.7034, allocations: 40.97 kB / 0.5713 GB, free: 10.68 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001115/0.7035, allocations: 88.08 kB / 0.5714 GB, free: 10.59 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001906/0.7054, allocations: 0.7322 MB / 0.5721 GB, free: 9.852 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003392/0.7088, allocations: 1.131 MB / 0.5732 GB, free: 8.719 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006487/0.7153, allocations: 5.233 MB / 0.5784 GB, free: 3.352 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003217/0.7186, allocations: 315.1 kB / 0.5787 GB, free: 3.043 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003324/0.7189, allocations: 272 kB / 0.5789 GB, free: 2.777 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.003657/0.7226, allocations: 2.522 MB / 0.5814 GB, free: 248 kB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006661/0.7232, allocations: 391.3 kB / 0.5817 GB, free: 15.85 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006766/0.73, allocations: 4.271 MB / 0.5859 GB, free: 11.56 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.658e-05/0.73, allocations: 24 kB / 0.5859 GB, free: 11.54 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.009e-05/0.7301, allocations: 8.062 kB / 0.5859 GB, free: 11.53 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.15e-05/0.7301, allocations: 15.95 kB / 0.586 GB, free: 11.52 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01974/0.7498, allocations: 14.28 MB / 0.5999 GB, free: 13.04 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-05/0.7499, allocations: 17.11 kB / 0.5999 GB, free: 13.03 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001777/0.7517, allocations: 475.2 kB / 0.6004 GB, free: 12.56 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001946/0.7536, allocations: 0.6975 MB / 0.6011 GB, free: 11.86 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001565/0.7538, allocations: 67.98 kB / 0.6011 GB, free: 11.79 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008232/0.762, allocations: 6.948 MB / 0.6079 GB, free: 4.574 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00163/0.7637, allocations: 1.862 MB / 0.6097 GB, free: 2.566 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.173/0.9367, allocations: 6.735 MB / 0.6163 GB, free: 148.5 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001861/0.9386, allocations: 0.8023 MB / 0.6171 GB, free: 148.4 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005415/0.9391, allocations: 58.67 kB / 0.6171 GB, free: 148.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001661/0.9408, allocations: 161.2 kB / 0.6173 GB, free: 148.3 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004128/0.9412, allocations: 223.8 kB / 0.6175 GB, free: 148.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001794/0.9414, allocations: 93.69 kB / 0.6176 GB, free: 148.3 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003464/0.9449, allocations: 2.512 MB / 0.6201 GB, free: 147.4 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.9449, allocations: 3.938 kB / 0.6201 GB, free: 147.4 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00424/0.9491, allocations: 1.287 MB / 0.6213 GB, free: 147.2 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.0004519/0.9496, allocations: 231.8 kB / 0.6215 GB, free: 147.1 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006369/0.956, allocations: 5.147 MB / 0.6266 GB, free: 145 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.075e-06/0.956, allocations: 0 / 0.6266 GB, free: 145 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003091/0.9591, allocations: 2.405 MB / 0.6289 GB, free: 143.8 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003868/0.963, allocations: 0.9354 MB / 0.6298 GB, free: 143.6 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01592/0.9789, allocations: 15.44 MB / 0.6449 GB, free: 134.5 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003015/0.982, allocations: 4.492 MB / 0.6493 GB, free: 131 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003361/0.9853, allocations: 1.359 MB / 0.6506 GB, free: 130 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006557/0.986, allocations: 296.3 kB / 0.6509 GB, free: 129.8 MB / 446.1 MB Notification: Performance of SimCode: time 8.61e-07/0.986, allocations: 0.7656 kB / 0.6509 GB, free: 129.8 MB / 446.1 MB Notification: Performance of Templates: time 0.06725/1.053, allocations: 54.73 MB / 0.7043 GB, free: 76.13 MB / 446.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.makefile (rm -f Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.sim & ./Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe 2>&1)