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.008102/0.008102, allocations: 101.1 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.00124/0.001241, allocations: 190.4 kB / 16.67 MB, free: 5.977 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.51/1.51, allocations: 205.1 MB / 222.5 MB, free: 4.363 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.001163/0.001163, allocations: 48.8 kB / 326.6 MB, free: 14.45 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1404/0.1416, allocations: 46.63 MB / 373.2 MB, free: 1.289 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource): time 0.01463/0.1563, allocations: 10.89 MB / 384.1 MB, free: 6.352 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009747/0.1661, allocations: 3.669 MB / 387.7 MB, free: 2.668 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003418/0.1696, allocations: 59.75 kB / 387.8 MB, free: 2.609 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002928/0.1726, allocations: 0.815 MB / 388.6 MB, free: 1.789 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004165/0.1768, allocations: 0.8619 MB / 389.5 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001524/0.1783, allocations: 467.3 kB / 389.9 MB, free: 476 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005328/0.1837, allocations: 2.95 MB / 392.9 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003629/0.1873, allocations: 2.675 MB / 395.6 MB, free: 10.76 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002805/0.1902, allocations: 1.367 MB / 396.9 MB, free: 9.391 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002723/0.1929, allocations: 1.755 MB / 398.7 MB, free: 7.629 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005256/0.1935, allocations: 375.9 kB / 399 MB, free: 7.262 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001027/0.1945, allocations: 471.8 kB / 399.5 MB, free: 6.801 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001139/0.1957, allocations: 1.075 MB / 400.6 MB, free: 5.723 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002221/0.1979, allocations: 1.668 MB / 402.3 MB, free: 4.047 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006124/0.204, allocations: 4.891 MB / 407.1 MB, free: 15.14 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.488e-06/0.2041, allocations: 0 / 407.1 MB, free: 15.14 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.597e-06/0.2041, allocations: 0 / 407.1 MB, free: 15.14 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001649/0.2043, allocations: 3.984 kB / 407.1 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.00931/0.2136, allocations: 3.379 MB / 410.5 MB, free: 11.69 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.039e-05/0.2137, allocations: 11.89 kB / 410.5 MB, free: 11.68 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001053/0.2147, allocations: 341.1 kB / 410.9 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003417/0.2181, allocations: 1.706 MB / 412.6 MB, free: 9.582 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001703/0.2183, allocations: 189.4 kB / 412.8 MB, free: 9.395 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004131/0.2188, allocations: 255.8 kB / 413 MB, free: 9.145 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00682/0.2256, allocations: 3.275 MB / 416.3 MB, free: 5.789 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.105e-05/0.2257, allocations: 11.91 kB / 416.3 MB, free: 5.777 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002572/0.226, allocations: 100 kB / 416.4 MB, free: 5.68 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001839/0.2262, allocations: 128.9 kB / 416.5 MB, free: 5.551 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005586/0.2318, allocations: 2.744 MB / 419.3 MB, free: 2.793 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01918/0.251, allocations: 10.41 MB / 429.7 MB, free: 8.023 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002205/0.2532, allocations: 1.342 MB / 431 MB, free: 6.617 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001355/0.2546, allocations: 0.7512 MB / 431.8 MB, free: 5.859 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003395/0.255, allocations: 207.2 kB / 432 MB, free: 5.621 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.723e-05/0.2551, allocations: 43.56 kB / 432 MB, free: 5.566 MB / 366.1 MB Notification: Performance of pre-optimization done (n=97): time 3.376e-06/0.2551, allocations: 0 / 432 MB, free: 5.566 MB / 366.1 MB Notification: Performance of matching and sorting (n=122): time 0.01704/0.2721, allocations: 7.034 MB / 439 MB, free: 14.42 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.002e-05/0.2723, allocations: 64.41 kB / 439.1 MB, free: 14.35 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003567/0.2758, allocations: 1.793 MB / 440.9 MB, free: 12.55 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.69e-05/0.276, allocations: 49.7 kB / 440.9 MB, free: 12.5 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001071/0.277, allocations: 1.283 MB / 442.2 MB, free: 11.2 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004283/0.2775, allocations: 414 kB / 442.6 MB, free: 10.79 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005242/0.278, allocations: 303.2 kB / 442.9 MB, free: 10.48 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001167/0.2781, allocations: 309.1 kB / 443.2 MB, free: 10.18 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001241/0.2794, allocations: 0.7691 MB / 444 MB, free: 9.41 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001695/0.2811, allocations: 1.297 MB / 445.3 MB, free: 7.883 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003139/0.2842, allocations: 2.211 MB / 447.5 MB, free: 5.441 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.371e-05/0.2843, allocations: 4 kB / 447.5 MB, free: 5.438 MB / 382.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004629/0.2889, allocations: 2.474 MB / 450 MB, free: 2.941 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.568e-05/0.289, allocations: 12 kB / 450 MB, free: 2.93 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.965e-05/0.289, allocations: 16 kB / 450 MB, free: 2.914 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006885/0.2897, allocations: 243.5 kB / 450.3 MB, free: 2.664 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001505/0.2912, allocations: 423.3 kB / 450.7 MB, free: 2.25 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3703/0.6615, allocations: 3.232 MB / 453.9 MB, free: 67.68 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00275/0.6643, allocations: 128.7 kB / 454 MB, free: 67.68 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002766/0.6646, allocations: 71.58 kB / 454.1 MB, free: 67.68 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.003241/0.6679, allocations: 0.821 MB / 454.9 MB, free: 67.57 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001174/0.6691, allocations: 189.7 kB / 455.1 MB, free: 67.57 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005537/0.6746, allocations: 2.033 MB / 457.1 MB, free: 67.05 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.337e-05/0.6747, allocations: 12.19 kB / 457.1 MB, free: 67.05 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.497e-05/0.6747, allocations: 2.609 kB / 457.1 MB, free: 67.05 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.326e-05/0.6747, allocations: 8.25 kB / 457.2 MB, free: 67.05 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01335/0.6881, allocations: 4.729 MB / 461.9 MB, free: 65.16 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.254e-05/0.6882, allocations: 2.188 kB / 461.9 MB, free: 65.16 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001327/0.6895, allocations: 263.7 kB / 462.1 MB, free: 65.14 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006969/0.6902, allocations: 205.9 kB / 462.3 MB, free: 65.06 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.224e-05/0.6903, allocations: 25.34 kB / 462.4 MB, free: 65.05 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002975/0.6933, allocations: 3.223 MB / 465.6 MB, free: 62.12 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.815e-06/0.6933, allocations: 7.062 kB / 465.6 MB, free: 62.12 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006388/0.6997, allocations: 3.12 MB / 468.7 MB, free: 60.85 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001656/0.7014, allocations: 428.6 kB / 469.1 MB, free: 60.67 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002409/0.7016, allocations: 20.52 kB / 469.2 MB, free: 60.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001002/0.7026, allocations: 98.19 kB / 469.3 MB, free: 60.64 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002075/0.7029, allocations: 85.12 kB / 469.3 MB, free: 60.62 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.332e-05/0.703, allocations: 35.05 kB / 469.4 MB, free: 60.61 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002428/0.7054, allocations: 1.218 MB / 470.6 MB, free: 60.16 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.7054, allocations: 0 / 470.6 MB, free: 60.16 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002364/0.7078, allocations: 494.3 kB / 471.1 MB, free: 60.12 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.0004785/0.7083, allocations: 188.4 kB / 471.3 MB, free: 60 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003853/0.7121, allocations: 2.355 MB / 473.6 MB, free: 58.94 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 9.849e-06/0.7122, allocations: 3.969 kB / 473.6 MB, free: 58.94 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002249/0.7144, allocations: 1.329 MB / 474.9 MB, free: 58.21 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002671/0.7171, allocations: 0.4913 MB / 475.4 MB, free: 58.05 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008724/0.7258, allocations: 4.856 MB / 480.3 MB, free: 55.41 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00152/0.7274, allocations: 2.006 MB / 482.3 MB, free: 53.39 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001719/0.7291, allocations: 0.4923 MB / 482.8 MB, free: 52.9 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004013/0.7296, allocations: 143.4 kB / 482.9 MB, free: 52.76 MB / 382.1 MB Notification: Performance of SimCode: time 2.184e-06/0.7296, allocations: 4 kB / 482.9 MB, free: 52.75 MB / 382.1 MB Notification: Performance of Templates: time 0.04915/0.7787, allocations: 26.19 MB / 0.4972 GB, free: 26.55 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)