Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.001206/0.001206, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.009117/0.009117, allocations: 170.4 kB / 16.27 MB, free: 6.648 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.65/1.65, allocations: 205.4 MB / 222.4 MB, free: 5.566 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.000521/0.000521, allocations: 8 kB / 279.5 MB, free: 12.5 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3527/0.3532, allocations: 47.59 MB / 327 MB, free: 1.41 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource): time 0.0127/0.3659, allocations: 10.92 MB / 338 MB, free: 8.406 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.008772/0.3748, allocations: 3.861 MB / 341.8 MB, free: 4.531 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002312/0.3771, allocations: 59.69 kB / 341.9 MB, free: 4.473 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002442/0.3796, allocations: 0.7573 MB / 342.6 MB, free: 3.711 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00389/0.3835, allocations: 0.8549 MB / 343.5 MB, free: 2.852 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001377/0.3849, allocations: 467.5 kB / 344 MB, free: 2.395 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.005044/0.3899, allocations: 3.602 MB / 347.6 MB, free: 14.77 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003392/0.3934, allocations: 2.494 MB / 350 MB, free: 12.23 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002204/0.3956, allocations: 1.132 MB / 351.2 MB, free: 11.09 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002482/0.3981, allocations: 1.63 MB / 352.8 MB, free: 9.453 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000357/0.3984, allocations: 168 kB / 353 MB, free: 9.289 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007879/0.3992, allocations: 291.7 kB / 353.3 MB, free: 9.008 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008804/0.4001, allocations: 0.911 MB / 354.2 MB, free: 8.094 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001693/0.4018, allocations: 1.56 MB / 355.7 MB, free: 6.52 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005686/0.4075, allocations: 5.134 MB / 360.9 MB, free: 1.367 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.414e-06/0.4076, allocations: 0 / 360.9 MB, free: 1.367 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.4076, allocations: 3.938 kB / 360.9 MB, free: 1.363 MB / 286.1 MB Notification: Performance of Transformations before backend: time 0.0001389/0.4077, allocations: 4 kB / 360.9 MB, free: 1.359 MB / 286.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.006888/0.4146, allocations: 3.182 MB / 364.1 MB, free: 14.11 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.989e-05/0.4147, allocations: 8.031 kB / 364.1 MB, free: 14.1 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001184/0.4159, allocations: 392.6 kB / 364.4 MB, free: 13.71 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003411/0.4193, allocations: 1.939 MB / 366.4 MB, free: 11.72 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001978/0.4195, allocations: 225.9 kB / 366.6 MB, free: 11.5 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004425/0.42, allocations: 283.9 kB / 366.9 MB, free: 11.22 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007057/0.4271, allocations: 3.705 MB / 370.6 MB, free: 7.445 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.205e-05/0.4272, allocations: 4 kB / 370.6 MB, free: 7.441 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002611/0.4274, allocations: 112 kB / 370.7 MB, free: 7.332 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000161/0.4276, allocations: 149.5 kB / 370.8 MB, free: 7.184 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006002/0.4336, allocations: 3.106 MB / 373.9 MB, free: 4.066 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02075/0.4544, allocations: 11.7 MB / 385.6 MB, free: 8.027 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00249/0.4569, allocations: 1.913 MB / 387.6 MB, free: 6 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001757/0.4587, allocations: 1.088 MB / 388.6 MB, free: 4.91 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003193/0.459, allocations: 207.2 kB / 388.8 MB, free: 4.668 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.755e-05/0.4591, allocations: 51.5 kB / 388.9 MB, free: 4.609 MB / 318.1 MB Notification: Performance of pre-optimization done (n=125): time 3.626e-06/0.4591, allocations: 0 / 388.9 MB, free: 4.609 MB / 318.1 MB Notification: Performance of matching and sorting (n=140): time 0.01356/0.4727, allocations: 6.558 MB / 395.5 MB, free: 13.91 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.741e-05/0.4728, allocations: 64.72 kB / 395.5 MB, free: 13.84 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003214/0.476, allocations: 1.994 MB / 397.5 MB, free: 11.8 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001162/0.4761, allocations: 53.7 kB / 397.6 MB, free: 11.74 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001056/0.4772, allocations: 1.408 MB / 399 MB, free: 10.32 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004082/0.4776, allocations: 488.9 kB / 399.5 MB, free: 9.832 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002176/0.4778, allocations: 145.6 kB / 399.6 MB, free: 9.684 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001269/0.478, allocations: 309.1 kB / 399.9 MB, free: 9.379 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001344/0.4793, allocations: 0.8199 MB / 400.7 MB, free: 8.559 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001664/0.481, allocations: 1.383 MB / 402.1 MB, free: 6.934 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003201/0.4842, allocations: 2.361 MB / 404.5 MB, free: 4.328 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.166e-05/0.4842, allocations: 8 kB / 404.5 MB, free: 4.32 MB / 334.1 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.004825/0.4891, allocations: 2.854 MB / 407.3 MB, free: 1.426 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.133e-05/0.4891, allocations: 19.92 kB / 407.3 MB, free: 1.406 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.526e-05/0.4892, allocations: 16 kB / 407.4 MB, free: 1.391 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008975/0.4901, allocations: 383.5 kB / 407.7 MB, free: 1.004 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001478/0.4915, allocations: 435.3 kB / 408.2 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005913/0.4975, allocations: 6.17 MB / 414.3 MB, free: 10 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001873/0.4994, allocations: 127.8 kB / 414.5 MB, free: 9.879 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001622/0.4995, allocations: 72 kB / 414.5 MB, free: 9.809 MB / 350.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.001852/0.5014, allocations: 0.9197 MB / 415.4 MB, free: 8.879 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004803/0.5019, allocations: 201.5 kB / 415.6 MB, free: 8.68 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004061/0.506, allocations: 2.432 MB / 418.1 MB, free: 6.203 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.205e-05/0.506, allocations: 12 kB / 418.1 MB, free: 6.191 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.045e-05/0.506, allocations: 4 kB / 418.1 MB, free: 6.188 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.608e-05/0.506, allocations: 7.969 kB / 418.1 MB, free: 6.18 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009388/0.5154, allocations: 5.544 MB / 423.6 MB, free: 496 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.748e-06/0.5155, allocations: 7.938 kB / 423.6 MB, free: 488 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001071/0.5165, allocations: 255.6 kB / 423.9 MB, free: 232 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001001/0.5176, allocations: 395.3 kB / 424.3 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.682e-05/0.5177, allocations: 35.98 kB / 424.3 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006991/0.5247, allocations: 7.583 MB / 431.9 MB, free: 7.676 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.682e-06/0.5247, allocations: 7.938 kB / 431.9 MB, free: 7.668 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006065/0.5308, allocations: 3.625 MB / 435.5 MB, free: 3.938 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001197/0.532, allocations: 482.3 kB / 436 MB, free: 3.445 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002939/0.5323, allocations: 35.94 kB / 436 MB, free: 3.41 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001016/0.5333, allocations: 91.89 kB / 436.1 MB, free: 3.32 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002387/0.5336, allocations: 105 kB / 436.2 MB, free: 3.219 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.378e-05/0.5337, allocations: 47.98 kB / 436.3 MB, free: 3.172 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00223/0.5359, allocations: 1.357 MB / 437.6 MB, free: 1.793 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.5359, allocations: 0 / 437.6 MB, free: 1.793 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002126/0.5381, allocations: 0.5391 MB / 438.2 MB, free: 1.254 MB / 366.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.0004623/0.5385, allocations: 190.9 kB / 438.4 MB, free: 1.055 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004146/0.5427, allocations: 2.496 MB / 440.9 MB, free: 14.5 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.927e-06/0.5427, allocations: 0 / 440.9 MB, free: 14.5 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002126/0.5448, allocations: 1.495 MB / 442.4 MB, free: 12.96 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003742/0.5486, allocations: 0.507 MB / 442.9 MB, free: 12.45 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01064/0.5593, allocations: 7.088 MB / 449.9 MB, free: 5.277 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00202/0.5613, allocations: 2.197 MB / 452.1 MB, free: 3.047 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001971/0.5633, allocations: 0.5056 MB / 452.6 MB, free: 2.539 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004398/0.5638, allocations: 151.4 kB / 452.8 MB, free: 2.391 MB / 382.1 MB Notification: Performance of SimCode: time 1.192e-06/0.5638, allocations: 0 / 452.8 MB, free: 2.391 MB / 382.1 MB Notification: Performance of Templates: time 0.2649/0.8287, allocations: 28.02 MB / 480.8 MB, free: 92.95 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.sim & ./Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe 2>&1)