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.007391/0.007391, allocations: 101 kB / 15.73 MB, free: 6.051 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.001602/0.001602, allocations: 192.2 kB / 16.67 MB, free: 5.98 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.389/1.389, allocations: 205.1 MB / 222.6 MB, free: 4.531 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.001227/0.001227, allocations: 50.42 kB / 326.6 MB, free: 14.32 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09062/0.09186, allocations: 46.62 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.01725/0.1092, allocations: 15.83 MB / 389 MB, free: 1.391 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01281/0.122, allocations: 5.393 MB / 394.4 MB, free: 11.98 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00429/0.1264, allocations: 95.56 kB / 394.5 MB, free: 11.89 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004374/0.1308, allocations: 1.161 MB / 395.7 MB, free: 10.72 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005839/0.1367, allocations: 1.39 MB / 397.1 MB, free: 9.32 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00343/0.1401, allocations: 0.9742 MB / 398 MB, free: 8.344 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005828/0.146, allocations: 3.975 MB / 402 MB, free: 4.355 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005209/0.1512, allocations: 3.552 MB / 405.6 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003039/0.1543, allocations: 1.892 MB / 407.4 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003725/0.158, allocations: 2.273 MB / 409.7 MB, free: 12.55 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001272/0.1593, allocations: 0.5156 MB / 410.2 MB, free: 12.04 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002242/0.1616, allocations: 0.7341 MB / 411 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001756/0.1633, allocations: 1.282 MB / 412.3 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003286/0.1666, allocations: 2.252 MB / 414.5 MB, free: 7.758 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007228/0.1739, allocations: 6.897 MB / 421.4 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.424e-06/0.1739, allocations: 0 / 421.4 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.1739, allocations: 0 / 421.4 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001715/0.1741, allocations: 0 / 421.4 MB, free: 0.8398 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.01361/0.1877, allocations: 4.661 MB / 426.1 MB, free: 12.11 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.784e-05/0.1878, allocations: 19.89 kB / 426.1 MB, free: 12.09 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003547/0.1914, allocations: 0.6675 MB / 426.8 MB, free: 11.41 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005324/0.1967, allocations: 2.377 MB / 429.1 MB, free: 8.984 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002231/0.197, allocations: 259.3 kB / 429.4 MB, free: 8.73 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00105/0.198, allocations: 348 kB / 429.7 MB, free: 8.391 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008889/0.2069, allocations: 4.464 MB / 434.2 MB, free: 3.871 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.72e-05/0.2071, allocations: 4 kB / 434.2 MB, free: 3.867 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003027/0.2074, allocations: 136 kB / 434.3 MB, free: 3.734 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001475/0.2075, allocations: 162.8 kB / 434.5 MB, free: 3.574 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00798/0.2155, allocations: 3.735 MB / 438.2 MB, free: 15.83 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03436/0.2499, allocations: 14.32 MB / 452.5 MB, free: 1.086 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2374/0.4874, allocations: 5.359 MB / 457.9 MB, free: 62.17 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002541/0.49, allocations: 1.257 MB / 459.2 MB, free: 62.16 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007387/0.4974, allocations: 3.787 MB / 462.9 MB, free: 60.88 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.917e-05/0.4974, allocations: 51.5 kB / 463 MB, free: 60.83 MB / 382.1 MB Notification: Performance of pre-optimization done (n=127): time 3.267e-06/0.4975, allocations: 1.312 kB / 463 MB, free: 60.83 MB / 382.1 MB Notification: Performance of matching and sorting (n=131): time 0.01059/0.5081, allocations: 5.462 MB / 468.5 MB, free: 58.1 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.297e-05/0.5081, allocations: 67.81 kB / 468.5 MB, free: 58.04 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003447/0.5116, allocations: 2.108 MB / 470.6 MB, free: 57.21 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001476/0.5117, allocations: 46.67 kB / 470.7 MB, free: 57.16 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001135/0.5129, allocations: 1.654 MB / 472.3 MB, free: 55.9 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004291/0.5133, allocations: 465.3 kB / 472.8 MB, free: 55.55 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005027/0.5138, allocations: 333.7 kB / 473.1 MB, free: 55.38 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.741e-05/0.5139, allocations: 304.9 kB / 473.4 MB, free: 55.09 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001209/0.5151, allocations: 0.7166 MB / 474.1 MB, free: 54.82 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001427/0.5166, allocations: 1.349 MB / 475.5 MB, free: 53.75 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002317/0.5189, allocations: 2.231 MB / 477.7 MB, free: 52.23 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.154e-05/0.5189, allocations: 5.219 kB / 477.7 MB, free: 52.23 MB / 382.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.003771/0.5227, allocations: 2.524 MB / 480.2 MB, free: 51.1 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.984e-05/0.5227, allocations: 13.66 kB / 480.2 MB, free: 51.1 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.752e-05/0.5228, allocations: 22.56 kB / 480.3 MB, free: 51.1 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00037/0.5231, allocations: 135 kB / 480.4 MB, free: 51.05 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001548/0.5247, allocations: 467.7 kB / 480.9 MB, free: 51 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002096/0.5268, allocations: 3.356 MB / 484.2 MB, free: 47.82 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001777/0.5286, allocations: 108.7 kB / 484.3 MB, free: 47.79 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000135/0.5288, allocations: 89.03 kB / 484.4 MB, free: 47.77 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.001901/0.5307, allocations: 1.046 MB / 485.4 MB, free: 47.2 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004403/0.5311, allocations: 211.8 kB / 485.7 MB, free: 47.08 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003134/0.5343, allocations: 2.18 MB / 487.8 MB, free: 45.78 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.508e-06/0.5343, allocations: 13.78 kB / 487.8 MB, free: 45.78 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.224e-06/0.5343, allocations: 7.219 kB / 487.9 MB, free: 45.77 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.362e-05/0.5343, allocations: 10.69 kB / 487.9 MB, free: 45.77 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006741/0.5411, allocations: 5.154 MB / 493 MB, free: 41.48 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.168e-06/0.5411, allocations: 4.812 kB / 493 MB, free: 41.48 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000919/0.542, allocations: 224 kB / 493.2 MB, free: 41.26 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006047/0.5426, allocations: 271.2 kB / 493.5 MB, free: 40.98 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.547e-05/0.5427, allocations: 31.98 kB / 493.5 MB, free: 40.95 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004954/0.5477, allocations: 7.807 MB / 0.4896 GB, free: 32.61 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.676e-06/0.5477, allocations: 7.938 kB / 0.4896 GB, free: 32.61 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004367/0.5521, allocations: 3.171 MB / 0.4927 GB, free: 29.34 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001201/0.5533, allocations: 460.5 kB / 0.4931 GB, free: 28.88 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002793/0.5536, allocations: 27.94 kB / 0.4932 GB, free: 28.85 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009645/0.5546, allocations: 72.77 kB / 0.4932 GB, free: 28.78 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002015/0.5548, allocations: 100.8 kB / 0.4933 GB, free: 28.68 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.518e-05/0.5549, allocations: 36 kB / 0.4934 GB, free: 28.64 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00184/0.5567, allocations: 1.427 MB / 0.4948 GB, free: 27.2 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5567, allocations: 0 / 0.4948 GB, free: 27.2 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002443/0.5592, allocations: 0.5586 MB / 0.4953 GB, free: 26.64 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.0003492/0.5595, allocations: 166.9 kB / 0.4955 GB, free: 26.48 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002757/0.5623, allocations: 2.098 MB / 0.4975 GB, free: 24.33 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.901e-06/0.5623, allocations: 6 kB / 0.4975 GB, free: 24.33 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001586/0.5639, allocations: 1.377 MB / 0.4989 GB, free: 22.91 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002635/0.5666, allocations: 0.5632 MB / 0.4994 GB, free: 22.36 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009656/0.5762, allocations: 6.053 MB / 0.5053 GB, free: 16.26 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001769/0.578, allocations: 2.413 MB / 0.5077 GB, free: 13.82 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001619/0.5797, allocations: 0.4907 MB / 0.5082 GB, free: 13.32 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003857/0.5801, allocations: 155.4 kB / 0.5083 GB, free: 13.17 MB / 382.1 MB Notification: Performance of SimCode: time 1.252e-06/0.5801, allocations: 0 / 0.5083 GB, free: 13.17 MB / 382.1 MB Notification: Performance of Templates: time 0.04483/0.6249, allocations: 27.13 MB / 0.5348 GB, free: 2.055 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)