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.007706/0.007706, allocations: 101.5 kB / 15.73 MB, free: 6.039 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.001401/0.001401, allocations: 194.2 kB / 16.68 MB, free: 5.957 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.618/1.618, allocations: 205.1 MB / 222.5 MB, free: 4.523 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.001263/0.001263, allocations: 55.67 kB / 326.6 MB, free: 14.32 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1138/0.1151, allocations: 46.62 MB / 373.2 MB, free: 1.285 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource): time 0.01447/0.1296, allocations: 11.59 MB / 384.8 MB, free: 5.633 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00964/0.1393, allocations: 3.953 MB / 388.7 MB, free: 1.664 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002915/0.1423, allocations: 63.69 kB / 388.8 MB, free: 1.602 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003238/0.1456, allocations: 0.9239 MB / 389.7 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004562/0.1502, allocations: 0.9943 MB / 390.7 MB, free: 15.67 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001883/0.1521, allocations: 0.5305 MB / 391.3 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005214/0.1573, allocations: 3.298 MB / 394.5 MB, free: 11.83 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004877/0.1622, allocations: 2.977 MB / 397.5 MB, free: 8.789 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002704/0.1649, allocations: 1.538 MB / 399.1 MB, free: 7.246 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003645/0.1686, allocations: 1.969 MB / 401 MB, free: 5.27 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001264/0.1699, allocations: 424 kB / 401.4 MB, free: 4.855 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00194/0.1719, allocations: 0.5232 MB / 402 MB, free: 4.332 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001816/0.1737, allocations: 1.219 MB / 403.2 MB, free: 3.109 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003279/0.177, allocations: 1.878 MB / 405.1 MB, free: 1.223 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00575/0.1828, allocations: 5.529 MB / 410.6 MB, free: 11.68 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.223e-06/0.1828, allocations: 0 / 410.6 MB, free: 11.68 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.1828, allocations: 0 / 410.6 MB, free: 11.68 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001276/0.183, allocations: 0 / 410.6 MB, free: 11.68 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: 745 * Number of variables: 745 Notification: Performance of Generate backend data structure: time 0.01029/0.1933, allocations: 3.806 MB / 414.4 MB, free: 7.801 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.414e-05/0.1933, allocations: 11.89 kB / 414.4 MB, free: 7.789 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001113/0.1944, allocations: 392.5 kB / 414.8 MB, free: 7.402 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003444/0.1979, allocations: 1.954 MB / 416.8 MB, free: 5.395 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000168/0.1981, allocations: 206 kB / 417 MB, free: 5.191 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004295/0.1985, allocations: 295.8 kB / 417.2 MB, free: 4.902 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007036/0.2056, allocations: 3.701 MB / 420.9 MB, free: 1.129 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.537e-05/0.2057, allocations: 7.906 kB / 421 MB, free: 1.121 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002574/0.2059, allocations: 112 kB / 421.1 MB, free: 1.012 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000147/0.2061, allocations: 141.5 kB / 421.2 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005575/0.2117, allocations: 3.102 MB / 424.3 MB, free: 13.76 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01909/0.2308, allocations: 11.5 MB / 435.8 MB, free: 1.914 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002797/0.2337, allocations: 1.912 MB / 437.7 MB, free: 15.88 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001769/0.2355, allocations: 1.064 MB / 438.8 MB, free: 14.81 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003119/0.2358, allocations: 215.2 kB / 439 MB, free: 14.57 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.601e-05/0.2359, allocations: 47.56 kB / 439 MB, free: 14.51 MB / 382.1 MB Notification: Performance of pre-optimization done (n=125): time 3.045e-06/0.2359, allocations: 0 / 439 MB, free: 14.51 MB / 382.1 MB Notification: Performance of matching and sorting (n=140): time 0.01383/0.2497, allocations: 6.531 MB / 445.6 MB, free: 7.844 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.587e-05/0.2498, allocations: 68.72 kB / 445.6 MB, free: 7.766 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004544/0.2544, allocations: 1.986 MB / 447.6 MB, free: 5.738 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002511/0.2546, allocations: 49.7 kB / 447.7 MB, free: 5.684 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001208/0.2559, allocations: 1.412 MB / 449.1 MB, free: 4.254 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006614/0.2565, allocations: 489 kB / 449.6 MB, free: 3.77 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007225/0.2573, allocations: 331.2 kB / 449.9 MB, free: 3.438 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001367/0.2574, allocations: 309.1 kB / 450.2 MB, free: 3.133 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001503/0.2589, allocations: 0.8159 MB / 451 MB, free: 2.316 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001939/0.2609, allocations: 1.379 MB / 452.4 MB, free: 0.6875 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.3088/0.5697, allocations: 2.36 MB / 454.7 MB, free: 67.29 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.8e-05/0.5698, allocations: 4.719 kB / 454.7 MB, free: 67.29 MB / 382.1 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.006957/0.5768, allocations: 2.852 MB / 457.6 MB, free: 66.57 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.79e-05/0.5769, allocations: 13.38 kB / 457.6 MB, free: 66.57 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.91e-05/0.577, allocations: 23.59 kB / 457.6 MB, free: 66.57 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001198/0.5782, allocations: 387 kB / 458 MB, free: 66.45 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002087/0.5803, allocations: 428.7 kB / 458.4 MB, free: 66.42 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007451/0.5878, allocations: 6.694 MB / 465.1 MB, free: 61.1 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002736/0.5906, allocations: 128.7 kB / 465.2 MB, free: 61.07 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003927/0.591, allocations: 83.94 kB / 465.3 MB, free: 61.05 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.003369/0.5944, allocations: 0.9082 MB / 466.2 MB, free: 60.57 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001151/0.5955, allocations: 206.6 kB / 466.4 MB, free: 60.57 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00533/0.6009, allocations: 2.427 MB / 468.9 MB, free: 59.55 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.56e-05/0.601, allocations: 13.53 kB / 468.9 MB, free: 59.55 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.708e-05/0.601, allocations: 3.312 kB / 468.9 MB, free: 59.55 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.512e-05/0.601, allocations: 17.7 kB / 468.9 MB, free: 59.54 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01098/0.612, allocations: 5.501 MB / 474.4 MB, free: 57.24 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.488e-05/0.6121, allocations: 7.688 kB / 474.4 MB, free: 57.24 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001105/0.6132, allocations: 264.4 kB / 474.7 MB, free: 57.21 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001032/0.6143, allocations: 401 kB / 475.1 MB, free: 57.11 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001364/0.6144, allocations: 41.47 kB / 475.1 MB, free: 57.09 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006912/0.6214, allocations: 8.246 MB / 483.3 MB, free: 49.87 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.983e-06/0.6214, allocations: 11.73 kB / 483.4 MB, free: 49.86 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006217/0.6276, allocations: 3.609 MB / 487 MB, free: 47.79 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001789/0.6295, allocations: 462.3 kB / 487.4 MB, free: 47.31 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009684/0.6304, allocations: 43.98 kB / 487.5 MB, free: 47.27 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001855/0.6323, allocations: 91.17 kB / 487.6 MB, free: 47.18 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002926/0.6326, allocations: 101 kB / 487.7 MB, free: 47.09 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001266/0.6328, allocations: 48 kB / 487.7 MB, free: 47.04 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00316/0.6359, allocations: 1.361 MB / 489.1 MB, free: 45.66 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.636, allocations: 0 / 489.1 MB, free: 45.66 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003716/0.6397, allocations: 0.5352 MB / 489.6 MB, free: 45.12 MB / 382.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.0006885/0.6404, allocations: 203.1 kB / 489.8 MB, free: 44.92 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004453/0.6449, allocations: 2.485 MB / 492.3 MB, free: 42.38 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.656e-06/0.6449, allocations: 4 kB / 492.3 MB, free: 42.38 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001943/0.6468, allocations: 1.495 MB / 493.8 MB, free: 40.84 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004098/0.651, allocations: 0.542 MB / 494.3 MB, free: 40.32 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01208/0.663, allocations: 5.655 MB / 500 MB, free: 34.63 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00289/0.666, allocations: 2.201 MB / 0.4904 GB, free: 32.39 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001979/0.668, allocations: 0.4978 MB / 0.4909 GB, free: 31.89 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007439/0.6688, allocations: 151.4 kB / 0.491 GB, free: 31.75 MB / 382.1 MB Notification: Performance of SimCode: time 1.443e-06/0.6688, allocations: 0 / 0.491 GB, free: 31.75 MB / 382.1 MB Notification: Performance of Templates: time 0.05965/0.7284, allocations: 30.13 MB / 0.5205 GB, free: 1.586 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)