Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.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.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001689/0.001689, allocations: 113.9 kB / 17.06 MB, free: 5.977 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.00184/0.00184, allocations: 198.9 kB / 18.01 MB, free: 5.059 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.551/1.551, allocations: 205.1 MB / 223.9 MB, free: 12.24 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.001364/0.001364, allocations: 55.92 kB / 327.9 MB, free: 3.27 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1131/0.1144, allocations: 46.62 MB / 374.5 MB, free: 4.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource): time 0.2463/0.3608, allocations: 11.6 MB / 386.1 MB, free: 6.809 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009268/0.3701, allocations: 3.961 MB / 390.1 MB, free: 4.293 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003039/0.3732, allocations: 65.56 kB / 390.1 MB, free: 4.273 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003145/0.3764, allocations: 0.8627 MB / 391 MB, free: 3.797 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004748/0.3811, allocations: 0.9486 MB / 391.9 MB, free: 3.191 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002176/0.3833, allocations: 0.5177 MB / 392.4 MB, free: 2.867 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006523/0.3899, allocations: 3.306 MB / 395.8 MB, free: 1.211 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006335/0.3962, allocations: 2.978 MB / 398.7 MB, free: 15.96 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004565/0.4008, allocations: 1.54 MB / 400.3 MB, free: 15.2 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005315/0.4062, allocations: 1.97 MB / 402.2 MB, free: 14.28 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002677/0.4089, allocations: 422.2 kB / 402.7 MB, free: 14.28 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003858/0.4127, allocations: 0.5249 MB / 403.2 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002997/0.4158, allocations: 1.221 MB / 404.4 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005846/0.4216, allocations: 1.877 MB / 406.3 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01001/0.4317, allocations: 5.521 MB / 411.8 MB, free: 8.336 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.947e-06/0.4317, allocations: 0.9688 kB / 411.8 MB, free: 8.336 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.917e-06/0.4317, allocations: 4 kB / 411.8 MB, free: 8.332 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002841/0.432, allocations: 3.938 kB / 411.8 MB, free: 8.328 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 745 * Number of variables: 745 Notification: Performance of Generate backend data structure: time 0.01403/0.446, allocations: 3.801 MB / 415.6 MB, free: 5.73 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.469e-05/0.4461, allocations: 13.58 kB / 415.6 MB, free: 5.727 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002177/0.4483, allocations: 396.7 kB / 416 MB, free: 5.531 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004973/0.4533, allocations: 1.949 MB / 418 MB, free: 3.984 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001653/0.4535, allocations: 210.2 kB / 418.2 MB, free: 3.777 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005669/0.4541, allocations: 291.8 kB / 418.4 MB, free: 3.492 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00671/0.4608, allocations: 3.697 MB / 422.1 MB, free: 15.72 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.182e-05/0.4609, allocations: 11.84 kB / 422.2 MB, free: 15.71 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002807/0.4612, allocations: 112 kB / 422.3 MB, free: 15.6 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001449/0.4613, allocations: 145.5 kB / 422.4 MB, free: 15.46 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005167/0.4665, allocations: 3.11 MB / 425.5 MB, free: 12.34 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01954/0.486, allocations: 11.5 MB / 437 MB, free: 0.5 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00252/0.4886, allocations: 1.917 MB / 438.9 MB, free: 14.46 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001756/0.4904, allocations: 1.064 MB / 440 MB, free: 13.4 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003321/0.4907, allocations: 211.2 kB / 440.2 MB, free: 13.16 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.577e-05/0.4908, allocations: 44.41 kB / 440.2 MB, free: 13.1 MB / 366.1 MB Notification: Performance of pre-optimization done (n=125): time 5.18e-06/0.4908, allocations: 3.984 kB / 440.3 MB, free: 13.1 MB / 366.1 MB Notification: Performance of matching and sorting (n=140): time 0.01315/0.504, allocations: 6.524 MB / 446.8 MB, free: 6.441 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.267e-05/0.5041, allocations: 68.72 kB / 446.8 MB, free: 6.363 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003199/0.5073, allocations: 2.006 MB / 448.8 MB, free: 4.316 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000128/0.5074, allocations: 45.7 kB / 448.9 MB, free: 4.266 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00124/0.5087, allocations: 1.405 MB / 450.3 MB, free: 2.844 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000502/0.5092, allocations: 489 kB / 450.8 MB, free: 2.359 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005204/0.5097, allocations: 331.2 kB / 451.1 MB, free: 2.027 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001099/0.5098, allocations: 305.1 kB / 451.4 MB, free: 1.727 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001284/0.5111, allocations: 0.8159 MB / 452.2 MB, free: 0.9102 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001667/0.5128, allocations: 1.379 MB / 453.6 MB, free: 15.28 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003012/0.5158, allocations: 2.364 MB / 456 MB, free: 12.67 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.998e-06/0.5159, allocations: 8 kB / 456 MB, free: 12.66 MB / 382.1 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.004845/0.5207, allocations: 2.854 MB / 458.8 MB, free: 9.77 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.954e-05/0.5208, allocations: 12 kB / 458.8 MB, free: 9.758 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.787e-05/0.5208, allocations: 16 kB / 458.8 MB, free: 9.742 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009582/0.5218, allocations: 397.1 kB / 459.2 MB, free: 9.344 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001506/0.5233, allocations: 427.3 kB / 459.6 MB, free: 8.926 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006371/0.5297, allocations: 6.706 MB / 466.4 MB, free: 1.805 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002079/0.5318, allocations: 123.8 kB / 466.5 MB, free: 1.684 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001538/0.5319, allocations: 76 kB / 466.6 MB, free: 1.609 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 80 * 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 (210): * Single equations (assignments): 206 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * 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): 3 systems {(2,9,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001964/0.5339, allocations: 0.9155 MB / 467.5 MB, free: 0.6836 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006187/0.5345, allocations: 213.3 kB / 467.7 MB, free: 484 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00412/0.5387, allocations: 2.417 MB / 470.1 MB, free: 14.02 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.511e-05/0.5387, allocations: 20 kB / 470.1 MB, free: 14 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.19e-05/0.5387, allocations: 11.94 kB / 470.1 MB, free: 13.98 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.608e-05/0.5387, allocations: 7.969 kB / 470.1 MB, free: 13.98 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01008/0.5488, allocations: 5.505 MB / 475.6 MB, free: 8.316 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.114e-05/0.5489, allocations: 4 kB / 475.6 MB, free: 8.312 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001135/0.55, allocations: 255.6 kB / 475.9 MB, free: 8.062 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001059/0.5511, allocations: 403.2 kB / 476.3 MB, free: 7.656 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001018/0.5512, allocations: 35.98 kB / 476.3 MB, free: 7.621 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008658/0.5599, allocations: 8.266 MB / 484.6 MB, free: 14.8 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.475e-06/0.5599, allocations: 8.125 kB / 484.6 MB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005898/0.5658, allocations: 3.603 MB / 488.2 MB, free: 11.08 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001473/0.5673, allocations: 462.4 kB / 488.6 MB, free: 10.61 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002685/0.5676, allocations: 39.98 kB / 488.7 MB, free: 10.57 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001056/0.5686, allocations: 87.89 kB / 488.8 MB, free: 10.48 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000229/0.5689, allocations: 109 kB / 488.9 MB, free: 10.38 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.828e-05/0.569, allocations: 47.98 kB / 488.9 MB, free: 10.33 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002321/0.5713, allocations: 1.357 MB / 490.3 MB, free: 8.949 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5713, allocations: 0 / 490.3 MB, free: 8.949 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002373/0.5737, allocations: 0.5312 MB / 490.8 MB, free: 8.418 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 6 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],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 (129): * Single equations (assignments): 125 * 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 {(2,9,100.0%), (1,1,100.0%), (1,6,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004457/0.5741, allocations: 203.6 kB / 491 MB, free: 8.211 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003718/0.5779, allocations: 2.499 MB / 493.5 MB, free: 5.652 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.589e-06/0.5779, allocations: 0 / 493.5 MB, free: 5.652 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001918/0.5798, allocations: 1.488 MB / 495 MB, free: 4.117 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002496/0.5823, allocations: 0.5354 MB / 495.5 MB, free: 3.578 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01057/0.5929, allocations: 5.68 MB / 0.4895 GB, free: 13.82 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002119/0.5951, allocations: 2.193 MB / 0.4916 GB, free: 11.59 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001742/0.5968, allocations: 0.498 MB / 0.4921 GB, free: 11.09 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004661/0.5973, allocations: 155.3 kB / 0.4922 GB, free: 10.94 MB / 430.1 MB Notification: Performance of SimCode: time 1.703e-06/0.5973, allocations: 0 / 0.4922 GB, free: 10.94 MB / 430.1 MB Notification: Performance of Templates: time 0.06062/0.6579, allocations: 30.58 MB / 0.5221 GB, free: 12.29 MB / 462.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.sim & ./Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe 2>&1)