Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2.2_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.2.2_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.001855/0.001855, allocations: 104.9 kB / 17.06 MB, free: 6.027 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.00187/0.001871, allocations: 195 kB / 17.99 MB, free: 5.109 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.398/1.398, allocations: 205.1 MB / 223.9 MB, free: 12.24 MB / 190.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.001202/0.001202, allocations: 51.92 kB / 327.9 MB, free: 3.25 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08027/0.08148, allocations: 46.61 MB / 374.5 MB, free: 4.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.2081/0.2897, allocations: 40.02 MB / 414.5 MB, free: 2.336 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02445/0.3142, allocations: 10.55 MB / 425.1 MB, free: 10.08 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008001/0.3222, allocations: 261.5 kB / 425.4 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02041/0.3427, allocations: 8.545 MB / 433.9 MB, free: 3.527 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01342/0.3561, allocations: 3.632 MB / 437.5 MB, free: 432 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008937/0.3651, allocations: 2.395 MB / 439.9 MB, free: 14.03 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01816/0.3832, allocations: 13.42 MB / 453.3 MB, free: 0.5547 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04301/0.4263, allocations: 25.36 MB / 478.7 MB, free: 7.043 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01245/0.4388, allocations: 7.067 MB / 485.8 MB, free: 15.96 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01358/0.4524, allocations: 8.055 MB / 493.8 MB, free: 7.875 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005622/0.4581, allocations: 1.996 MB / 495.8 MB, free: 5.879 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007451/0.4655, allocations: 2.375 MB / 498.2 MB, free: 3.504 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00626/0.4718, allocations: 4.154 MB / 0.4906 GB, free: 15.34 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01351/0.4854, allocations: 7.832 MB / 0.4982 GB, free: 7.477 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03326/0.5187, allocations: 26.42 MB / 0.524 GB, free: 12.98 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.454e-06/0.5187, allocations: 0 / 0.524 GB, free: 12.98 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.815e-06/0.5187, allocations: 0 / 0.524 GB, free: 12.98 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0008667/0.5196, allocations: 4 kB / 0.524 GB, free: 12.98 MB / 462.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.04578/0.5654, allocations: 15.6 MB / 0.5393 GB, free: 13.27 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.45e-05/0.5655, allocations: 12.03 kB / 0.5393 GB, free: 13.25 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04992/0.6154, allocations: 9.114 MB / 0.5482 GB, free: 4.113 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3651/0.9806, allocations: 7.499 MB / 0.5555 GB, free: 133.6 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009573/0.9816, allocations: 0.9439 MB / 0.5564 GB, free: 133.2 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005128/0.9867, allocations: 1.24 MB / 0.5576 GB, free: 132.8 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05039/1.037, allocations: 20.15 MB / 0.5773 GB, free: 124.9 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000511/1.038, allocations: 23.7 kB / 0.5773 GB, free: 124.9 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004548/1.042, allocations: 0.5124 MB / 0.5778 GB, free: 124.5 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008483/1.043, allocations: 0.7383 MB / 0.5785 GB, free: 124.5 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03803/1.081, allocations: 18.98 MB / 0.5971 GB, free: 112.6 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09987/1.181, allocations: 62.64 MB / 0.6583 GB, free: 49.01 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03264/1.214, allocations: 56.98 MB / 0.7139 GB, free: 1.148 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006553/1.22, allocations: 4.094 MB / 0.7179 GB, free: 13.04 MB / 0.4982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02132/1.242, allocations: 11.33 MB / 0.729 GB, free: 1.691 MB / 0.4982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.289e-05/1.242, allocations: 69.31 kB / 0.729 GB, free: 1.613 MB / 0.4982 GB Notification: Performance of pre-optimization done (n=349): time 5.21e-06/1.242, allocations: 4 kB / 0.729 GB, free: 1.609 MB / 0.4982 GB Notification: Performance of matching and sorting (n=389): time 0.2594/1.501, allocations: 18.14 MB / 0.7467 GB, free: 165.7 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.701e-05/1.501, allocations: 91.88 kB / 0.7468 GB, free: 165.6 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008834/1.51, allocations: 5.469 MB / 0.7522 GB, free: 165 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0006699/1.511, allocations: 85.45 kB / 0.7523 GB, free: 165 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.003323/1.514, allocations: 5.882 MB / 0.758 GB, free: 161.5 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001585/1.516, allocations: 1.376 MB / 0.7593 GB, free: 160.5 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002609/1.518, allocations: 1.506 MB / 0.7608 GB, free: 159.8 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 5.124e-05/1.518, allocations: 305.7 kB / 0.7611 GB, free: 159.5 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005296/1.524, allocations: 3.082 MB / 0.7641 GB, free: 158.3 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007414/1.531, allocations: 6.756 MB / 0.7707 GB, free: 152.4 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01324/1.545, allocations: 10.59 MB / 0.7811 GB, free: 144.1 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001939/1.545, allocations: 36 kB / 0.7811 GB, free: 144.1 MB / 0.5138 GB Notification: Performance of matching and sorting (n=982) (initialization): time 0.02142/1.566, allocations: 10.79 MB / 0.7916 GB, free: 139.7 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003217/1.567, allocations: 61.41 kB / 0.7917 GB, free: 139.7 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003663/1.567, allocations: 126.8 kB / 0.7918 GB, free: 139.7 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002849/1.57, allocations: 0.974 MB / 0.7928 GB, free: 139.5 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007473/1.577, allocations: 1.808 MB / 0.7945 GB, free: 139.3 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01124/1.589, allocations: 10.24 MB / 0.8045 GB, free: 132.3 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00672/1.595, allocations: 444.1 kB / 0.805 GB, free: 132.1 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001531/1.597, allocations: 419.7 kB / 0.8054 GB, free: 132.1 MB / 0.5138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 572 * 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 (933): * Single equations (assignments): 928 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * 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): 3 systems {(1,1,100.0%), (1,1,100.0%), (8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.008079/1.605, allocations: 4.459 MB / 0.8097 GB, free: 129.9 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001663/1.607, allocations: 0.5428 MB / 0.8102 GB, free: 129.6 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01175/1.618, allocations: 6.515 MB / 0.8166 GB, free: 126 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.376e-05/1.618, allocations: 40 kB / 0.8166 GB, free: 126 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.855e-05/1.619, allocations: 8 kB / 0.8166 GB, free: 126 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.782e-05/1.619, allocations: 25.64 kB / 0.8167 GB, free: 126 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02766/1.646, allocations: 15.96 MB / 0.8323 GB, free: 111.9 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.489e-05/1.646, allocations: 5.625 kB / 0.8323 GB, free: 111.9 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003167/1.649, allocations: 0.7493 MB / 0.833 GB, free: 111.2 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002033/1.652, allocations: 0.7924 MB / 0.8338 GB, free: 110.4 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004766/1.652, allocations: 86.77 kB / 0.8339 GB, free: 110.3 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008288/1.66, allocations: 9.34 MB / 0.843 GB, free: 100.5 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/1.66, allocations: 4 kB / 0.843 GB, free: 100.5 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01207/1.672, allocations: 9.53 MB / 0.8523 GB, free: 90.88 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002663/1.675, allocations: 1.076 MB / 0.8533 GB, free: 89.77 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009066/1.676, allocations: 80.77 kB / 0.8534 GB, free: 89.7 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002379/1.678, allocations: 219.8 kB / 0.8536 GB, free: 89.48 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000507/1.679, allocations: 262.8 kB / 0.8539 GB, free: 89.22 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002321/1.679, allocations: 111.9 kB / 0.854 GB, free: 89.11 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.004491/1.684, allocations: 3.599 MB / 0.8575 GB, free: 85.54 MB / 0.5138 GB Notification: Performance of sort global known variables: time 2.4e-07/1.684, allocations: 0 / 0.8575 GB, free: 85.54 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.006353/1.69, allocations: 1.988 MB / 0.8594 GB, free: 83.55 MB / 0.5138 GB 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 (368): * Single equations (assignments): 363 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * 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): 3 systems {(1,1,100.0%), (1,1,100.0%), (8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005257/1.691, allocations: 258.7 kB / 0.8597 GB, free: 83.3 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.01025/1.701, allocations: 8.076 MB / 0.8676 GB, free: 75.17 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 5.881e-06/1.701, allocations: 0 / 0.8676 GB, free: 75.17 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.004678/1.706, allocations: 3.543 MB / 0.871 GB, free: 71.55 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006052/1.712, allocations: 1.31 MB / 0.8723 GB, free: 70.26 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03312/1.745, allocations: 20.74 MB / 0.8926 GB, free: 49.5 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01314/1.758, allocations: 7.59 MB / 0.9 GB, free: 41.86 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.006825/1.765, allocations: 2.359 MB / 0.9023 GB, free: 39.49 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001348/1.766, allocations: 435.3 kB / 0.9027 GB, free: 39.07 MB / 0.5138 GB Notification: Performance of SimCode: time 7.01e-07/1.766, allocations: 0 / 0.9027 GB, free: 39.07 MB / 0.5138 GB Notification: Performance of Templates: time 0.3036/2.07, allocations: 73.92 MB / 0.9749 GB, free: 141.3 MB / 0.5138 GB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1)