Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_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.1_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.1_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.0113/0.0113, allocations: 101.7 kB / 15.73 MB, free: 5.59 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.002306/0.002306, allocations: 191.7 kB / 16.67 MB, free: 5.523 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.527/1.527, 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.001474/0.001474, allocations: 59.92 kB / 326.6 MB, free: 3.281 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1482/0.1497, allocations: 46.61 MB / 373.2 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource): time 0.3902/0.54, allocations: 11.61 MB / 384.8 MB, free: 6.82 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01345/0.5536, allocations: 3.955 MB / 388.7 MB, free: 4.316 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005744/0.5594, allocations: 64 kB / 388.8 MB, free: 4.297 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004909/0.5644, allocations: 0.9239 MB / 389.7 MB, free: 3.773 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00775/0.5722, allocations: 0.9923 MB / 390.7 MB, free: 3.137 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00304/0.5753, allocations: 0.5253 MB / 391.2 MB, free: 2.805 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01092/0.5862, allocations: 3.302 MB / 394.5 MB, free: 1.152 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009059/0.5954, allocations: 2.983 MB / 397.5 MB, free: 15.89 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00617/0.6016, allocations: 1.538 MB / 399.1 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00802/0.6097, allocations: 1.974 MB / 401 MB, free: 14.21 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003545/0.6133, allocations: 422.6 kB / 401.4 MB, free: 14.21 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005794/0.6191, allocations: 0.5204 MB / 402 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005034/0.6243, allocations: 1.225 MB / 403.2 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01078/0.6351, allocations: 1.876 MB / 405.1 MB, free: 12.27 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01809/0.6532, allocations: 5.518 MB / 410.6 MB, free: 8.262 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.911e-05/0.6533, allocations: 4 kB / 410.6 MB, free: 8.258 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.526e-06/0.6534, allocations: 0 / 410.6 MB, free: 8.258 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0004654/0.6538, allocations: 0 / 410.6 MB, free: 8.258 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.02327/0.6771, allocations: 3.81 MB / 414.4 MB, free: 5.652 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.96e-05/0.6772, allocations: 16.11 kB / 414.4 MB, free: 5.645 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004189/0.6814, allocations: 395.9 kB / 414.8 MB, free: 5.449 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008878/0.6904, allocations: 1.946 MB / 416.7 MB, free: 3.887 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004442/0.6909, allocations: 214.2 kB / 417 MB, free: 3.676 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002024/0.693, allocations: 283.8 kB / 417.2 MB, free: 3.398 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01742/0.7104, allocations: 3.701 MB / 420.9 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002815/0.7108, allocations: 11.91 kB / 420.9 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001551/0.7124, allocations: 112 kB / 421.1 MB, free: 15.5 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002951/0.7127, allocations: 141.5 kB / 421.2 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01188/0.7246, allocations: 3.109 MB / 424.3 MB, free: 12.24 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03923/0.7639, allocations: 11.5 MB / 435.8 MB, free: 408 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003727/0.7677, allocations: 1.912 MB / 437.7 MB, free: 14.37 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002378/0.7702, allocations: 1.072 MB / 438.8 MB, free: 13.29 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000466/0.7707, allocations: 211.2 kB / 439 MB, free: 13.05 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.026e-05/0.7708, allocations: 44.03 kB / 439 MB, free: 13 MB / 366.1 MB Notification: Performance of pre-optimization done (n=125): time 7.023e-06/0.7708, allocations: 0.75 kB / 439 MB, free: 13 MB / 366.1 MB Notification: Performance of matching and sorting (n=140): time 0.01766/0.7885, allocations: 6.527 MB / 445.6 MB, free: 6.336 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.916e-05/0.7886, allocations: 64.72 kB / 445.6 MB, free: 6.262 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006177/0.7948, allocations: 1.994 MB / 447.6 MB, free: 4.227 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003292/0.7951, allocations: 49.7 kB / 447.7 MB, free: 4.172 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001792/0.7969, allocations: 1.416 MB / 449.1 MB, free: 2.738 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009769/0.7979, allocations: 485 kB / 449.6 MB, free: 2.258 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009985/0.799, allocations: 327.2 kB / 449.9 MB, free: 1.93 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002014/0.7992, allocations: 305.1 kB / 450.2 MB, free: 1.629 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001918/0.8011, allocations: 0.8199 MB / 451 MB, free: 0.8086 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002216/0.8034, allocations: 1.379 MB / 452.4 MB, free: 15.18 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004108/0.8075, allocations: 2.368 MB / 454.7 MB, free: 12.56 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.363e-05/0.8076, allocations: 8 kB / 454.8 MB, free: 12.55 MB / 382.1 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.006169/0.8137, allocations: 2.854 MB / 457.6 MB, free: 9.66 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.689e-05/0.8138, allocations: 12.44 kB / 457.6 MB, free: 9.648 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.148e-05/0.8139, allocations: 20 kB / 457.6 MB, free: 9.629 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001022/0.8149, allocations: 383.2 kB / 458 MB, free: 9.242 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001613/0.8165, allocations: 435.3 kB / 458.4 MB, free: 8.816 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007016/0.8236, allocations: 6.702 MB / 465.1 MB, free: 1.703 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002157/0.8257, allocations: 123.8 kB / 465.3 MB, free: 1.582 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000265/0.826, allocations: 83.98 kB / 465.3 MB, free: 1.5 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.002156/0.8282, allocations: 0.9077 MB / 466.3 MB, free: 0.582 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007033/0.8289, allocations: 217.3 kB / 466.5 MB, free: 376 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004601/0.8335, allocations: 2.421 MB / 468.9 MB, free: 13.91 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.468e-05/0.8335, allocations: 12 kB / 468.9 MB, free: 13.89 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.414e-05/0.8336, allocations: 11.94 kB / 468.9 MB, free: 13.88 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.59e-05/0.8336, allocations: 3.984 kB / 468.9 MB, free: 13.88 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01173/0.8453, allocations: 5.508 MB / 474.4 MB, free: 8.215 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.34e-05/0.8454, allocations: 8.516 kB / 474.4 MB, free: 8.207 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001098/0.8465, allocations: 259.6 kB / 474.7 MB, free: 7.953 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001009/0.8475, allocations: 407.5 kB / 475.1 MB, free: 7.543 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.723e-05/0.8476, allocations: 39.98 kB / 475.1 MB, free: 7.504 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007548/0.8552, allocations: 8.247 MB / 483.4 MB, free: 14.7 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.289e-06/0.8552, allocations: 4.188 kB / 483.4 MB, free: 14.7 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006053/0.8613, allocations: 3.607 MB / 487 MB, free: 10.98 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00163/0.8629, allocations: 466.4 kB / 487.4 MB, free: 10.51 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008377/0.8638, allocations: 35.94 kB / 487.5 MB, free: 10.47 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001619/0.8654, allocations: 91.89 kB / 487.6 MB, free: 10.38 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002707/0.8657, allocations: 105 kB / 487.7 MB, free: 10.28 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001037/0.8658, allocations: 43.98 kB / 487.7 MB, free: 10.23 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003078/0.8689, allocations: 1.357 MB / 489.1 MB, free: 8.855 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.8689, allocations: 4 kB / 489.1 MB, free: 8.852 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003023/0.8719, allocations: 0.5352 MB / 489.6 MB, free: 8.316 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.0004817/0.8724, allocations: 198.2 kB / 489.8 MB, free: 8.117 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003972/0.8764, allocations: 2.508 MB / 492.3 MB, free: 5.551 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.714e-06/0.8765, allocations: 4.062 kB / 492.3 MB, free: 5.547 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002068/0.8785, allocations: 1.491 MB / 493.8 MB, free: 4.008 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003133/0.8817, allocations: 0.5307 MB / 494.3 MB, free: 3.473 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01077/0.8925, allocations: 5.653 MB / 500 MB, free: 13.73 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002059/0.8946, allocations: 2.209 MB / 0.4904 GB, free: 11.49 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001811/0.8964, allocations: 0.4941 MB / 0.4909 GB, free: 11 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004329/0.8968, allocations: 155.3 kB / 0.491 GB, free: 10.84 MB / 430.1 MB Notification: Performance of SimCode: time 1.132e-06/0.8968, allocations: 0 / 0.491 GB, free: 10.84 MB / 430.1 MB Notification: Performance of Templates: time 0.06474/0.9616, allocations: 30.11 MB / 0.5205 GB, free: 12.68 MB / 462.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.makefile (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe 2>&1)