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.SMR_CurrentSource.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.SMR_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001116/0.001116, allocations: 105.9 kB / 16.5 MB, free: 6.688 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.001178/0.001178, allocations: 193.9 kB / 17.42 MB, free: 6.09 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.297/1.297, allocations: 205.1 MB / 223.3 MB, free: 12.4 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.001238/0.001238, allocations: 51.92 kB / 279.4 MB, free: 3.547 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08857/0.08982, allocations: 46.63 MB / 326 MB, free: 4.852 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.03738/0.1273, allocations: 39.29 MB / 365.3 MB, free: 13.39 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0237/0.151, allocations: 10.43 MB / 375.7 MB, free: 2.922 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0104/0.1615, allocations: 243.1 kB / 375.9 MB, free: 2.684 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1862/0.3477, allocations: 8.004 MB / 384 MB, free: 11.73 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01416/0.3619, allocations: 3.317 MB / 387.3 MB, free: 11.62 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00896/0.3709, allocations: 2.211 MB / 389.5 MB, free: 11.55 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01772/0.3886, allocations: 13.65 MB / 403.1 MB, free: 10.37 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03503/0.4237, allocations: 20.63 MB / 423.8 MB, free: 11.82 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01186/0.4356, allocations: 6.046 MB / 429.8 MB, free: 5.883 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01223/0.4478, allocations: 7.684 MB / 437.5 MB, free: 14.43 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005104/0.453, allocations: 1.312 MB / 438.8 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008883/0.4619, allocations: 1.71 MB / 440.5 MB, free: 11.43 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006621/0.4685, allocations: 3.44 MB / 444 MB, free: 8.047 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01435/0.4829, allocations: 7.106 MB / 451.1 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02755/0.5105, allocations: 25.77 MB / 476.8 MB, free: 7.668 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.082e-06/0.5105, allocations: 4 kB / 476.8 MB, free: 7.664 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.5106, allocations: 0 / 476.8 MB, free: 7.664 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0007333/0.5113, allocations: 0 / 476.8 MB, free: 7.664 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: 3512 * Number of variables: 3512 Notification: Performance of Generate backend data structure: time 0.04315/0.5545, allocations: 15.63 MB / 492.5 MB, free: 8.031 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.619e-05/0.5545, allocations: 15.97 kB / 492.5 MB, free: 8.016 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05003/0.6046, allocations: 9.09 MB / 0.4898 GB, free: 15 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0167/0.6213, allocations: 7.457 MB / 0.4971 GB, free: 7.531 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001021/0.6224, allocations: 0.9472 MB / 0.498 GB, free: 6.594 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004945/0.6273, allocations: 1.245 MB / 0.4992 GB, free: 5.363 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05122/0.6786, allocations: 20.15 MB / 0.5189 GB, free: 1.18 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006436/0.6793, allocations: 23.8 kB / 0.5189 GB, free: 1.156 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004067/0.6833, allocations: 0.5134 MB / 0.5194 GB, free: 0.6562 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008195/0.6842, allocations: 0.7333 MB / 0.5202 GB, free: 15.92 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3312/1.015, allocations: 18.96 MB / 0.5387 GB, free: 136.5 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09087/1.106, allocations: 63.42 MB / 0.6006 GB, free: 94.6 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0262/1.133, allocations: 56.99 MB / 0.6563 GB, free: 35.29 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005283/1.138, allocations: 4.113 MB / 0.6603 GB, free: 31.15 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01467/1.153, allocations: 11.38 MB / 0.6714 GB, free: 19.75 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.109e-05/1.153, allocations: 69.31 kB / 0.6715 GB, free: 19.68 MB / 446.1 MB Notification: Performance of pre-optimization done (n=349): time 4.117e-06/1.153, allocations: 7.938 kB / 0.6715 GB, free: 19.67 MB / 446.1 MB Notification: Performance of matching and sorting (n=389): time 0.03327/1.186, allocations: 18.12 MB / 0.6892 GB, free: 1.418 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.952e-05/1.186, allocations: 94.47 kB / 0.6893 GB, free: 1.312 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00919/1.195, allocations: 5.461 MB / 0.6946 GB, free: 11.88 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005926/1.196, allocations: 85.7 kB / 0.6947 GB, free: 11.79 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003735/1.2, allocations: 5.88 MB / 0.7004 GB, free: 5.879 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001504/1.201, allocations: 1.377 MB / 0.7018 GB, free: 4.512 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002883/1.204, allocations: 1.516 MB / 0.7032 GB, free: 2.992 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001058/1.204, allocations: 301.1 kB / 0.7035 GB, free: 2.695 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1663/1.37, allocations: 3.075 MB / 0.7065 GB, free: 147.1 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007244/1.378, allocations: 6.754 MB / 0.7131 GB, free: 142.5 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01133/1.389, allocations: 10.59 MB / 0.7235 GB, free: 134.5 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001578/1.389, allocations: 35.44 kB / 0.7235 GB, free: 134.5 MB / 462.1 MB Notification: Performance of matching and sorting (n=982) (initialization): time 0.01666/1.406, allocations: 10.8 MB / 0.734 GB, free: 130.4 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.541e-05/1.406, allocations: 59.06 kB / 0.7341 GB, free: 130.4 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001951/1.406, allocations: 122.2 kB / 0.7342 GB, free: 130.4 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002246/1.408, allocations: 0.9763 MB / 0.7352 GB, free: 130.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005669/1.414, allocations: 1.815 MB / 0.7369 GB, free: 130 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009487/1.424, allocations: 9.544 MB / 0.7463 GB, free: 123.6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005959/1.43, allocations: 439.8 kB / 0.7467 GB, free: 123.4 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001253/1.431, allocations: 428.6 kB / 0.7471 GB, free: 123.4 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 572 * 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 (933): * Single equations (assignments): 928 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * 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): 3 systems {(1,1,100.0%), (1,1,100.0%), (8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.007247/1.438, allocations: 4.452 MB / 0.7514 GB, free: 121.2 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001316/1.439, allocations: 0.5415 MB / 0.752 GB, free: 121.2 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01042/1.45, allocations: 6.521 MB / 0.7583 GB, free: 118.3 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.277e-05/1.45, allocations: 40 kB / 0.7584 GB, free: 118.3 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.968e-05/1.45, allocations: 8 kB / 0.7584 GB, free: 118.3 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.002e-05/1.45, allocations: 26.08 kB / 0.7584 GB, free: 118.3 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02485/1.475, allocations: 15.96 MB / 0.774 GB, free: 105.3 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.299e-05/1.475, allocations: 4 kB / 0.774 GB, free: 105.3 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003099/1.478, allocations: 0.754 MB / 0.7747 GB, free: 104.7 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001991/1.48, allocations: 0.792 MB / 0.7755 GB, free: 104 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003369/1.48, allocations: 79.75 kB / 0.7756 GB, free: 104 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007944/1.488, allocations: 8.664 MB / 0.784 GB, free: 95.46 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/1.488, allocations: 7.172 kB / 0.7841 GB, free: 95.46 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01321/1.502, allocations: 9.533 MB / 0.7934 GB, free: 86.11 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00249/1.504, allocations: 1.072 MB / 0.7944 GB, free: 85.03 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001264/1.505, allocations: 71.94 kB / 0.7945 GB, free: 84.96 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002877/1.508, allocations: 231.8 kB / 0.7947 GB, free: 84.73 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006112/1.509, allocations: 258.8 kB / 0.7949 GB, free: 84.48 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002919/1.509, allocations: 108 kB / 0.7951 GB, free: 84.38 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.005676/1.515, allocations: 3.607 MB / 0.7986 GB, free: 80.79 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.7e-07/1.515, allocations: 0 / 0.7986 GB, free: 80.79 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.006934/1.522, allocations: 1.988 MB / 0.8005 GB, free: 78.81 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.w,quadraticSpeedDependentTorqueQS.phi) * 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 (368): * Single equations (assignments): 363 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * 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): 3 systems {(1,1,100.0%), (1,1,100.0%), (8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005656/1.522, allocations: 256.6 kB / 0.8008 GB, free: 78.56 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01041/1.533, allocations: 8.043 MB / 0.8086 GB, free: 70.45 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.133e-06/1.533, allocations: 4 kB / 0.8086 GB, free: 70.44 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004783/1.538, allocations: 3.536 MB / 0.8121 GB, free: 66.83 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007701/1.545, allocations: 1.238 MB / 0.8133 GB, free: 65.61 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03913/1.585, allocations: 26.23 MB / 0.8389 GB, free: 39.37 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008256/1.593, allocations: 7.594 MB / 0.8463 GB, free: 31.73 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.006522/1.599, allocations: 2.363 MB / 0.8486 GB, free: 29.36 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001282/1.601, allocations: 431.4 kB / 0.849 GB, free: 28.93 MB / 462.1 MB Notification: Performance of SimCode: time 9.12e-07/1.601, allocations: 0 / 0.849 GB, free: 28.93 MB / 462.1 MB Notification: Performance of Templates: time 0.303/1.904, allocations: 75.7 MB / 0.923 GB, free: 108.8 MB / 462.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1)