Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.005169/0.005168, allocations: 104.5 kB / 15.74 MB, free: 5.984 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.001312/0.001312, allocations: 199.1 kB / 16.68 MB, free: 5.91 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.397/1.397, allocations: 205.1 MB / 222.6 MB, free: 4.473 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.001256/0.001256, allocations: 47.45 kB / 326.6 MB, free: 14.39 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09004/0.09131, allocations: 46.64 MB / 373.2 MB, free: 1.297 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.01611/0.1075, allocations: 15.1 MB / 388.3 MB, free: 2.121 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01041/0.1179, allocations: 5.12 MB / 393.4 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003172/0.1212, allocations: 83.69 kB / 393.5 MB, free: 12.9 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003269/0.1245, allocations: 1.118 MB / 394.6 MB, free: 11.78 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004663/0.1291, allocations: 1.301 MB / 395.9 MB, free: 10.47 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002428/0.1316, allocations: 0.9001 MB / 396.8 MB, free: 9.566 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005227/0.1368, allocations: 3.628 MB / 400.4 MB, free: 5.926 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004726/0.1416, allocations: 3.25 MB / 403.7 MB, free: 2.602 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002813/0.1444, allocations: 1.725 MB / 405.4 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003566/0.148, allocations: 2.051 MB / 407.5 MB, free: 14.81 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001341/0.1493, allocations: 480 kB / 407.9 MB, free: 14.34 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002314/0.1517, allocations: 0.6794 MB / 408.6 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001736/0.1534, allocations: 1.145 MB / 409.8 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003775/0.1572, allocations: 2.038 MB / 411.8 MB, free: 10.47 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008621/0.1658, allocations: 6.25 MB / 418.1 MB, free: 4.199 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.793e-06/0.1659, allocations: 7.938 kB / 418.1 MB, free: 4.191 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.1659, allocations: 0 / 418.1 MB, free: 4.191 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002677/0.1661, allocations: 0 / 418.1 MB, free: 4.191 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.01398/0.1801, allocations: 4.242 MB / 422.3 MB, free: 15.88 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.261e-05/0.1802, allocations: 15.89 kB / 422.3 MB, free: 15.86 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00403/0.1843, allocations: 0.6095 MB / 422.9 MB, free: 15.25 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005713/0.19, allocations: 2.136 MB / 425.1 MB, free: 13.05 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002607/0.1903, allocations: 238.7 kB / 425.3 MB, free: 12.82 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001087/0.1914, allocations: 312 kB / 425.6 MB, free: 12.52 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01143/0.2028, allocations: 4.043 MB / 429.6 MB, free: 8.41 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001299/0.203, allocations: 8 kB / 429.7 MB, free: 8.402 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000771/0.2038, allocations: 128 kB / 429.8 MB, free: 8.277 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001702/0.204, allocations: 146.2 kB / 429.9 MB, free: 8.133 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007775/0.2118, allocations: 3.378 MB / 433.3 MB, free: 4.746 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02379/0.2356, allocations: 13.16 MB / 446.5 MB, free: 7.137 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004337/0.2399, allocations: 3.97 MB / 450.4 MB, free: 2.66 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001735/0.2417, allocations: 0.9801 MB / 451.4 MB, free: 1.68 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2356/0.4773, allocations: 2.65 MB / 454.1 MB, free: 67.99 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.179e-05/0.4775, allocations: 46.23 kB / 454.1 MB, free: 67.95 MB / 382.1 MB Notification: Performance of pre-optimization done (n=108): time 4.699e-06/0.4775, allocations: 0 / 454.1 MB, free: 67.95 MB / 382.1 MB Notification: Performance of matching and sorting (n=142): time 0.01335/0.4908, allocations: 5.984 MB / 460.1 MB, free: 66.18 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.614e-05/0.4909, allocations: 66.66 kB / 460.2 MB, free: 66.11 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003306/0.4943, allocations: 1.89 MB / 462 MB, free: 65.36 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001215/0.4944, allocations: 56.39 kB / 462.1 MB, free: 65.3 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001023/0.4954, allocations: 1.498 MB / 463.6 MB, free: 64.16 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000382/0.4958, allocations: 493.5 kB / 464.1 MB, free: 63.79 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000509/0.4963, allocations: 333.4 kB / 464.4 MB, free: 63.62 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.849e-05/0.4964, allocations: 302.9 kB / 464.7 MB, free: 63.32 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001186/0.4976, allocations: 0.776 MB / 465.5 MB, free: 63.03 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001438/0.499, allocations: 1.375 MB / 466.9 MB, free: 61.99 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002804/0.5018, allocations: 2.317 MB / 469.2 MB, free: 60.45 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.356e-05/0.5019, allocations: 5.469 kB / 469.2 MB, free: 60.45 MB / 382.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.003948/0.5058, allocations: 2.476 MB / 471.7 MB, free: 59.39 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.666e-05/0.5059, allocations: 15.81 kB / 471.7 MB, free: 59.39 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.188e-05/0.5059, allocations: 23.41 kB / 471.7 MB, free: 59.39 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003446/0.5062, allocations: 116.9 kB / 471.8 MB, free: 59.34 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001576/0.5078, allocations: 493.7 kB / 472.3 MB, free: 59.3 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007741/0.5086, allocations: 1.404 MB / 473.7 MB, free: 57.88 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001592/0.5102, allocations: 111.3 kB / 473.8 MB, free: 57.85 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001122/0.5103, allocations: 87.14 kB / 473.9 MB, free: 57.84 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.001654/0.512, allocations: 0.9834 MB / 474.9 MB, free: 57.28 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003657/0.5124, allocations: 200.9 kB / 475.1 MB, free: 57.18 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00291/0.5153, allocations: 1.958 MB / 477 MB, free: 56.32 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.068e-06/0.5153, allocations: 15.72 kB / 477 MB, free: 56.32 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.704e-06/0.5153, allocations: 3.625 kB / 477 MB, free: 56.32 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.277e-05/0.5153, allocations: 7.547 kB / 477 MB, free: 56.32 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00781/0.5232, allocations: 4.996 MB / 482 MB, free: 53.7 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.404e-06/0.5232, allocations: 0 / 482 MB, free: 53.7 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001294/0.5245, allocations: 318.8 kB / 482.4 MB, free: 53.6 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002833/0.5248, allocations: 98.77 kB / 482.5 MB, free: 53.49 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001025/0.5249, allocations: 28 kB / 482.5 MB, free: 53.46 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006829/0.5256, allocations: 1.375 MB / 483.9 MB, free: 51.96 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.5256, allocations: 4 kB / 483.9 MB, free: 51.95 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003929/0.5296, allocations: 3.082 MB / 486.9 MB, free: 48.81 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001095/0.5307, allocations: 458.5 kB / 487.4 MB, free: 48.34 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005936/0.5313, allocations: 27.94 kB / 487.4 MB, free: 48.32 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001387/0.5327, allocations: 79.91 kB / 487.5 MB, free: 48.24 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001823/0.5329, allocations: 85.19 kB / 487.6 MB, free: 48.15 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.965e-05/0.5329, allocations: 36 kB / 487.6 MB, free: 48.12 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002312/0.5353, allocations: 1.285 MB / 488.9 MB, free: 46.81 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.5353, allocations: 4 kB / 488.9 MB, free: 46.8 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002572/0.5379, allocations: 0.5326 MB / 489.4 MB, free: 46.27 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.0003745/0.5382, allocations: 165.3 kB / 489.6 MB, free: 46.11 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003273/0.5415, allocations: 2.222 MB / 491.8 MB, free: 43.84 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.743e-06/0.5415, allocations: 8.125 kB / 491.8 MB, free: 43.83 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001376/0.5429, allocations: 1.17 MB / 493 MB, free: 42.61 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003247/0.5462, allocations: 0.5181 MB / 493.5 MB, free: 42.13 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01188/0.5581, allocations: 5.574 MB / 499.1 MB, free: 36.52 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003378/0.5615, allocations: 2.26 MB / 0.4896 GB, free: 34.22 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00228/0.5638, allocations: 0.5098 MB / 0.4901 GB, free: 33.72 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006817/0.5645, allocations: 151.4 kB / 0.4902 GB, free: 33.57 MB / 382.1 MB Notification: Performance of SimCode: time 1.072e-06/0.5645, allocations: 4 kB / 0.4902 GB, free: 33.57 MB / 382.1 MB Notification: Performance of Templates: time 0.04419/0.6087, allocations: 26.57 MB / 0.5162 GB, free: 6.977 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe 2>&1)