Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_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.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001249/0.001249, allocations: 99.62 kB / 15.05 MB, free: 1.105 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.0008966/0.0008965, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.311/1.311, allocations: 205.4 MB / 222.1 MB, free: 5.656 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.0004495/0.0004497, allocations: 8 kB / 278.9 MB, free: 12.81 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.224/0.2245, allocations: 47.58 MB / 326.5 MB, free: 1.414 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.03211/0.2566, allocations: 32.06 MB / 358.5 MB, free: 3.367 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02059/0.2773, allocations: 10.18 MB / 368.7 MB, free: 9.164 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00591/0.2832, allocations: 243.1 kB / 369 MB, free: 8.926 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007265/0.2905, allocations: 2.106 MB / 371.1 MB, free: 6.809 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01466/0.3052, allocations: 3.673 MB / 374.7 MB, free: 3.125 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007937/0.3132, allocations: 1.808 MB / 376.5 MB, free: 1.316 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01959/0.3328, allocations: 10.3 MB / 386.8 MB, free: 6.992 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04123/0.374, allocations: 19.78 MB / 406.6 MB, free: 3.113 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01027/0.3843, allocations: 4.676 MB / 411.3 MB, free: 14.42 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01139/0.3958, allocations: 5.42 MB / 416.7 MB, free: 8.98 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004101/0.3999, allocations: 0.7734 MB / 417.5 MB, free: 8.207 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0059/0.4058, allocations: 1.074 MB / 418.6 MB, free: 7.133 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005364/0.4112, allocations: 2.539 MB / 421.1 MB, free: 4.586 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006316/0.4176, allocations: 2.597 MB / 423.7 MB, free: 1.977 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02462/0.4422, allocations: 22.05 MB / 445.7 MB, free: 11.87 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.4423, allocations: 0 / 445.7 MB, free: 11.87 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.745e-06/0.4423, allocations: 0 / 445.7 MB, free: 11.87 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0007411/0.443, allocations: 0 / 445.7 MB, free: 11.87 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3512 * Number of variables: 3512 Notification: Performance of Generate backend data structure: time 0.3679/0.811, allocations: 12.94 MB / 458.7 MB, free: 91.06 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.024e-05/0.811, allocations: 8.812 kB / 458.7 MB, free: 91.06 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05007/0.8611, allocations: 9.039 MB / 467.7 MB, free: 88.91 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02117/0.8823, allocations: 7.381 MB / 475.1 MB, free: 84 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001305/0.8837, allocations: 0.9519 MB / 476.1 MB, free: 83.57 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005358/0.8891, allocations: 1.242 MB / 477.3 MB, free: 83.16 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05317/0.9422, allocations: 19.95 MB / 497.3 MB, free: 63.43 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006709/0.943, allocations: 21.03 kB / 497.3 MB, free: 63.41 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004874/0.9479, allocations: 0.5121 MB / 497.8 MB, free: 62.91 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007829/0.9487, allocations: 0.7371 MB / 498.5 MB, free: 62.18 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04324/0.9919, allocations: 18.88 MB / 0.5053 GB, free: 43.29 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1197/1.112, allocations: 63.54 MB / 0.5673 GB, free: 10.48 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2721/1.384, allocations: 56.9 MB / 0.6229 GB, free: 100.9 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0219/1.406, allocations: 11.53 MB / 0.6342 GB, free: 96.98 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.7e-05/1.406, allocations: 80.73 kB / 0.6342 GB, free: 96.91 MB / 462.1 MB Notification: Performance of pre-optimization done (n=359): time 5.22e-06/1.406, allocations: 0 / 0.6342 GB, free: 96.91 MB / 462.1 MB Notification: Performance of matching and sorting (n=399): time 0.03227/1.438, allocations: 17.54 MB / 0.6514 GB, free: 89.36 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.541e-05/1.438, allocations: 92.36 kB / 0.6515 GB, free: 89.29 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01056/1.449, allocations: 5.38 MB / 0.6567 GB, free: 87.32 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006636/1.449, allocations: 92.92 kB / 0.6568 GB, free: 87.23 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003283/1.453, allocations: 5.871 MB / 0.6625 GB, free: 82.8 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00152/1.454, allocations: 1.408 MB / 0.6639 GB, free: 81.74 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007757/1.455, allocations: 149.8 kB / 0.664 GB, free: 81.62 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0004962/1.456, allocations: 0.617 MB / 0.6647 GB, free: 81.18 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005006/1.461, allocations: 3.077 MB / 0.6677 GB, free: 80.04 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006851/1.468, allocations: 6.705 MB / 0.6742 GB, free: 74 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007022/1.475, allocations: 4.591 MB / 0.6787 GB, free: 70.12 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001822/1.475, allocations: 36 kB / 0.6787 GB, free: 70.08 MB / 462.1 MB Notification: Performance of matching and sorting (n=988) (initialization): time 0.01991/1.495, allocations: 10.78 MB / 0.6893 GB, free: 59.24 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001655/1.495, allocations: 57.41 kB / 0.6893 GB, free: 59.19 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001885/1.495, allocations: 128 kB / 0.6894 GB, free: 59.06 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002346/1.497, allocations: 0.9887 MB / 0.6904 GB, free: 58.06 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006169/1.504, allocations: 1.829 MB / 0.6922 GB, free: 56.23 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009716/1.513, allocations: 9.742 MB / 0.7017 GB, free: 46.09 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006497/1.52, allocations: 444.6 kB / 0.7021 GB, free: 45.65 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00133/1.521, allocations: 424 kB / 0.7025 GB, free: 45.24 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 568 * 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 (939): * Single equations (assignments): 934 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 1,(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008066/1.529, allocations: 4.466 MB / 0.7069 GB, free: 40.76 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00153/1.531, allocations: 0.544 MB / 0.7074 GB, free: 40.21 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01179/1.543, allocations: 6.599 MB / 0.7139 GB, free: 33.57 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.781e-05/1.543, allocations: 40 kB / 0.7139 GB, free: 33.53 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.219e-05/1.543, allocations: 12 kB / 0.7139 GB, free: 33.52 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.665e-05/1.543, allocations: 23.88 kB / 0.7139 GB, free: 33.49 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0343/1.577, allocations: 16.1 MB / 0.7297 GB, free: 17.36 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.604e-05/1.577, allocations: 4 kB / 0.7297 GB, free: 17.36 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003513/1.581, allocations: 0.7804 MB / 0.7304 GB, free: 16.58 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002132/1.583, allocations: 0.7807 MB / 0.7312 GB, free: 15.78 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006531/1.584, allocations: 87.97 kB / 0.7313 GB, free: 15.7 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008488/1.592, allocations: 8.854 MB / 0.7399 GB, free: 6.445 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.22e-06/1.592, allocations: 7.938 kB / 0.7399 GB, free: 6.438 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01732/1.609, allocations: 10.03 MB / 0.7497 GB, free: 12.25 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004181/1.614, allocations: 1.111 MB / 0.7508 GB, free: 11.12 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001879/1.616, allocations: 79.98 kB / 0.7509 GB, free: 11.04 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003675/1.619, allocations: 227.7 kB / 0.7511 GB, free: 10.82 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007455/1.62, allocations: 270.8 kB / 0.7514 GB, free: 10.55 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004203/1.621, allocations: 116 kB / 0.7515 GB, free: 10.44 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.007385/1.628, allocations: 3.532 MB / 0.7549 GB, free: 6.934 MB / 478.1 MB Notification: Performance of sort global known variables: time 5.01e-07/1.628, allocations: 0 / 0.7549 GB, free: 6.934 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.009764/1.638, allocations: 1.987 MB / 0.7569 GB, free: 4.949 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.w,quadraticSpeedDependentTorqueQS.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 (378): * Single equations (assignments): 373 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 1,(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001201/1.639, allocations: 253.1 kB / 0.7571 GB, free: 4.703 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01423/1.653, allocations: 8.08 MB / 0.765 GB, free: 12.55 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 7.985e-06/1.653, allocations: 0 / 0.765 GB, free: 12.55 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006691/1.66, allocations: 3.57 MB / 0.7685 GB, free: 8.898 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006612/1.667, allocations: 1.183 MB / 0.7696 GB, free: 7.727 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04656/1.713, allocations: 24.83 MB / 0.7939 GB, free: 14.82 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0132/1.726, allocations: 7.793 MB / 0.8015 GB, free: 6.977 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.008577/1.735, allocations: 2.359 MB / 0.8038 GB, free: 4.609 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002252/1.737, allocations: 439.3 kB / 0.8042 GB, free: 4.18 MB / 0.5138 GB Notification: Performance of SimCode: time 6.51e-07/1.737, allocations: 0 / 0.8042 GB, free: 4.18 MB / 0.5138 GB Notification: Performance of Templates: time 0.3196/2.057, allocations: 72.88 MB / 0.8754 GB, free: 188.6 MB / 0.5294 GB make -j1 -f Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile Environment - environmentSimulation: (rm -f Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) Environment - environmentSimulation: