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.0069/0.0069, allocations: 97.59 kB / 15.73 MB, free: 6.059 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.001622/0.001622, allocations: 192 kB / 16.67 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.407/1.407, allocations: 205.1 MB / 222.5 MB, free: 12.23 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.001171/0.001171, allocations: 51.92 kB / 326.6 MB, free: 3.262 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09273/0.09391, allocations: 46.62 MB / 373.2 MB, free: 4.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource): time 0.2473/0.3412, allocations: 15.83 MB / 389 MB, free: 4.023 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01361/0.3549, allocations: 5.393 MB / 394.4 MB, free: 216 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005284/0.3603, allocations: 92.22 kB / 394.5 MB, free: 192 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004989/0.3653, allocations: 1.12 MB / 395.6 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006704/0.3721, allocations: 1.346 MB / 397 MB, free: 14.69 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003536/0.3756, allocations: 0.9716 MB / 397.9 MB, free: 14.07 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.008594/0.3842, allocations: 3.967 MB / 401.9 MB, free: 12.03 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006467/0.3907, allocations: 3.556 MB / 405.5 MB, free: 10.5 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004719/0.3955, allocations: 1.872 MB / 407.3 MB, free: 9.562 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005336/0.4009, allocations: 2.275 MB / 409.6 MB, free: 8.246 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001782/0.4027, allocations: 0.5194 MB / 410.1 MB, free: 8.242 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003067/0.4058, allocations: 0.7439 MB / 410.9 MB, free: 8.125 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001401/0.4072, allocations: 1.28 MB / 412.1 MB, free: 7.125 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003966/0.4111, allocations: 2.245 MB / 414.4 MB, free: 5.465 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009764/0.4209, allocations: 6.888 MB / 421.3 MB, free: 15.45 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.421, allocations: 0 / 421.3 MB, free: 15.45 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.572e-06/0.421, allocations: 3.938 kB / 421.3 MB, free: 15.45 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.000193/0.4212, allocations: 4 kB / 421.3 MB, free: 15.44 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.0134/0.4346, allocations: 4.662 MB / 425.9 MB, free: 10.71 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.905e-05/0.4346, allocations: 15.83 kB / 426 MB, free: 10.7 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003005/0.4377, allocations: 0.6753 MB / 426.6 MB, free: 10.02 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00511/0.4428, allocations: 2.369 MB / 429 MB, free: 7.594 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001999/0.443, allocations: 259.3 kB / 429.3 MB, free: 7.34 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006201/0.4436, allocations: 344.3 kB / 429.6 MB, free: 7.004 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007967/0.4516, allocations: 4.464 MB / 434.1 MB, free: 2.484 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.953e-05/0.4517, allocations: 3.938 kB / 434.1 MB, free: 2.48 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003279/0.4521, allocations: 148 kB / 434.2 MB, free: 2.336 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000157/0.4522, allocations: 162.7 kB / 434.4 MB, free: 2.176 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006798/0.459, allocations: 3.735 MB / 438.1 MB, free: 14.43 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0254/0.4845, allocations: 14.32 MB / 452.4 MB, free: 15.69 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005924/0.4904, allocations: 5.361 MB / 457.8 MB, free: 9.625 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002149/0.4926, allocations: 1.255 MB / 459 MB, free: 8.371 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008158/0.5008, allocations: 3.785 MB / 462.8 MB, free: 4.492 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.746e-05/0.5009, allocations: 51.81 kB / 462.9 MB, free: 4.434 MB / 382.1 MB Notification: Performance of pre-optimization done (n=127): time 3.978e-06/0.5009, allocations: 0 / 462.9 MB, free: 4.434 MB / 382.1 MB Notification: Performance of matching and sorting (n=131): time 0.01257/0.5135, allocations: 5.471 MB / 468.3 MB, free: 14.79 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.383e-05/0.5136, allocations: 64.72 kB / 468.4 MB, free: 14.71 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00506/0.5187, allocations: 2.098 MB / 470.5 MB, free: 12.58 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001523/0.5189, allocations: 45.7 kB / 470.5 MB, free: 12.53 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002144/0.521, allocations: 1.661 MB / 472.2 MB, free: 10.85 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006609/0.5217, allocations: 461.4 kB / 472.7 MB, free: 10.39 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009158/0.5226, allocations: 339.2 kB / 473 MB, free: 10.05 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002073/0.5229, allocations: 309.1 kB / 473.3 MB, free: 9.746 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001638/0.5245, allocations: 0.7106 MB / 474 MB, free: 9.035 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002112/0.5266, allocations: 1.353 MB / 475.4 MB, free: 7.387 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003591/0.5303, allocations: 2.227 MB / 477.6 MB, free: 4.875 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.911e-05/0.5303, allocations: 8 kB / 477.6 MB, free: 4.867 MB / 398.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.005289/0.5356, allocations: 2.518 MB / 480.1 MB, free: 2.312 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.364e-05/0.5357, allocations: 16 kB / 480.1 MB, free: 2.297 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.817e-05/0.5357, allocations: 20 kB / 480.1 MB, free: 2.277 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004997/0.5362, allocations: 142.4 kB / 480.3 MB, free: 2.129 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00187/0.5381, allocations: 463.3 kB / 480.7 MB, free: 1.676 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003585/0.5417, allocations: 3.36 MB / 484.1 MB, free: 14.04 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002001/0.5437, allocations: 115.9 kB / 484.2 MB, free: 13.93 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001961/0.5439, allocations: 76 kB / 484.3 MB, free: 13.85 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.002991/0.5469, allocations: 1.052 MB / 485.3 MB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007146/0.5477, allocations: 217.3 kB / 485.5 MB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004459/0.5521, allocations: 2.173 MB / 487.7 MB, free: 10.34 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.368e-05/0.5522, allocations: 12 kB / 487.7 MB, free: 10.33 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.984e-05/0.5522, allocations: 4 kB / 487.7 MB, free: 10.33 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.745e-05/0.5522, allocations: 15.91 kB / 487.8 MB, free: 10.31 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01139/0.5636, allocations: 5.152 MB / 492.9 MB, free: 5.02 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.1e-05/0.5637, allocations: 4 kB / 492.9 MB, free: 5.016 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001029/0.5647, allocations: 223.9 kB / 493.1 MB, free: 4.797 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007552/0.5655, allocations: 275.2 kB / 493.4 MB, free: 4.516 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001159/0.5656, allocations: 35.92 kB / 493.4 MB, free: 4.48 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00768/0.5733, allocations: 7.802 MB / 0.4895 GB, free: 12.12 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.081e-06/0.5733, allocations: 4 kB / 0.4895 GB, free: 12.12 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005322/0.5787, allocations: 3.185 MB / 0.4926 GB, free: 8.84 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00124/0.5799, allocations: 454.4 kB / 0.493 GB, free: 8.375 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005837/0.5805, allocations: 24 kB / 0.4931 GB, free: 8.352 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001325/0.5819, allocations: 75.91 kB / 0.4931 GB, free: 8.277 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002124/0.5821, allocations: 96.75 kB / 0.4932 GB, free: 8.18 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.89e-05/0.5822, allocations: 44.23 kB / 0.4933 GB, free: 8.137 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002983/0.5852, allocations: 1.423 MB / 0.4947 GB, free: 6.695 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.5852, allocations: 0 / 0.4947 GB, free: 6.695 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002813/0.588, allocations: 0.5586 MB / 0.4952 GB, free: 6.137 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.0003829/0.5884, allocations: 171.1 kB / 0.4954 GB, free: 5.961 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003647/0.5921, allocations: 2.105 MB / 0.4974 GB, free: 3.809 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.39e-06/0.5921, allocations: 0 / 0.4974 GB, free: 3.809 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002158/0.5943, allocations: 1.377 MB / 0.4988 GB, free: 2.383 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003149/0.5974, allocations: 0.552 MB / 0.4993 GB, free: 1.828 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01146/0.6089, allocations: 6.052 MB / 0.5052 GB, free: 11.72 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002195/0.6111, allocations: 2.409 MB / 0.5076 GB, free: 9.273 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001731/0.6129, allocations: 498.5 kB / 0.508 GB, free: 8.785 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004257/0.6133, allocations: 159.4 kB / 0.5082 GB, free: 8.629 MB / 446.1 MB Notification: Performance of SimCode: time 1.914e-06/0.6133, allocations: 0 / 0.5082 GB, free: 8.629 MB / 446.1 MB Notification: Performance of Templates: time 0.05036/0.6637, allocations: 27.13 MB / 0.5347 GB, free: 13.45 MB / 478.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)