Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.001562/0.001562, allocations: 112.5 kB / 15.73 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00174/0.00174, allocations: 196.5 kB / 16.66 MB, free: 6.574 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.385/1.385, 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.001178/0.001178, allocations: 54.64 kB / 326.6 MB, free: 14.31 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09121/0.09239, allocations: 46.62 MB / 373.2 MB, free: 1.316 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource): time 0.01654/0.109, allocations: 15.83 MB / 389 MB, free: 1.406 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01096/0.12, allocations: 5.396 MB / 394.4 MB, free: 11.99 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003348/0.1234, allocations: 95.62 kB / 394.5 MB, free: 11.9 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003418/0.1268, allocations: 1.165 MB / 395.7 MB, free: 10.73 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005095/0.1319, allocations: 1.398 MB / 397.1 MB, free: 9.32 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00283/0.1348, allocations: 0.9548 MB / 398 MB, free: 8.363 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005586/0.1404, allocations: 3.979 MB / 402 MB, free: 4.371 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004182/0.1446, allocations: 3.548 MB / 405.5 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00315/0.1478, allocations: 1.893 MB / 407.4 MB, free: 14.85 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004427/0.1522, allocations: 2.265 MB / 409.7 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001867/0.1541, allocations: 0.5156 MB / 410.2 MB, free: 12.06 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00307/0.1572, allocations: 0.7379 MB / 411 MB, free: 11.33 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0021/0.1593, allocations: 1.29 MB / 412.2 MB, free: 10.04 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003608/0.1629, allocations: 2.252 MB / 414.5 MB, free: 7.773 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008184/0.1711, allocations: 6.893 MB / 421.4 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.1712, allocations: 0 / 421.4 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.1712, allocations: 0 / 421.4 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001914/0.1714, allocations: 4 kB / 421.4 MB, free: 0.8555 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.012/0.1834, allocations: 4.661 MB / 426.1 MB, free: 12.12 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.177e-05/0.1834, allocations: 15.88 kB / 426.1 MB, free: 12.11 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00308/0.1865, allocations: 0.6714 MB / 426.7 MB, free: 11.43 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004083/0.1906, allocations: 2.373 MB / 429.1 MB, free: 9.004 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001765/0.1908, allocations: 259.3 kB / 429.4 MB, free: 8.75 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004857/0.1913, allocations: 356 kB / 429.7 MB, free: 8.402 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007971/0.1993, allocations: 4.46 MB / 434.2 MB, free: 3.887 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.338e-05/0.1994, allocations: 3.938 kB / 434.2 MB, free: 3.883 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003124/0.1997, allocations: 144 kB / 434.3 MB, free: 3.742 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001516/0.1999, allocations: 162.8 kB / 434.5 MB, free: 3.582 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006249/0.2062, allocations: 3.731 MB / 438.2 MB, free: 15.84 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02274/0.2289, allocations: 14.31 MB / 452.5 MB, free: 1.109 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2392/0.4682, allocations: 5.365 MB / 457.9 MB, free: 63.16 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002591/0.4708, allocations: 1.255 MB / 459.1 MB, free: 63.14 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007098/0.4779, allocations: 3.789 MB / 462.9 MB, free: 61.34 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.548e-05/0.478, allocations: 50.31 kB / 463 MB, free: 61.3 MB / 382.1 MB Notification: Performance of pre-optimization done (n=127): time 2.955e-06/0.478, allocations: 0.5625 kB / 463 MB, free: 61.3 MB / 382.1 MB Notification: Performance of matching and sorting (n=131): time 0.00953/0.4875, allocations: 5.466 MB / 468.4 MB, free: 58.56 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.563e-05/0.4876, allocations: 66.19 kB / 468.5 MB, free: 58.5 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003315/0.4909, allocations: 2.108 MB / 470.6 MB, free: 57.67 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000123/0.4911, allocations: 47.42 kB / 470.7 MB, free: 57.62 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008771/0.4919, allocations: 1.654 MB / 472.3 MB, free: 56.37 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002791/0.4922, allocations: 468.8 kB / 472.8 MB, free: 56.01 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004305/0.4927, allocations: 336.2 kB / 473.1 MB, free: 55.84 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.972e-05/0.4927, allocations: 301.1 kB / 473.4 MB, free: 55.55 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001032/0.4938, allocations: 0.7151 MB / 474.1 MB, free: 55.29 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001235/0.495, allocations: 1.36 MB / 475.5 MB, free: 54.21 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002175/0.4972, allocations: 2.223 MB / 477.7 MB, free: 52.69 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.928e-06/0.4972, allocations: 7.906 kB / 477.7 MB, free: 52.69 MB / 382.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.003561/0.5008, allocations: 2.517 MB / 480.2 MB, free: 51.56 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.73e-05/0.5008, allocations: 11.84 kB / 480.2 MB, free: 51.56 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.528e-05/0.5008, allocations: 23.44 kB / 480.3 MB, free: 51.56 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003532/0.5012, allocations: 144.1 kB / 480.4 MB, free: 51.5 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001539/0.5028, allocations: 460.7 kB / 480.8 MB, free: 51.46 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002044/0.5048, allocations: 3.353 MB / 484.2 MB, free: 48.28 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001737/0.5066, allocations: 111.8 kB / 484.3 MB, free: 48.24 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001069/0.5067, allocations: 87.02 kB / 484.4 MB, free: 48.23 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.002066/0.5088, allocations: 1.045 MB / 485.4 MB, free: 47.65 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004067/0.5092, allocations: 216.1 kB / 485.7 MB, free: 47.54 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003119/0.5123, allocations: 2.179 MB / 487.8 MB, free: 46.23 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.998e-06/0.5123, allocations: 15.38 kB / 487.8 MB, free: 46.23 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.354e-06/0.5123, allocations: 6.062 kB / 487.9 MB, free: 46.23 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.226e-05/0.5123, allocations: 3.984 kB / 487.9 MB, free: 46.23 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006999/0.5194, allocations: 5.158 MB / 493 MB, free: 41.93 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.264e-06/0.5194, allocations: 0 / 493 MB, free: 41.93 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008829/0.5203, allocations: 231.6 kB / 493.2 MB, free: 41.7 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006004/0.5209, allocations: 275.2 kB / 493.5 MB, free: 41.43 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.466e-05/0.521, allocations: 35.98 kB / 493.5 MB, free: 41.39 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005247/0.5262, allocations: 7.794 MB / 0.4896 GB, free: 33.06 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.5263, allocations: 0 / 0.4896 GB, free: 33.06 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004706/0.531, allocations: 3.183 MB / 0.4927 GB, free: 29.79 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001175/0.5322, allocations: 458.3 kB / 0.4931 GB, free: 29.32 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002744/0.5324, allocations: 33.69 kB / 0.4932 GB, free: 29.29 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009459/0.5334, allocations: 67.92 kB / 0.4932 GB, free: 29.23 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002158/0.5336, allocations: 96.81 kB / 0.4933 GB, free: 29.13 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.035e-05/0.5337, allocations: 35.98 kB / 0.4934 GB, free: 29.1 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001826/0.5355, allocations: 1.431 MB / 0.4948 GB, free: 27.65 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5356, allocations: 0 / 0.4948 GB, free: 27.65 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00216/0.5377, allocations: 0.5568 MB / 0.4953 GB, free: 27.09 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.0003374/0.5381, allocations: 157.7 kB / 0.4954 GB, free: 26.93 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002728/0.5408, allocations: 2.106 MB / 0.4975 GB, free: 24.78 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/0.5408, allocations: 0.9375 kB / 0.4975 GB, free: 24.78 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001579/0.5424, allocations: 1.38 MB / 0.4989 GB, free: 23.36 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002567/0.545, allocations: 0.5669 MB / 0.4994 GB, free: 22.8 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009488/0.5545, allocations: 6.041 MB / 0.5053 GB, free: 16.71 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001691/0.5562, allocations: 2.424 MB / 0.5077 GB, free: 14.26 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00161/0.5578, allocations: 494.5 kB / 0.5081 GB, free: 13.78 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003808/0.5582, allocations: 155.4 kB / 0.5083 GB, free: 13.62 MB / 382.1 MB Notification: Performance of SimCode: time 4.51e-07/0.5582, allocations: 0 / 0.5083 GB, free: 13.62 MB / 382.1 MB Notification: Performance of Templates: time 0.04889/0.6071, allocations: 27.13 MB / 0.5348 GB, free: 2.508 MB / 398.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe 2>&1)