Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004859/0.004858, allocations: 104.7 kB / 15.74 MB, free: 6.484 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.001162/0.001163, allocations: 193.5 kB / 16.67 MB, free: 6.375 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.385/1.385, allocations: 205.1 MB / 222.6 MB, free: 4.504 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.001216/0.001216, allocations: 52.22 kB / 326.6 MB, free: 14.4 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/0.1064, allocations: 46.63 MB / 373.2 MB, free: 1.285 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.01682/0.1232, allocations: 15.11 MB / 388.3 MB, free: 2.094 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01155/0.1348, allocations: 5.112 MB / 393.4 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003573/0.1384, allocations: 87.62 kB / 393.5 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003894/0.1424, allocations: 1.114 MB / 394.6 MB, free: 11.76 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005475/0.1479, allocations: 1.301 MB / 395.9 MB, free: 10.45 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002892/0.1508, allocations: 0.8961 MB / 396.8 MB, free: 9.551 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006035/0.1569, allocations: 3.624 MB / 400.4 MB, free: 5.914 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006097/0.163, allocations: 3.258 MB / 403.7 MB, free: 2.582 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00335/0.1663, allocations: 1.733 MB / 405.4 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004309/0.1707, allocations: 2.047 MB / 407.5 MB, free: 14.79 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001553/0.1722, allocations: 476 kB / 407.9 MB, free: 14.32 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002833/0.1751, allocations: 0.6717 MB / 408.6 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00197/0.1771, allocations: 1.141 MB / 409.8 MB, free: 12.51 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004147/0.1812, allocations: 2.042 MB / 411.8 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008836/0.1901, allocations: 6.258 MB / 418.1 MB, free: 4.18 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.594e-06/0.1901, allocations: 0 / 418.1 MB, free: 4.18 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.1901, allocations: 8 kB / 418.1 MB, free: 4.172 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002351/0.1904, allocations: 0 / 418.1 MB, free: 4.172 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: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.01119/0.2016, allocations: 4.226 MB / 422.3 MB, free: 15.87 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.518e-05/0.2016, allocations: 15.89 kB / 422.3 MB, free: 15.85 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002603/0.2043, allocations: 0.6172 MB / 422.9 MB, free: 15.23 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003651/0.2079, allocations: 2.136 MB / 425.1 MB, free: 13.04 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001782/0.2081, allocations: 238.7 kB / 425.3 MB, free: 12.81 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004408/0.2086, allocations: 320 kB / 425.6 MB, free: 12.5 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00648/0.2151, allocations: 4.043 MB / 429.6 MB, free: 8.391 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.901e-05/0.2152, allocations: 4 kB / 429.7 MB, free: 8.387 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002568/0.2154, allocations: 127.9 kB / 429.8 MB, free: 8.262 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001411/0.2156, allocations: 146.2 kB / 429.9 MB, free: 8.117 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005545/0.2211, allocations: 3.378 MB / 433.3 MB, free: 4.73 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02283/0.244, allocations: 13.17 MB / 446.5 MB, free: 7.117 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004095/0.2481, allocations: 3.966 MB / 450.4 MB, free: 2.645 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001523/0.2497, allocations: 0.984 MB / 451.4 MB, free: 1.66 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2921/0.5418, allocations: 2.648 MB / 454.1 MB, free: 67.88 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.137e-05/0.5419, allocations: 45.64 kB / 454.1 MB, free: 67.84 MB / 382.1 MB Notification: Performance of pre-optimization done (n=108): time 3.807e-06/0.5419, allocations: 0.5312 kB / 454.1 MB, free: 67.84 MB / 382.1 MB Notification: Performance of matching and sorting (n=142): time 0.01518/0.5571, allocations: 5.986 MB / 460.1 MB, free: 66.05 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.664e-05/0.5572, allocations: 67.31 kB / 460.2 MB, free: 65.98 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003683/0.5609, allocations: 1.893 MB / 462.1 MB, free: 65.23 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001604/0.5611, allocations: 51.39 kB / 462.1 MB, free: 65.18 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001458/0.5625, allocations: 1.499 MB / 463.6 MB, free: 64.04 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000546/0.5631, allocations: 497 kB / 464.1 MB, free: 63.66 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006293/0.5637, allocations: 332.8 kB / 464.4 MB, free: 63.49 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.359e-05/0.5638, allocations: 302.6 kB / 464.7 MB, free: 63.2 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001434/0.5652, allocations: 0.7732 MB / 465.5 MB, free: 62.9 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001608/0.5669, allocations: 1.378 MB / 466.9 MB, free: 61.86 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002942/0.5698, allocations: 2.316 MB / 469.2 MB, free: 60.33 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.542e-05/0.5698, allocations: 5.5 kB / 469.2 MB, free: 60.33 MB / 382.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004693/0.5745, allocations: 2.478 MB / 471.7 MB, free: 59.27 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.321e-05/0.5746, allocations: 15.75 kB / 471.7 MB, free: 59.27 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.379e-05/0.5746, allocations: 23.52 kB / 471.7 MB, free: 59.27 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003595/0.575, allocations: 113.3 kB / 471.8 MB, free: 59.21 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001605/0.5766, allocations: 497.2 kB / 472.3 MB, free: 59.17 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008242/0.5774, allocations: 1.404 MB / 473.7 MB, free: 57.75 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00169/0.5791, allocations: 118.3 kB / 473.8 MB, free: 57.72 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001192/0.5793, allocations: 79.66 kB / 473.9 MB, free: 57.7 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * 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 (232): * Single equations (assignments): 229 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002018/0.5813, allocations: 0.9759 MB / 474.9 MB, free: 57.16 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004947/0.5818, allocations: 206.6 kB / 475.1 MB, free: 57.05 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002799/0.5846, allocations: 1.956 MB / 477 MB, free: 56.2 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.147e-05/0.5846, allocations: 15.69 kB / 477 MB, free: 56.2 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.5846, allocations: 4.469 kB / 477 MB, free: 56.2 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.379e-05/0.5847, allocations: 11.48 kB / 477.1 MB, free: 56.2 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006491/0.5912, allocations: 4.992 MB / 482 MB, free: 53.58 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.017e-06/0.5912, allocations: 3.906 kB / 482.1 MB, free: 53.58 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001246/0.5924, allocations: 314.3 kB / 482.4 MB, free: 53.5 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002757/0.5927, allocations: 103.2 kB / 482.5 MB, free: 53.43 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.163e-05/0.5928, allocations: 23.56 kB / 482.5 MB, free: 53.41 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007151/0.5935, allocations: 1.372 MB / 483.9 MB, free: 51.94 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.5936, allocations: 9.469 kB / 483.9 MB, free: 51.93 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003583/0.5972, allocations: 3.083 MB / 486.9 MB, free: 48.79 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000879/0.598, allocations: 450.5 kB / 487.4 MB, free: 48.33 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002137/0.5983, allocations: 35.92 kB / 487.4 MB, free: 48.29 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008895/0.5992, allocations: 75.91 kB / 487.5 MB, free: 48.22 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001559/0.5993, allocations: 89.19 kB / 487.6 MB, free: 48.13 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.359e-05/0.5994, allocations: 40 kB / 487.6 MB, free: 48.09 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001572/0.601, allocations: 1.289 MB / 488.9 MB, free: 46.78 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.601, allocations: 0 / 488.9 MB, free: 46.78 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001947/0.603, allocations: 0.531 MB / 489.4 MB, free: 46.25 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (141): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * 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): 1 system {(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.000356/0.6033, allocations: 162.6 kB / 489.6 MB, free: 46.09 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002915/0.6062, allocations: 2.222 MB / 491.8 MB, free: 43.82 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/0.6063, allocations: 7.172 kB / 491.8 MB, free: 43.82 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001272/0.6076, allocations: 1.175 MB / 493 MB, free: 42.59 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002331/0.6099, allocations: 0.5115 MB / 493.5 MB, free: 42.12 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008762/0.6187, allocations: 5.575 MB / 499.1 MB, free: 36.5 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001748/0.6205, allocations: 2.256 MB / 0.4896 GB, free: 34.21 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001507/0.622, allocations: 0.5137 MB / 0.4901 GB, free: 33.71 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003768/0.6224, allocations: 151.4 kB / 0.4902 GB, free: 33.56 MB / 382.1 MB Notification: Performance of SimCode: time 8.01e-07/0.6224, allocations: 0 / 0.4902 GB, free: 33.56 MB / 382.1 MB Notification: Performance of Templates: time 0.04595/0.6683, allocations: 26.58 MB / 0.5162 GB, free: 6.957 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.sim & ./Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe 2>&1)