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_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.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001554/0.001554, allocations: 104.1 kB / 16.62 MB, free: 6.805 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.001746/0.001746, 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.461/1.461, allocations: 205.1 MB / 223.4 MB, free: 12.38 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.0012/0.0012, allocations: 47.94 kB / 279.5 MB, free: 3.469 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09553/0.09674, allocations: 46.63 MB / 326.2 MB, free: 4.77 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.04115/0.1379, allocations: 41 MB / 367.2 MB, free: 11.58 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02496/0.1629, allocations: 10.9 MB / 378.1 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01069/0.1737, allocations: 255.1 kB / 378.3 MB, free: 404 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1912/0.365, allocations: 8.253 MB / 386.6 MB, free: 11.04 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01382/0.3788, allocations: 3.411 MB / 390 MB, free: 10.92 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007776/0.3866, allocations: 2.265 MB / 392.2 MB, free: 10.85 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01677/0.4034, allocations: 13.89 MB / 406.1 MB, free: 8.305 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04616/0.4496, allocations: 29.12 MB / 435.3 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01593/0.4656, allocations: 7.2 MB / 442.5 MB, free: 9.555 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01305/0.4787, allocations: 8.321 MB / 450.8 MB, free: 1.465 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005026/0.4838, allocations: 2.027 MB / 452.8 MB, free: 15.43 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007458/0.4912, allocations: 2.419 MB / 455.2 MB, free: 13.03 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005919/0.4972, allocations: 4.247 MB / 459.5 MB, free: 8.844 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01609/0.5133, allocations: 8.043 MB / 467.5 MB, free: 0.8359 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03111/0.5445, allocations: 26.81 MB / 494.3 MB, free: 6.512 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.719e-06/0.5445, allocations: 0 / 494.3 MB, free: 6.512 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.003e-06/0.5445, allocations: 0 / 494.3 MB, free: 6.512 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0007836/0.5453, allocations: 0 / 494.3 MB, free: 6.512 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3597 * Number of variables: 3597 Notification: Performance of Generate backend data structure: time 0.04899/0.5943, allocations: 16.06 MB / 0.4984 GB, free: 6.445 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.219e-05/0.5944, allocations: 8.031 kB / 0.4984 GB, free: 6.438 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04809/0.6425, allocations: 9.176 MB / 0.5074 GB, free: 13.34 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01965/0.6622, allocations: 7.659 MB / 0.5149 GB, free: 5.672 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001096/0.6633, allocations: 0.9712 MB / 0.5158 GB, free: 4.711 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005514/0.6689, allocations: 1.28 MB / 0.5171 GB, free: 3.445 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.331/0.9999, allocations: 20.52 MB / 0.5371 GB, free: 134.1 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006587/1.001, allocations: 22.19 kB / 0.5371 GB, free: 134.1 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005288/1.006, allocations: 0.5284 MB / 0.5376 GB, free: 134.1 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001178/1.007, allocations: 0.7472 MB / 0.5384 GB, free: 134 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03671/1.044, allocations: 19.24 MB / 0.5572 GB, free: 127.8 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09609/1.14, allocations: 65.05 MB / 0.6207 GB, free: 77.5 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02869/1.169, allocations: 57.29 MB / 0.6766 GB, free: 13.37 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006582/1.175, allocations: 4.205 MB / 0.6807 GB, free: 9.152 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0209/1.196, allocations: 11.67 MB / 0.6921 GB, free: 13.48 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.942e-05/1.196, allocations: 73.41 kB / 0.6922 GB, free: 13.39 MB / 462.1 MB Notification: Performance of pre-optimization done (n=361): time 6.712e-06/1.196, allocations: 0 / 0.6922 GB, free: 13.39 MB / 462.1 MB Notification: Performance of matching and sorting (n=403): time 0.2185/1.415, allocations: 17.86 MB / 0.7096 GB, free: 145.4 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.582e-05/1.415, allocations: 94.14 kB / 0.7097 GB, free: 145.3 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01216/1.427, allocations: 5.687 MB / 0.7153 GB, free: 143.6 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007856/1.428, allocations: 90.95 kB / 0.7154 GB, free: 143.6 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003999/1.432, allocations: 6.053 MB / 0.7213 GB, free: 139 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001407/1.433, allocations: 1.422 MB / 0.7227 GB, free: 137.9 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002165/1.436, allocations: 1.54 MB / 0.7242 GB, free: 137.2 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.053e-05/1.436, allocations: 301.1 kB / 0.7244 GB, free: 136.9 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004076/1.44, allocations: 3.15 MB / 0.7275 GB, free: 135.7 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005392/1.445, allocations: 6.892 MB / 0.7343 GB, free: 129.6 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009964/1.455, allocations: 10.81 MB / 0.7448 GB, free: 121.2 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.497e-05/1.455, allocations: 35.62 kB / 0.7448 GB, free: 121.2 MB / 462.1 MB Notification: Performance of matching and sorting (n=1007) (initialization): time 0.01757/1.473, allocations: 11.03 MB / 0.7556 GB, free: 116.7 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.611e-05/1.473, allocations: 59.75 kB / 0.7557 GB, free: 116.7 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001954/1.473, allocations: 128.8 kB / 0.7558 GB, free: 116.7 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002319/1.475, allocations: 0.9871 MB / 0.7568 GB, free: 116.5 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006116/1.482, allocations: 1.86 MB / 0.7586 GB, free: 116.2 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01012/1.492, allocations: 10.25 MB / 0.7686 GB, free: 109.2 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006703/1.498, allocations: 454.6 kB / 0.769 GB, free: 109.1 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001297/1.5, allocations: 427.3 kB / 0.7694 GB, free: 109 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 583 * 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 (958): * Single equations (assignments): 953 * 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.008116/1.508, allocations: 4.516 MB / 0.7738 GB, free: 105.4 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001727/1.51, allocations: 0.5727 MB / 0.7744 GB, free: 104.8 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01008/1.52, allocations: 6.715 MB / 0.781 GB, free: 99.11 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.728e-05/1.52, allocations: 40 kB / 0.781 GB, free: 99.07 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.46e-05/1.52, allocations: 12 kB / 0.781 GB, free: 99.05 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.912e-05/1.52, allocations: 19.31 kB / 0.781 GB, free: 99.05 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02642/1.546, allocations: 16.48 MB / 0.7971 GB, free: 82.87 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.604e-05/1.546, allocations: 7.828 kB / 0.7971 GB, free: 82.86 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003304/1.55, allocations: 0.7845 MB / 0.7979 GB, free: 82.08 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002046/1.552, allocations: 0.8002 MB / 0.7987 GB, free: 81.26 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004952/1.552, allocations: 85.66 kB / 0.7988 GB, free: 81.18 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008092/1.56, allocations: 9.346 MB / 0.8079 GB, free: 71.43 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.506e-06/1.56, allocations: 4 kB / 0.8079 GB, free: 71.43 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01259/1.573, allocations: 9.827 MB / 0.8175 GB, free: 61.48 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002779/1.576, allocations: 1.115 MB / 0.8186 GB, free: 60.34 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001223/1.577, allocations: 75.94 kB / 0.8186 GB, free: 60.26 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002937/1.58, allocations: 231.7 kB / 0.8189 GB, free: 60.04 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005825/1.581, allocations: 278.8 kB / 0.8191 GB, free: 59.76 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000251/1.581, allocations: 116 kB / 0.8192 GB, free: 59.65 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.005762/1.587, allocations: 3.746 MB / 0.8229 GB, free: 55.93 MB / 462.1 MB Notification: Performance of sort global known variables: time 7.82e-07/1.587, allocations: 0 / 0.8229 GB, free: 55.93 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.008858/1.596, allocations: 2.042 MB / 0.8249 GB, free: 53.89 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi,smpmQS.inertiaRotor.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 (384): * Single equations (assignments): 379 * 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.001043/1.597, allocations: 263.4 kB / 0.8252 GB, free: 53.64 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.02717/1.624, allocations: 13.88 MB / 0.8387 GB, free: 39.74 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.088e-05/1.624, allocations: 0 / 0.8387 GB, free: 39.74 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005322/1.629, allocations: 3.614 MB / 0.8422 GB, free: 36.05 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007645/1.637, allocations: 1.415 MB / 0.8436 GB, free: 34.65 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04066/1.678, allocations: 26.91 MB / 0.8699 GB, free: 7.719 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1923/1.87, allocations: 7.691 MB / 0.8774 GB, free: 130.6 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.01004/1.88, allocations: 2.399 MB / 0.8797 GB, free: 130.4 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002899/1.883, allocations: 453 kB / 0.8802 GB, free: 130.4 MB / 462.1 MB Notification: Performance of SimCode: time 1.533e-06/1.883, allocations: 0 / 0.8802 GB, free: 130.4 MB / 462.1 MB Notification: Performance of Templates: time 0.134/2.017, allocations: 82.35 MB / 0.9606 GB, free: 74.34 MB / 462.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1)