Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.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.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001703/0.001703, allocations: 108.8 kB / 17.06 MB, free: 6.137 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.001613/0.001613, allocations: 191 kB / 18 MB, free: 5.219 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.346/1.346, allocations: 205.1 MB / 223.9 MB, free: 12.25 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.001194/0.001194, allocations: 55.92 kB / 327.9 MB, free: 3.281 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08939/0.09059, allocations: 46.62 MB / 374.5 MB, free: 4.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource): time 0.2422/0.3328, allocations: 15.83 MB / 390.3 MB, free: 4.031 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01223/0.3451, allocations: 5.399 MB / 395.7 MB, free: 232 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004722/0.35, allocations: 95.72 kB / 395.8 MB, free: 204 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004703/0.3547, allocations: 1.171 MB / 397 MB, free: 15.55 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007832/0.3625, allocations: 1.396 MB / 398.4 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003372/0.3659, allocations: 0.9602 MB / 399.4 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.008221/0.3742, allocations: 3.976 MB / 403.3 MB, free: 11.97 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005441/0.3796, allocations: 3.549 MB / 406.9 MB, free: 10.45 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004021/0.3837, allocations: 1.895 MB / 408.8 MB, free: 9.5 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0042/0.3879, allocations: 2.268 MB / 411 MB, free: 8.191 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00145/0.3894, allocations: 0.5164 MB / 411.6 MB, free: 8.191 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003106/0.3925, allocations: 0.7359 MB / 412.3 MB, free: 8.082 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001503/0.394, allocations: 1.287 MB / 413.6 MB, free: 7.074 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003104/0.3971, allocations: 2.254 MB / 415.8 MB, free: 5.406 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007753/0.4049, allocations: 6.886 MB / 422.7 MB, free: 15.37 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/0.4049, allocations: 3.984 kB / 422.7 MB, free: 15.36 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.645e-06/0.4049, allocations: 0 / 422.7 MB, free: 15.36 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.000152/0.4051, allocations: 3.938 kB / 422.7 MB, free: 15.36 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: 911 * Number of variables: 911 Notification: Performance of Generate backend data structure: time 0.01165/0.4167, allocations: 4.658 MB / 427.4 MB, free: 10.63 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.997e-05/0.4168, allocations: 11.89 kB / 427.4 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002966/0.4198, allocations: 0.6675 MB / 428.1 MB, free: 9.945 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004316/0.4241, allocations: 2.377 MB / 430.4 MB, free: 7.516 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002142/0.4243, allocations: 267.3 kB / 430.7 MB, free: 7.254 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005531/0.4249, allocations: 340.3 kB / 431 MB, free: 6.922 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008072/0.433, allocations: 4.464 MB / 435.5 MB, free: 2.402 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.029e-05/0.4331, allocations: 7.984 kB / 435.5 MB, free: 2.395 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003056/0.4334, allocations: 144 kB / 435.6 MB, free: 2.254 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001576/0.4336, allocations: 166.8 kB / 435.8 MB, free: 2.09 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006764/0.4403, allocations: 3.735 MB / 439.5 MB, free: 14.35 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02338/0.4637, allocations: 14.31 MB / 453.9 MB, free: 15.61 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005303/0.4691, allocations: 5.366 MB / 459.2 MB, free: 9.539 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001925/0.4711, allocations: 1.259 MB / 460.5 MB, free: 8.281 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006989/0.4781, allocations: 3.776 MB / 464.3 MB, free: 4.41 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.452e-05/0.4781, allocations: 55.81 kB / 464.3 MB, free: 4.348 MB / 382.1 MB Notification: Performance of pre-optimization done (n=127): time 4.107e-06/0.4781, allocations: 0 / 464.3 MB, free: 4.348 MB / 382.1 MB Notification: Performance of matching and sorting (n=131): time 0.01069/0.4888, allocations: 5.467 MB / 469.8 MB, free: 14.7 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.021e-05/0.4889, allocations: 64.72 kB / 469.8 MB, free: 14.63 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003766/0.4927, allocations: 2.098 MB / 471.9 MB, free: 12.5 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001013/0.4928, allocations: 49.7 kB / 472 MB, free: 12.44 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001214/0.494, allocations: 1.665 MB / 473.7 MB, free: 10.76 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003905/0.4944, allocations: 457.4 kB / 474.1 MB, free: 10.3 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005296/0.495, allocations: 335.2 kB / 474.4 MB, free: 9.969 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001017/0.4951, allocations: 301.1 kB / 474.7 MB, free: 9.672 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001177/0.4963, allocations: 0.7145 MB / 475.4 MB, free: 8.957 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001599/0.4979, allocations: 1.353 MB / 476.8 MB, free: 7.309 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002933/0.5008, allocations: 2.227 MB / 479 MB, free: 4.797 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.55e-05/0.5008, allocations: 4 kB / 479 MB, free: 4.793 MB / 398.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.004325/0.5052, allocations: 2.525 MB / 481.5 MB, free: 2.23 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.27e-05/0.5052, allocations: 15.94 kB / 481.6 MB, free: 2.215 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.603e-05/0.5053, allocations: 27.98 kB / 481.6 MB, free: 2.188 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004418/0.5057, allocations: 139 kB / 481.7 MB, free: 2.043 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001634/0.5074, allocations: 459.3 kB / 482.2 MB, free: 1.594 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002798/0.5102, allocations: 3.364 MB / 485.5 MB, free: 13.95 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001716/0.5119, allocations: 107.8 kB / 485.6 MB, free: 13.85 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001897/0.5121, allocations: 84 kB / 485.7 MB, free: 13.77 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 93 * 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 (227): * Single equations (assignments): 224 * 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): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002418/0.5145, allocations: 1.044 MB / 486.8 MB, free: 12.71 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000648/0.5152, allocations: 217.3 kB / 487 MB, free: 12.5 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003914/0.5191, allocations: 2.181 MB / 489.2 MB, free: 10.26 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.427e-05/0.5191, allocations: 15.98 kB / 489.2 MB, free: 10.24 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.454e-05/0.5191, allocations: 4 kB / 489.2 MB, free: 10.24 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.215e-05/0.5192, allocations: 7.922 kB / 489.2 MB, free: 10.23 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009107/0.5283, allocations: 5.16 MB / 494.4 MB, free: 4.93 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.376e-06/0.5283, allocations: 7.938 kB / 494.4 MB, free: 4.922 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009994/0.5293, allocations: 223.7 kB / 494.6 MB, free: 4.703 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007302/0.5301, allocations: 271.5 kB / 494.8 MB, free: 4.426 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001054/0.5302, allocations: 35.98 kB / 494.9 MB, free: 4.391 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00677/0.537, allocations: 7.794 MB / 0.4909 GB, free: 12.04 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.669e-06/0.537, allocations: 3.938 kB / 0.4909 GB, free: 12.04 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005195/0.5422, allocations: 3.181 MB / 0.494 GB, free: 8.762 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001462/0.5437, allocations: 450.4 kB / 0.4944 GB, free: 8.301 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006383/0.5443, allocations: 39.92 kB / 0.4945 GB, free: 8.262 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001267/0.5456, allocations: 71.92 kB / 0.4945 GB, free: 8.191 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002102/0.5458, allocations: 92.75 kB / 0.4946 GB, free: 8.098 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.072e-05/0.5459, allocations: 39.98 kB / 0.4947 GB, free: 8.059 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002812/0.5487, allocations: 1.427 MB / 0.4961 GB, free: 6.613 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.5487, allocations: 0 / 0.4961 GB, free: 6.613 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002463/0.5512, allocations: 0.5591 MB / 0.4966 GB, free: 6.055 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.PI_q.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 (112): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,5,100.0%), (1,1,100.0%), (1,8,100.0%), (2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003627/0.5516, allocations: 171.2 kB / 0.4968 GB, free: 5.879 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003432/0.555, allocations: 2.11 MB / 0.4988 GB, free: 3.723 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.18e-06/0.5551, allocations: 4.062 kB / 0.4988 GB, free: 3.719 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002111/0.5572, allocations: 1.379 MB / 0.5002 GB, free: 2.289 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003047/0.5602, allocations: 0.5457 MB / 0.5007 GB, free: 1.742 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0127/0.5729, allocations: 6.052 MB / 0.5066 GB, free: 11.63 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003734/0.5767, allocations: 2.421 MB / 0.509 GB, free: 9.176 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001828/0.5786, allocations: 494.5 kB / 0.5095 GB, free: 8.691 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005893/0.5792, allocations: 159.3 kB / 0.5096 GB, free: 8.535 MB / 446.1 MB Notification: Performance of SimCode: time 1.212e-06/0.5792, allocations: 0 / 0.5096 GB, free: 8.535 MB / 446.1 MB Notification: Performance of Templates: time 0.05622/0.6354, allocations: 27.11 MB / 0.5361 GB, free: 13.37 MB / 478.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe 2>&1)