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.001424/0.001424, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001765/0.001765, allocations: 195.5 kB / 16.14 MB, free: 6.715 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.482/1.482, allocations: 205.1 MB / 222 MB, free: 4.785 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.001215/0.001215, allocations: 43.94 kB / 278.1 MB, free: 12.76 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3047/0.306, allocations: 46.62 MB / 324.7 MB, free: 1.961 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource): time 0.01542/0.3215, allocations: 10.8 MB / 335.5 MB, free: 9.324 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01055/0.3321, allocations: 3.644 MB / 339.1 MB, free: 5.668 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003935/0.3361, allocations: 51.75 kB / 339.2 MB, free: 5.617 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003872/0.34, allocations: 0.707 MB / 339.9 MB, free: 4.906 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005108/0.3452, allocations: 0.781 MB / 340.7 MB, free: 4.121 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001843/0.347, allocations: 407.6 kB / 341.1 MB, free: 3.723 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.006585/0.3536, allocations: 3.278 MB / 344.3 MB, free: 440 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00455/0.3582, allocations: 2.259 MB / 346.6 MB, free: 14.11 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00315/0.3614, allocations: 1.195 MB / 347.8 MB, free: 12.91 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003019/0.3645, allocations: 1.685 MB / 349.5 MB, free: 11.22 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006349/0.3651, allocations: 232 kB / 349.7 MB, free: 11 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001304/0.3665, allocations: 351.8 kB / 350 MB, free: 10.65 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001197/0.3677, allocations: 0.9268 MB / 351 MB, free: 9.723 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002031/0.3697, allocations: 1.52 MB / 352.5 MB, free: 8.195 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005276/0.375, allocations: 4.704 MB / 357.2 MB, free: 3.477 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.498e-06/0.375, allocations: 0 / 357.2 MB, free: 3.477 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.206e-06/0.3751, allocations: 0 / 357.2 MB, free: 3.477 MB / 286.1 MB Notification: Performance of Transformations before backend: time 0.0002026/0.3753, allocations: 0 / 357.2 MB, free: 3.477 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: 660 * Number of variables: 660 Notification: Performance of Generate backend data structure: time 0.009422/0.3847, allocations: 3.39 MB / 360.6 MB, free: 20 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.275e-05/0.3848, allocations: 8.031 kB / 360.6 MB, free: 12 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001181/0.386, allocations: 345.2 kB / 360.9 MB, free: 15.67 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003396/0.3894, allocations: 1.686 MB / 362.6 MB, free: 13.93 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002256/0.3897, allocations: 197.3 kB / 362.8 MB, free: 13.73 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004303/0.3901, allocations: 248 kB / 363.1 MB, free: 13.49 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006735/0.3968, allocations: 3.283 MB / 366.3 MB, free: 10.12 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.33e-05/0.397, allocations: 7.906 kB / 366.3 MB, free: 10.12 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002458/0.3972, allocations: 104 kB / 366.4 MB, free: 10.02 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001437/0.3974, allocations: 120.9 kB / 366.6 MB, free: 9.895 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005189/0.4026, allocations: 2.748 MB / 369.3 MB, free: 7.133 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01846/0.421, allocations: 10.52 MB / 379.8 MB, free: 12.24 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002029/0.4232, allocations: 1.362 MB / 381.2 MB, free: 10.82 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001329/0.4245, allocations: 0.7701 MB / 382 MB, free: 10.05 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003819/0.4249, allocations: 215.1 kB / 382.2 MB, free: 9.801 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.73e-05/0.425, allocations: 47.56 kB / 382.2 MB, free: 9.746 MB / 318.1 MB Notification: Performance of pre-optimization done (n=97): time 3.586e-06/0.425, allocations: 0 / 382.2 MB, free: 9.746 MB / 318.1 MB Notification: Performance of matching and sorting (n=122): time 0.0173/0.4423, allocations: 7.015 MB / 389.2 MB, free: 2.613 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.347e-05/0.4424, allocations: 72.34 kB / 389.3 MB, free: 2.527 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004427/0.4468, allocations: 1.785 MB / 391.1 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000176/0.447, allocations: 45.7 kB / 391.1 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001171/0.4482, allocations: 1.283 MB / 392.4 MB, free: 15.39 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000481/0.4487, allocations: 429.9 kB / 392.8 MB, free: 14.96 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006122/0.4493, allocations: 295.2 kB / 393.1 MB, free: 14.67 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001374/0.4495, allocations: 305.1 kB / 393.4 MB, free: 14.37 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001317/0.4508, allocations: 0.7769 MB / 394.2 MB, free: 13.59 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001888/0.4527, allocations: 1.293 MB / 395.5 MB, free: 12.07 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003408/0.4561, allocations: 2.215 MB / 397.7 MB, free: 9.617 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-05/0.4562, allocations: 4 kB / 397.7 MB, free: 9.613 MB / 334.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004927/0.4611, allocations: 2.474 MB / 400.2 MB, free: 7.117 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.917e-05/0.4612, allocations: 16 kB / 400.2 MB, free: 7.102 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.747e-05/0.4612, allocations: 16 kB / 400.2 MB, free: 7.086 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007686/0.462, allocations: 231.3 kB / 400.5 MB, free: 6.848 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001548/0.4636, allocations: 423.5 kB / 400.9 MB, free: 6.434 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003539/0.4671, allocations: 3.009 MB / 403.9 MB, free: 3.16 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001896/0.469, allocations: 127.8 kB / 404 MB, free: 3.035 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002571/0.4693, allocations: 68 kB / 404.1 MB, free: 2.969 MB / 334.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.002808/0.4721, allocations: 0.8212 MB / 404.9 MB, free: 2.137 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001055/0.4732, allocations: 185.7 kB / 405.1 MB, free: 1.953 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004699/0.4779, allocations: 2.039 MB / 407.1 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.357e-05/0.4779, allocations: 12.14 kB / 407.1 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.389e-05/0.478, allocations: 4 kB / 407.1 MB, free: 15.87 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.601e-05/0.478, allocations: 11.95 kB / 407.1 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01121/0.4892, allocations: 4.744 MB / 411.9 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.094e-05/0.4893, allocations: 4 kB / 411.9 MB, free: 11.01 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001151/0.4904, allocations: 259.6 kB / 412.1 MB, free: 10.76 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006443/0.4911, allocations: 211.5 kB / 412.3 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001233/0.4912, allocations: 23.98 kB / 412.4 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002987/0.4942, allocations: 2.982 MB / 415.3 MB, free: 7.27 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.632e-06/0.4943, allocations: 7.938 kB / 415.4 MB, free: 7.262 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005107/0.4994, allocations: 3.126 MB / 418.5 MB, free: 4.078 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001224/0.5006, allocations: 430.5 kB / 418.9 MB, free: 3.637 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005786/0.5012, allocations: 28.06 kB / 418.9 MB, free: 3.609 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001563/0.5028, allocations: 87.86 kB / 419 MB, free: 3.523 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002366/0.503, allocations: 84.83 kB / 419.1 MB, free: 3.441 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.984e-05/0.5031, allocations: 32 kB / 419.1 MB, free: 3.41 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002843/0.506, allocations: 1.22 MB / 420.3 MB, free: 2.199 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.52e-07/0.506, allocations: 4 kB / 420.4 MB, free: 2.195 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002674/0.5087, allocations: 492 kB / 420.8 MB, free: 1.715 MB / 350.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.0005787/0.5093, allocations: 194.9 kB / 421 MB, free: 1.516 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.004262/0.5136, allocations: 2.338 MB / 423.4 MB, free: 15.11 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 9.998e-06/0.5136, allocations: 4 kB / 423.4 MB, free: 15.11 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002191/0.5158, allocations: 1.331 MB / 424.7 MB, free: 13.71 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004559/0.5204, allocations: 469.7 kB / 425.2 MB, free: 13.25 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0137/0.5341, allocations: 6.021 MB / 431.2 MB, free: 7.164 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004204/0.5384, allocations: 2.006 MB / 433.2 MB, free: 5.121 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.002658/0.5411, allocations: 0.4999 MB / 433.7 MB, free: 4.617 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007243/0.5419, allocations: 139.4 kB / 433.8 MB, free: 4.48 MB / 366.1 MB Notification: Performance of SimCode: time 1.613e-06/0.5419, allocations: 0 / 433.8 MB, free: 4.48 MB / 366.1 MB Notification: Performance of Templates: time 0.3109/0.8528, allocations: 24.76 MB / 458.6 MB, free: 111.8 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)