Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_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.1_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.1_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.005224/0.005225, allocations: 98.11 kB / 15.73 MB, free: 6.055 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.001097/0.001097, allocations: 193.3 kB / 16.68 MB, free: 5.969 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.35/1.35, allocations: 205.1 MB / 222.5 MB, free: 4.516 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.001282/0.001282, allocations: 46.31 kB / 326.6 MB, free: 14.42 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09287/0.09416, allocations: 46.64 MB / 373.2 MB, free: 1.297 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource): time 0.01872/0.1129, allocations: 15.83 MB / 389 MB, free: 1.395 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01208/0.125, allocations: 5.396 MB / 394.4 MB, free: 11.98 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003768/0.1289, allocations: 95.56 kB / 394.5 MB, free: 11.89 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004074/0.133, allocations: 1.102 MB / 395.6 MB, free: 10.78 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005477/0.1385, allocations: 1.34 MB / 397 MB, free: 9.43 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002714/0.1412, allocations: 0.9664 MB / 397.9 MB, free: 8.461 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005399/0.1466, allocations: 3.99 MB / 401.9 MB, free: 4.457 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004265/0.1509, allocations: 3.544 MB / 405.5 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002599/0.1535, allocations: 1.885 MB / 407.3 MB, free: 14.95 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002906/0.1565, allocations: 2.265 MB / 409.6 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007131/0.1572, allocations: 0.5156 MB / 410.1 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001398/0.1586, allocations: 0.7379 MB / 410.9 MB, free: 11.43 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00114/0.1597, allocations: 1.29 MB / 412.1 MB, free: 10.13 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002283/0.162, allocations: 2.248 MB / 414.4 MB, free: 7.875 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00775/0.1698, allocations: 6.909 MB / 421.3 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.1698, allocations: 4 kB / 421.3 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.384e-06/0.1698, allocations: 0 / 421.3 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001788/0.17, allocations: 0 / 421.3 MB, free: 0.9375 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.01661/0.1866, allocations: 4.762 MB / 426.1 MB, free: 12.09 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.807e-05/0.1867, allocations: 19.88 kB / 426.1 MB, free: 12.07 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00393/0.1907, allocations: 0.6854 MB / 426.8 MB, free: 11.39 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007519/0.1982, allocations: 2.394 MB / 429.2 MB, free: 8.941 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002987/0.1986, allocations: 267.3 kB / 429.4 MB, free: 8.68 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001184/0.1997, allocations: 348.1 kB / 429.8 MB, free: 8.34 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008839/0.2086, allocations: 4.46 MB / 434.2 MB, free: 3.824 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.768e-05/0.2087, allocations: 4 kB / 434.2 MB, free: 3.82 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003406/0.2091, allocations: 144 kB / 434.4 MB, free: 3.68 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001743/0.2092, allocations: 162.8 kB / 434.5 MB, free: 3.52 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007009/0.2163, allocations: 3.731 MB / 438.3 MB, free: 15.78 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02203/0.2383, allocations: 14.35 MB / 452.6 MB, free: 1.008 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2545/0.4928, allocations: 5.36 MB / 458 MB, free: 63.06 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002986/0.4959, allocations: 1.263 MB / 459.2 MB, free: 63.05 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01038/0.5063, allocations: 3.799 MB / 463 MB, free: 61.22 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.63e-05/0.5064, allocations: 44.25 kB / 463.1 MB, free: 61.17 MB / 382.1 MB Notification: Performance of pre-optimization done (n=127): time 4.468e-06/0.5064, allocations: 2.719 kB / 463.1 MB, free: 61.17 MB / 382.1 MB Notification: Performance of matching and sorting (n=131): time 0.01215/0.5185, allocations: 5.515 MB / 468.6 MB, free: 58.53 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.914e-05/0.5186, allocations: 66.06 kB / 468.7 MB, free: 58.46 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00484/0.5235, allocations: 2.107 MB / 470.8 MB, free: 57.65 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001165/0.5236, allocations: 52.83 kB / 470.8 MB, free: 57.6 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001534/0.5251, allocations: 1.699 MB / 472.5 MB, free: 56.52 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005487/0.5257, allocations: 483.8 kB / 473 MB, free: 56.21 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006701/0.5264, allocations: 337.5 kB / 473.3 MB, free: 56.04 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.835e-05/0.5264, allocations: 303.8 kB / 473.6 MB, free: 55.74 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001299/0.5278, allocations: 0.7211 MB / 474.3 MB, free: 55.47 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001599/0.5294, allocations: 1.347 MB / 475.7 MB, free: 54.4 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002578/0.532, allocations: 2.228 MB / 477.9 MB, free: 52.88 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.022e-05/0.532, allocations: 4.469 kB / 477.9 MB, free: 52.88 MB / 382.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.004205/0.5362, allocations: 2.531 MB / 480.5 MB, free: 51.74 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.943e-05/0.5363, allocations: 15.81 kB / 480.5 MB, free: 51.74 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.773e-05/0.5363, allocations: 20.16 kB / 480.5 MB, free: 51.74 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003901/0.5367, allocations: 141.9 kB / 480.6 MB, free: 51.69 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001744/0.5385, allocations: 463.1 kB / 481.1 MB, free: 51.64 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002217/0.5407, allocations: 3.359 MB / 484.4 MB, free: 48.45 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00187/0.5426, allocations: 112.3 kB / 484.5 MB, free: 48.42 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001682/0.5428, allocations: 83 kB / 484.6 MB, free: 48.41 MB / 382.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.002109/0.5449, allocations: 1.049 MB / 485.7 MB, free: 47.83 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006851/0.5456, allocations: 229.3 kB / 485.9 MB, free: 47.71 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003227/0.5488, allocations: 2.178 MB / 488.1 MB, free: 46.37 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.865e-06/0.5488, allocations: 11.59 kB / 488.1 MB, free: 46.37 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.314e-05/0.5488, allocations: 4.812 kB / 488.1 MB, free: 46.37 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.203e-05/0.5489, allocations: 7.969 kB / 488.1 MB, free: 46.36 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008278/0.5571, allocations: 5.166 MB / 493.3 MB, free: 42 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.448e-06/0.5572, allocations: 4 kB / 493.3 MB, free: 41.99 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009015/0.5581, allocations: 223.7 kB / 493.5 MB, free: 41.77 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006344/0.5587, allocations: 282.5 kB / 493.8 MB, free: 41.49 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.856e-05/0.5589, allocations: 28 kB / 493.8 MB, free: 41.46 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005187/0.564, allocations: 7.797 MB / 0.4898 GB, free: 33.13 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.264e-06/0.5641, allocations: 10.47 kB / 0.4898 GB, free: 33.12 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004202/0.5683, allocations: 3.192 MB / 0.493 GB, free: 29.84 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001202/0.5695, allocations: 459.5 kB / 0.4934 GB, free: 29.37 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005939/0.5701, allocations: 36.81 kB / 0.4934 GB, free: 29.34 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00137/0.5715, allocations: 75.91 kB / 0.4935 GB, free: 29.26 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002032/0.5717, allocations: 88.81 kB / 0.4936 GB, free: 29.18 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.635e-05/0.5718, allocations: 36 kB / 0.4936 GB, free: 29.14 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002534/0.5743, allocations: 1.431 MB / 0.495 GB, free: 27.69 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5744, allocations: 8 kB / 0.495 GB, free: 27.68 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002683/0.577, allocations: 0.5546 MB / 0.4956 GB, free: 27.13 MB / 382.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.0003658/0.5774, allocations: 164 kB / 0.4957 GB, free: 26.96 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002986/0.5804, allocations: 2.102 MB / 0.4978 GB, free: 24.82 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.144e-06/0.5804, allocations: 0 / 0.4978 GB, free: 24.82 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001669/0.5821, allocations: 1.387 MB / 0.4991 GB, free: 23.39 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0029/0.585, allocations: 0.5504 MB / 0.4997 GB, free: 22.85 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01071/0.5958, allocations: 6.164 MB / 0.5057 GB, free: 16.63 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002605/0.5984, allocations: 2.417 MB / 0.5081 GB, free: 14.18 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001599/0.6, allocations: 494.5 kB / 0.5085 GB, free: 13.7 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005234/0.6005, allocations: 159.4 kB / 0.5087 GB, free: 13.54 MB / 382.1 MB Notification: Performance of SimCode: time 1.333e-06/0.6005, allocations: 0 / 0.5087 GB, free: 13.54 MB / 382.1 MB Notification: Performance of Templates: time 0.04601/0.6466, allocations: 27.13 MB / 0.5352 GB, free: 2.422 MB / 398.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.sim & ./Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe 2>&1)