Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.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_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01312/0.01312, allocations: 98.3 kB / 15.73 MB, free: 6.047 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.002708/0.002708, allocations: 198.4 kB / 16.68 MB, free: 5.969 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.594/1.594, allocations: 205.1 MB / 222.5 MB, free: 4.527 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.001168/0.001168, allocations: 49.48 kB / 326.6 MB, free: 14.35 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1103, allocations: 46.63 MB / 373.2 MB, free: 1.316 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource): time 0.01263/0.123, allocations: 10.89 MB / 384.1 MB, free: 6.375 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008495/0.1315, allocations: 3.661 MB / 387.7 MB, free: 2.699 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001783/0.1333, allocations: 59.75 kB / 387.8 MB, free: 2.641 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002208/0.1356, allocations: 0.815 MB / 388.6 MB, free: 1.82 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003655/0.1393, allocations: 0.858 MB / 389.5 MB, free: 0.957 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001224/0.1405, allocations: 471.3 kB / 389.9 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003839/0.1444, allocations: 2.958 MB / 392.9 MB, free: 13.53 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002909/0.1473, allocations: 2.675 MB / 395.6 MB, free: 10.79 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002607/0.1499, allocations: 1.37 MB / 396.9 MB, free: 9.41 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002829/0.1528, allocations: 1.755 MB / 398.7 MB, free: 7.648 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006422/0.1534, allocations: 372 kB / 399.1 MB, free: 7.285 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001067/0.1545, allocations: 475.8 kB / 399.5 MB, free: 6.82 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001079/0.1556, allocations: 1.071 MB / 400.6 MB, free: 5.746 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002006/0.1576, allocations: 1.672 MB / 402.3 MB, free: 4.066 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005724/0.1633, allocations: 4.904 MB / 407.2 MB, free: 15.14 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.606e-06/0.1634, allocations: 0 / 407.2 MB, free: 15.14 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.306e-06/0.1634, allocations: 0 / 407.2 MB, free: 15.14 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001314/0.1635, allocations: 0 / 407.2 MB, free: 15.14 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: 660 * Number of variables: 660 Notification: Performance of Generate backend data structure: time 0.007696/0.1712, allocations: 3.461 MB / 410.6 MB, free: 11.61 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.276e-05/0.1713, allocations: 11.89 kB / 410.6 MB, free: 11.6 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009256/0.1722, allocations: 358.8 kB / 411 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002973/0.1752, allocations: 1.719 MB / 412.7 MB, free: 9.477 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001358/0.1753, allocations: 185.4 kB / 412.9 MB, free: 9.293 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003641/0.1757, allocations: 251.9 kB / 413.1 MB, free: 9.047 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005664/0.1814, allocations: 3.279 MB / 416.4 MB, free: 5.688 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.885e-05/0.1815, allocations: 7.953 kB / 416.4 MB, free: 5.68 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002662/0.1818, allocations: 100 kB / 416.5 MB, free: 5.582 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001512/0.1819, allocations: 132.9 kB / 416.6 MB, free: 5.449 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004674/0.1866, allocations: 2.744 MB / 419.4 MB, free: 2.691 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01595/0.2026, allocations: 10.44 MB / 429.8 MB, free: 7.895 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001842/0.2044, allocations: 1.342 MB / 431.2 MB, free: 6.488 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001149/0.2056, allocations: 0.7501 MB / 431.9 MB, free: 5.73 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003099/0.2059, allocations: 212.2 kB / 432.1 MB, free: 5.488 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.466e-05/0.206, allocations: 43.56 kB / 432.2 MB, free: 5.434 MB / 366.1 MB Notification: Performance of pre-optimization done (n=97): time 3.757e-06/0.206, allocations: 0 / 432.2 MB, free: 5.434 MB / 366.1 MB Notification: Performance of matching and sorting (n=122): time 0.01592/0.2219, allocations: 7.074 MB / 439.2 MB, free: 14.25 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.556e-05/0.222, allocations: 64.41 kB / 439.3 MB, free: 14.18 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003/0.225, allocations: 1.793 MB / 441.1 MB, free: 12.38 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001138/0.2252, allocations: 53.64 kB / 441.2 MB, free: 12.32 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001282/0.2265, allocations: 1.306 MB / 442.5 MB, free: 11.01 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000429/0.2269, allocations: 448.3 kB / 442.9 MB, free: 10.57 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004918/0.2274, allocations: 295.4 kB / 443.2 MB, free: 10.27 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001135/0.2275, allocations: 309.1 kB / 443.5 MB, free: 9.965 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00117/0.2287, allocations: 0.773 MB / 444.3 MB, free: 9.191 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001535/0.2303, allocations: 1.297 MB / 445.6 MB, free: 7.664 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002744/0.233, allocations: 2.215 MB / 447.8 MB, free: 5.219 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.061e-05/0.233, allocations: 4 kB / 447.8 MB, free: 5.215 MB / 382.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004221/0.2373, allocations: 2.487 MB / 450.3 MB, free: 2.707 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.018e-05/0.2373, allocations: 12 kB / 450.3 MB, free: 2.695 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.043e-05/0.2373, allocations: 16 kB / 450.3 MB, free: 2.68 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006395/0.238, allocations: 239.2 kB / 450.5 MB, free: 2.434 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001404/0.2394, allocations: 423.6 kB / 450.9 MB, free: 2.02 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2749/0.5143, allocations: 3.238 MB / 454.2 MB, free: 67.12 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002415/0.5168, allocations: 124.6 kB / 454.3 MB, free: 67.12 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002069/0.517, allocations: 71.12 kB / 454.4 MB, free: 67.12 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 75 * 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 (198): * Single equations (assignments): 194 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 2 systems {(2,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002307/0.5193, allocations: 0.8201 MB / 455.2 MB, free: 67.01 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005056/0.5198, allocations: 198.8 kB / 455.4 MB, free: 67.01 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004214/0.524, allocations: 2.041 MB / 457.4 MB, free: 66.75 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.087e-05/0.5241, allocations: 14.27 kB / 457.4 MB, free: 66.75 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.917e-06/0.5241, allocations: 2.047 kB / 457.4 MB, free: 66.75 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.918e-05/0.5241, allocations: 5.953 kB / 457.4 MB, free: 66.75 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009545/0.5337, allocations: 4.731 MB / 462.2 MB, free: 64.86 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.885e-06/0.5337, allocations: 3.422 kB / 462.2 MB, free: 64.86 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001105/0.5348, allocations: 261.8 kB / 462.4 MB, free: 64.85 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000568/0.5354, allocations: 204.1 kB / 462.6 MB, free: 64.78 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.311e-05/0.5355, allocations: 27.61 kB / 462.7 MB, free: 64.77 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002452/0.538, allocations: 3.212 MB / 465.9 MB, free: 61.84 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.805e-06/0.538, allocations: 10.62 kB / 465.9 MB, free: 61.84 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005093/0.5431, allocations: 3.129 MB / 469 MB, free: 60.57 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001109/0.5442, allocations: 439.5 kB / 469.4 MB, free: 60.39 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002396/0.5445, allocations: 22.28 kB / 469.5 MB, free: 60.37 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009702/0.5454, allocations: 101.5 kB / 469.6 MB, free: 60.36 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001901/0.5456, allocations: 80.36 kB / 469.6 MB, free: 60.34 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.188e-05/0.5457, allocations: 35.53 kB / 469.7 MB, free: 60.33 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002188/0.5479, allocations: 1.221 MB / 470.9 MB, free: 59.88 MB / 382.1 MB Notification: Performance of sort global known variables: time 5.41e-07/0.5479, allocations: 0 / 470.9 MB, free: 59.88 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00211/0.55, allocations: 488.8 kB / 471.4 MB, free: 59.84 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * 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 (120): * Single equations (assignments): 116 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 2 systems {(2,1,100.0%), (1,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.0003885/0.5505, allocations: 193.9 kB / 471.6 MB, free: 59.72 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003249/0.5537, allocations: 2.351 MB / 473.9 MB, free: 58.66 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.085e-06/0.5537, allocations: 0 / 473.9 MB, free: 58.66 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001726/0.5555, allocations: 1.335 MB / 475.2 MB, free: 57.93 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001923/0.5574, allocations: 0.4898 MB / 475.7 MB, free: 57.77 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007001/0.5644, allocations: 4.93 MB / 480.7 MB, free: 54.93 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001234/0.5657, allocations: 2.016 MB / 482.7 MB, free: 52.89 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001241/0.5669, allocations: 0.4921 MB / 483.2 MB, free: 52.39 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000368/0.5673, allocations: 135.4 kB / 483.3 MB, free: 52.26 MB / 382.1 MB Notification: Performance of SimCode: time 1.032e-06/0.5673, allocations: 4 kB / 483.3 MB, free: 52.26 MB / 382.1 MB Notification: Performance of Templates: time 0.03824/0.6056, allocations: 26.2 MB / 0.4976 GB, free: 26.04 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.makefile (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe 2>&1)