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.00531/0.00531, allocations: 102.8 kB / 15.73 MB, free: 6.484 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.001393/0.001393, allocations: 196.4 kB / 16.68 MB, free: 6.375 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.367/1.367, allocations: 205.1 MB / 222.5 MB, free: 4.523 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.001222/0.001222, allocations: 54.58 kB / 326.6 MB, free: 14.43 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09864/0.09988, allocations: 46.63 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.01709/0.117, allocations: 15.83 MB / 389 MB, free: 1.387 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01215/0.1292, allocations: 5.393 MB / 394.4 MB, free: 11.98 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003706/0.133, allocations: 95.62 kB / 394.5 MB, free: 11.88 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003593/0.1366, allocations: 1.098 MB / 395.6 MB, free: 10.78 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005077/0.1417, allocations: 1.347 MB / 397 MB, free: 9.422 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002478/0.1442, allocations: 0.9664 MB / 397.9 MB, free: 8.453 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005717/0.15, allocations: 3.975 MB / 401.9 MB, free: 4.465 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004548/0.1545, allocations: 3.552 MB / 405.5 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003871/0.1584, allocations: 1.873 MB / 407.3 MB, free: 14.96 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004118/0.1626, allocations: 2.265 MB / 409.6 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009843/0.1636, allocations: 0.5156 MB / 410.1 MB, free: 12.18 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001835/0.1654, allocations: 0.7458 MB / 410.9 MB, free: 11.43 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00115/0.1666, allocations: 1.286 MB / 412.1 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002735/0.1693, allocations: 2.252 MB / 414.4 MB, free: 7.879 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007751/0.1771, allocations: 6.889 MB / 421.3 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.674e-06/0.1772, allocations: 0 / 421.3 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.1772, allocations: 0 / 421.3 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002246/0.1774, allocations: 3.938 kB / 421.3 MB, free: 0.9648 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.01459/0.192, allocations: 4.665 MB / 425.9 MB, free: 12.23 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.919e-05/0.1921, allocations: 11.89 kB / 426 MB, free: 12.21 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003482/0.1956, allocations: 0.6675 MB / 426.6 MB, free: 11.54 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005109/0.2007, allocations: 2.377 MB / 429 MB, free: 9.113 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002269/0.201, allocations: 263.3 kB / 429.3 MB, free: 8.855 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009242/0.2019, allocations: 348 kB / 429.6 MB, free: 8.516 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009886/0.2118, allocations: 4.46 MB / 434.1 MB, free: 4 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.899e-05/0.212, allocations: 3.984 kB / 434.1 MB, free: 3.996 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003689/0.2123, allocations: 148 kB / 434.2 MB, free: 3.852 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000161/0.2125, allocations: 158.8 kB / 434.4 MB, free: 3.695 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006832/0.2193, allocations: 3.735 MB / 438.1 MB, free: 15.95 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02263/0.242, allocations: 14.32 MB / 452.4 MB, free: 1.211 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2278/0.4698, allocations: 5.362 MB / 457.8 MB, free: 63.09 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00274/0.4726, allocations: 1.256 MB / 459 MB, free: 63.07 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007628/0.4803, allocations: 3.782 MB / 462.8 MB, free: 61.31 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.871e-05/0.4803, allocations: 48.91 kB / 462.9 MB, free: 61.27 MB / 382.1 MB Notification: Performance of pre-optimization done (n=127): time 3.757e-06/0.4804, allocations: 0.5 kB / 462.9 MB, free: 61.27 MB / 382.1 MB Notification: Performance of matching and sorting (n=131): time 0.009858/0.4902, allocations: 5.471 MB / 468.3 MB, free: 58.54 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.725e-05/0.4903, allocations: 65 kB / 468.4 MB, free: 58.47 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003072/0.4934, allocations: 2.105 MB / 470.5 MB, free: 57.64 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.583e-05/0.4935, allocations: 51.2 kB / 470.6 MB, free: 57.59 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008668/0.4944, allocations: 1.651 MB / 472.2 MB, free: 56.34 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003244/0.4947, allocations: 466.7 kB / 472.7 MB, free: 55.99 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004493/0.4951, allocations: 331.9 kB / 473 MB, free: 55.82 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.016e-05/0.4952, allocations: 308.4 kB / 473.3 MB, free: 55.52 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001115/0.4963, allocations: 0.7144 MB / 474 MB, free: 55.26 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001458/0.4978, allocations: 1.359 MB / 475.4 MB, free: 54.19 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002313/0.5001, allocations: 2.222 MB / 477.6 MB, free: 52.67 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.129e-05/0.5001, allocations: 7.812 kB / 477.6 MB, free: 52.67 MB / 382.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.003561/0.5037, allocations: 2.522 MB / 480.1 MB, free: 51.54 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.308e-05/0.5038, allocations: 11.78 kB / 480.1 MB, free: 51.54 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.468e-05/0.5038, allocations: 23.44 kB / 480.1 MB, free: 51.54 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003851/0.5042, allocations: 136.8 kB / 480.3 MB, free: 51.49 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001479/0.5057, allocations: 470.9 kB / 480.7 MB, free: 51.44 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002067/0.5077, allocations: 3.347 MB / 484.1 MB, free: 48.26 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001952/0.5097, allocations: 111.2 kB / 484.2 MB, free: 48.22 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00014/0.5099, allocations: 86.97 kB / 484.3 MB, free: 48.21 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.00215/0.512, allocations: 1.052 MB / 485.3 MB, free: 47.62 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004113/0.5124, allocations: 216.3 kB / 485.5 MB, free: 47.51 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002979/0.5154, allocations: 2.177 MB / 487.7 MB, free: 46.21 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.578e-06/0.5154, allocations: 15.19 kB / 487.7 MB, free: 46.21 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.505e-06/0.5155, allocations: 3.906 kB / 487.7 MB, free: 46.21 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.126e-05/0.5155, allocations: 6.422 kB / 487.7 MB, free: 46.2 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007046/0.5225, allocations: 5.151 MB / 492.9 MB, free: 42.01 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.714e-06/0.5226, allocations: 8.031 kB / 492.9 MB, free: 42 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009173/0.5235, allocations: 227.7 kB / 493.1 MB, free: 41.78 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006433/0.5242, allocations: 279.1 kB / 493.4 MB, free: 41.5 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.542e-05/0.5242, allocations: 31.98 kB / 493.4 MB, free: 41.47 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004855/0.5291, allocations: 7.8 MB / 0.4895 GB, free: 33.14 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.5291, allocations: 0 / 0.4895 GB, free: 33.14 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003984/0.5331, allocations: 3.177 MB / 0.4926 GB, free: 29.87 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009434/0.5341, allocations: 451 kB / 0.493 GB, free: 29.41 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002496/0.5343, allocations: 40.77 kB / 0.4931 GB, free: 29.37 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009437/0.5353, allocations: 67.92 kB / 0.4931 GB, free: 29.3 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001813/0.5355, allocations: 92.81 kB / 0.4932 GB, free: 29.21 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.705e-05/0.5355, allocations: 39.98 kB / 0.4932 GB, free: 29.17 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001858/0.5374, allocations: 1.431 MB / 0.4946 GB, free: 27.72 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5374, allocations: 1.75 kB / 0.4946 GB, free: 27.72 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002085/0.5395, allocations: 0.5521 MB / 0.4952 GB, free: 27.17 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.0003215/0.5398, allocations: 165.6 kB / 0.4953 GB, free: 27.01 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002695/0.5425, allocations: 2.109 MB / 0.4974 GB, free: 24.86 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.549e-06/0.5426, allocations: 0 / 0.4974 GB, free: 24.86 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001577/0.5441, allocations: 1.378 MB / 0.4987 GB, free: 23.43 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002504/0.5467, allocations: 0.5616 MB / 0.4993 GB, free: 22.89 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008958/0.5556, allocations: 6.053 MB / 0.5052 GB, free: 16.79 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001753/0.5574, allocations: 2.412 MB / 0.5076 GB, free: 14.35 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001617/0.5591, allocations: 0.4907 MB / 0.508 GB, free: 13.86 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003636/0.5594, allocations: 159.4 kB / 0.5082 GB, free: 13.7 MB / 382.1 MB Notification: Performance of SimCode: time 1.002e-06/0.5595, allocations: 0 / 0.5082 GB, free: 13.7 MB / 382.1 MB Notification: Performance of Templates: time 0.04559/0.6051, allocations: 27.13 MB / 0.5347 GB, free: 2.578 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)