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.00932/0.009319, allocations: 102.9 kB / 15.74 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.001848/0.001848, allocations: 201.1 kB / 16.68 MB, free: 5.965 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.628/1.628, allocations: 205.1 MB / 222.6 MB, free: 4.539 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.001477/0.001477, allocations: 54.98 kB / 326.6 MB, free: 14.38 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1421/0.1436, allocations: 46.63 MB / 373.2 MB, free: 1.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource): time 0.014/0.1577, allocations: 11.61 MB / 384.8 MB, free: 5.656 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009735/0.1675, allocations: 3.945 MB / 388.7 MB, free: 1.695 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002589/0.1701, allocations: 67.62 kB / 388.8 MB, free: 1.629 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002861/0.1731, allocations: 0.924 MB / 389.7 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003806/0.1769, allocations: 0.9942 MB / 390.7 MB, free: 15.7 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001442/0.1784, allocations: 0.5227 MB / 391.2 MB, free: 15.18 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00459/0.1829, allocations: 3.301 MB / 394.5 MB, free: 11.86 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003902/0.1869, allocations: 2.977 MB / 397.5 MB, free: 8.82 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002604/0.1895, allocations: 1.538 MB / 399.1 MB, free: 7.277 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00304/0.1925, allocations: 1.973 MB / 401 MB, free: 5.297 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007902/0.1933, allocations: 424 kB / 401.5 MB, free: 4.883 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001248/0.1946, allocations: 0.5193 MB / 402 MB, free: 4.363 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001316/0.1959, allocations: 1.223 MB / 403.2 MB, free: 3.137 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002531/0.1985, allocations: 1.882 MB / 405.1 MB, free: 1.246 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007034/0.2055, allocations: 5.535 MB / 410.6 MB, free: 11.69 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.01e-05/0.2056, allocations: 3.984 kB / 410.6 MB, free: 11.69 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.206e-06/0.2056, allocations: 0 / 410.6 MB, free: 11.69 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001535/0.2057, allocations: 4 kB / 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.008948/0.2147, allocations: 3.9 MB / 414.5 MB, free: 7.711 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.365e-05/0.2148, allocations: 11.89 kB / 414.5 MB, free: 7.699 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00114/0.2159, allocations: 410.5 kB / 414.9 MB, free: 7.297 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003568/0.2195, allocations: 1.952 MB / 416.9 MB, free: 5.293 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001763/0.2197, allocations: 218 kB / 417.1 MB, free: 5.078 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000412/0.2201, allocations: 287.9 kB / 417.4 MB, free: 4.797 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006396/0.2265, allocations: 3.705 MB / 421.1 MB, free: 1.02 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.365e-05/0.2266, allocations: 11.95 kB / 421.1 MB, free: 1.008 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002507/0.2269, allocations: 112 kB / 421.2 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001521/0.227, allocations: 141.5 kB / 421.3 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005299/0.2323, allocations: 3.106 MB / 424.4 MB, free: 13.64 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01985/0.2522, allocations: 11.54 MB / 436 MB, free: 1.77 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002802/0.2551, allocations: 1.912 MB / 437.9 MB, free: 15.73 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00193/0.257, allocations: 1.076 MB / 439 MB, free: 14.66 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004463/0.2575, allocations: 203.2 kB / 439.2 MB, free: 14.42 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.682e-05/0.2576, allocations: 47.56 kB / 439.2 MB, free: 14.36 MB / 382.1 MB Notification: Performance of pre-optimization done (n=125): time 4.569e-06/0.2576, allocations: 0 / 439.2 MB, free: 14.36 MB / 382.1 MB Notification: Performance of matching and sorting (n=140): time 0.01489/0.2725, allocations: 6.58 MB / 445.8 MB, free: 7.656 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.596e-05/0.2726, allocations: 68.72 kB / 445.9 MB, free: 7.578 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003626/0.2762, allocations: 1.99 MB / 447.9 MB, free: 5.547 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001369/0.2764, allocations: 53.7 kB / 447.9 MB, free: 5.488 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001319/0.2777, allocations: 1.44 MB / 449.3 MB, free: 4.035 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005544/0.2783, allocations: 0.5152 MB / 449.9 MB, free: 3.516 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005278/0.2788, allocations: 319.4 kB / 450.2 MB, free: 3.195 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000134/0.2789, allocations: 309.1 kB / 450.5 MB, free: 2.891 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001261/0.2802, allocations: 0.8237 MB / 451.3 MB, free: 2.066 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001708/0.2819, allocations: 1.375 MB / 452.7 MB, free: 452 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.4139/0.6958, allocations: 2.358 MB / 455 MB, free: 66.97 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.431e-05/0.6959, allocations: 7.5 kB / 455 MB, free: 66.97 MB / 382.1 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.008231/0.7042, allocations: 2.865 MB / 457.9 MB, free: 66.25 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.946e-05/0.7043, allocations: 13.45 kB / 457.9 MB, free: 66.25 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.076e-05/0.7044, allocations: 21.91 kB / 457.9 MB, free: 66.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001266/0.7056, allocations: 383.7 kB / 458.3 MB, free: 66.13 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001827/0.7075, allocations: 436 kB / 458.7 MB, free: 66.09 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008206/0.7157, allocations: 6.689 MB / 465.4 MB, free: 60.77 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002802/0.7185, allocations: 129.9 kB / 465.6 MB, free: 60.74 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002306/0.7188, allocations: 80.05 kB / 465.6 MB, free: 60.73 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.003017/0.7218, allocations: 0.9136 MB / 466.5 MB, free: 60.25 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009739/0.7228, allocations: 217.2 kB / 466.8 MB, free: 60.25 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006234/0.7291, allocations: 2.434 MB / 469.2 MB, free: 59.22 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.345e-05/0.7291, allocations: 13.75 kB / 469.2 MB, free: 59.22 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.682e-05/0.7291, allocations: 4.125 kB / 469.2 MB, free: 59.22 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.934e-05/0.7292, allocations: 7.312 kB / 469.2 MB, free: 59.22 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01187/0.741, allocations: 5.509 MB / 474.7 MB, free: 56.91 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.361e-05/0.7411, allocations: 3.969 kB / 474.7 MB, free: 56.91 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001107/0.7422, allocations: 256.8 kB / 475 MB, free: 56.89 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001108/0.7434, allocations: 415.1 kB / 475.4 MB, free: 56.77 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001154/0.7435, allocations: 38.23 kB / 475.4 MB, free: 56.75 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007808/0.7513, allocations: 8.248 MB / 483.7 MB, free: 49.55 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.59e-06/0.7514, allocations: 3.906 kB / 483.7 MB, free: 49.55 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006474/0.7578, allocations: 3.62 MB / 487.3 MB, free: 47.52 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001572/0.7595, allocations: 479.9 kB / 487.8 MB, free: 47.03 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003363/0.7598, allocations: 32 kB / 487.8 MB, free: 47 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001139/0.761, allocations: 83.89 kB / 487.9 MB, free: 46.92 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002854/0.7613, allocations: 113 kB / 488 MB, free: 46.81 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.398e-05/0.7614, allocations: 40.86 kB / 488 MB, free: 46.77 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002388/0.7637, allocations: 1.369 MB / 489.4 MB, free: 45.38 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.7638, allocations: 0 / 489.4 MB, free: 45.38 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003076/0.7668, allocations: 0.5371 MB / 489.9 MB, free: 44.84 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.0005991/0.7675, allocations: 205.3 kB / 490.1 MB, free: 44.65 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004209/0.7717, allocations: 2.501 MB / 492.6 MB, free: 42.09 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.202e-05/0.7717, allocations: 3.844 kB / 492.6 MB, free: 42.09 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001959/0.7737, allocations: 1.494 MB / 494.1 MB, free: 40.55 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004752/0.7785, allocations: 0.5284 MB / 494.7 MB, free: 40.04 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01505/0.7935, allocations: 5.749 MB / 0.4887 GB, free: 34.24 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001957/0.7956, allocations: 2.208 MB / 0.4908 GB, free: 32 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002122/0.7977, allocations: 0.494 MB / 0.4913 GB, free: 31.51 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004364/0.7982, allocations: 151.3 kB / 0.4915 GB, free: 31.36 MB / 382.1 MB Notification: Performance of SimCode: time 1.663e-06/0.7982, allocations: 4 kB / 0.4915 GB, free: 31.36 MB / 382.1 MB Notification: Performance of Templates: time 0.0656/0.8638, allocations: 30.13 MB / 0.5209 GB, free: 1.199 MB / 382.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)