Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.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.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009942/0.009942, allocations: 97.94 kB / 15.73 MB, free: 6.008 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.00184/0.00184, allocations: 190.4 kB / 16.67 MB, free: 5.934 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.533/1.533, allocations: 205.1 MB / 222.6 MB, free: 4.512 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.001117/0.001117, allocations: 50.09 kB / 326.6 MB, free: 14.27 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08587/0.087, allocations: 46.62 MB / 373.2 MB, free: 1.289 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.042/0.1291, allocations: 41.75 MB / 415 MB, free: 7.355 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02535/0.1544, allocations: 11.08 MB / 426 MB, free: 12.24 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008202/0.1627, allocations: 271.1 kB / 426.3 MB, free: 11.97 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02182/0.1846, allocations: 8.877 MB / 435.2 MB, free: 3.055 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01301/0.1976, allocations: 3.877 MB / 439.1 MB, free: 15.16 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007259/0.2049, allocations: 2.467 MB / 441.5 MB, free: 12.68 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2178/0.4227, allocations: 13.88 MB / 455.4 MB, free: 6.34 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04751/0.4703, allocations: 25.8 MB / 481.2 MB, free: 2.777 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01581/0.4862, allocations: 7.227 MB / 488.4 MB, free: 0.7383 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01926/0.5055, allocations: 8.268 MB / 496.7 MB, free: 13.06 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.008425/0.514, allocations: 2.034 MB / 498.7 MB, free: 12.38 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01179/0.5258, allocations: 2.417 MB / 0.4894 GB, free: 10.05 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.008716/0.5346, allocations: 4.243 MB / 0.4936 GB, free: 6.496 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01924/0.5539, allocations: 8.043 MB / 0.5014 GB, free: 14.95 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03976/0.5937, allocations: 27.07 MB / 0.5278 GB, free: 6.621 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.334e-06/0.5937, allocations: 0 / 0.5278 GB, free: 6.621 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.685e-06/0.5938, allocations: 0 / 0.5278 GB, free: 6.621 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0007418/0.5945, allocations: 3.562 kB / 0.5278 GB, free: 6.621 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3597 * Number of variables: 3597 Notification: Performance of Generate backend data structure: time 0.05402/0.6485, allocations: 16.33 MB / 0.5438 GB, free: 6.27 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.306e-05/0.6486, allocations: 8.031 kB / 0.5438 GB, free: 6.262 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05247/0.7011, allocations: 9.256 MB / 0.5528 GB, free: 13.1 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02289/0.724, allocations: 7.745 MB / 0.5604 GB, free: 5.68 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009782/0.725, allocations: 0.9679 MB / 0.5614 GB, free: 4.727 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005444/0.7305, allocations: 1.278 MB / 0.5626 GB, free: 3.461 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04838/0.7789, allocations: 20.51 MB / 0.5826 GB, free: 14.89 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004608/0.7794, allocations: 23.42 kB / 0.5827 GB, free: 14.87 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003858/0.7833, allocations: 0.5358 MB / 0.5832 GB, free: 14.35 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007962/0.7841, allocations: 0.7455 MB / 0.5839 GB, free: 13.61 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03964/0.8237, allocations: 19.24 MB / 0.6027 GB, free: 10.36 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5082/1.332, allocations: 64.5 MB / 0.6657 GB, free: 141.8 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03298/1.365, allocations: 57.27 MB / 0.7216 GB, free: 85.73 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006313/1.371, allocations: 4.17 MB / 0.7257 GB, free: 83.59 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02109/1.392, allocations: 11.67 MB / 0.7371 GB, free: 75.99 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.34e-05/1.393, allocations: 68.72 kB / 0.7372 GB, free: 75.93 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=361): time 6.482e-06/1.393, allocations: 0 / 0.7372 GB, free: 75.93 MB / 0.5138 GB Notification: Performance of matching and sorting (n=403): time 0.03501/1.428, allocations: 18.04 MB / 0.7548 GB, free: 65.33 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.961e-05/1.428, allocations: 94.58 kB / 0.7549 GB, free: 65.22 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01048/1.438, allocations: 5.691 MB / 0.7604 GB, free: 59.64 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0006366/1.439, allocations: 89.7 kB / 0.7605 GB, free: 59.55 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.00311/1.442, allocations: 6.272 MB / 0.7666 GB, free: 53.8 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001231/1.443, allocations: 1.486 MB / 0.7681 GB, free: 52.33 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002967/1.446, allocations: 1.553 MB / 0.7696 GB, free: 50.77 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 4.738e-05/1.446, allocations: 305.1 kB / 0.7699 GB, free: 50.47 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004222/1.45, allocations: 3.142 MB / 0.773 GB, free: 47.32 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005713/1.456, allocations: 6.892 MB / 0.7797 GB, free: 38.64 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009724/1.466, allocations: 10.81 MB / 0.7902 GB, free: 25.99 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.902e-05/1.466, allocations: 36 kB / 0.7903 GB, free: 25.96 MB / 0.5138 GB Notification: Performance of matching and sorting (n=1007) (initialization): time 0.01578/1.482, allocations: 11.07 MB / 0.8011 GB, free: 14.83 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 9.39e-05/1.482, allocations: 60 kB / 0.8011 GB, free: 14.77 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00018/1.482, allocations: 128 kB / 0.8013 GB, free: 14.65 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002203/1.484, allocations: 0.9763 MB / 0.8022 GB, free: 13.66 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005577/1.49, allocations: 1.86 MB / 0.804 GB, free: 11.79 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009862/1.5, allocations: 10.25 MB / 0.814 GB, free: 1.125 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006606/1.506, allocations: 459.5 kB / 0.8145 GB, free: 0.6758 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001394/1.508, allocations: 424 kB / 0.8149 GB, free: 268 kB / 0.5138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 583 * 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 (958): * Single equations (assignments): 953 * 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.01035/1.518, allocations: 4.532 MB / 0.8193 GB, free: 11.72 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002031/1.52, allocations: 0.5938 MB / 0.8199 GB, free: 11.12 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01414/1.534, allocations: 6.701 MB / 0.8264 GB, free: 4.375 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.31e-05/1.535, allocations: 40 kB / 0.8265 GB, free: 4.336 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.149e-05/1.535, allocations: 8 kB / 0.8265 GB, free: 4.328 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.27e-05/1.535, allocations: 23.86 kB / 0.8265 GB, free: 4.305 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2605/1.795, allocations: 16.46 MB / 0.8426 GB, free: 174.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.879e-05/1.795, allocations: 3.812 kB / 0.8426 GB, free: 174.3 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003296/1.799, allocations: 0.7793 MB / 0.8433 GB, free: 174.3 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002218/1.801, allocations: 0.797 MB / 0.8441 GB, free: 174.1 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003223/1.801, allocations: 93.88 kB / 0.8442 GB, free: 174 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009173/1.81, allocations: 9.342 MB / 0.8533 GB, free: 167.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.589e-06/1.81, allocations: 3.969 kB / 0.8533 GB, free: 167.5 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0131/1.823, allocations: 9.862 MB / 0.863 GB, free: 163.4 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002926/1.826, allocations: 1.155 MB / 0.8641 GB, free: 163 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007369/1.827, allocations: 71.66 kB / 0.8642 GB, free: 163 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002484/1.83, allocations: 226.6 kB / 0.8644 GB, free: 162.9 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004946/1.83, allocations: 278.3 kB / 0.8646 GB, free: 162.9 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002375/1.83, allocations: 121 kB / 0.8648 GB, free: 162.8 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005166/1.836, allocations: 3.746 MB / 0.8684 GB, free: 161.5 MB / 0.5294 GB Notification: Performance of sort global known variables: time 4.01e-07/1.836, allocations: 0 / 0.8684 GB, free: 161.5 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007429/1.843, allocations: 2.044 MB / 0.8704 GB, free: 161.3 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi,smpmQS.inertiaRotor.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 (384): * Single equations (assignments): 379 * 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.0007595/1.844, allocations: 261.9 kB / 0.8707 GB, free: 161.1 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01069/1.854, allocations: 8.249 MB / 0.8787 GB, free: 157.8 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 5.751e-06/1.854, allocations: 0 / 0.8787 GB, free: 157.8 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004642/1.859, allocations: 3.619 MB / 0.8823 GB, free: 155.9 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006323/1.865, allocations: 1.433 MB / 0.8837 GB, free: 154.8 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03617/1.902, allocations: 21.59 MB / 0.9047 GB, free: 134.8 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01141/1.913, allocations: 7.689 MB / 0.9123 GB, free: 127 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.00706/1.92, allocations: 2.404 MB / 0.9146 GB, free: 124.6 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001829/1.922, allocations: 455.3 kB / 0.915 GB, free: 124.2 MB / 0.5294 GB Notification: Performance of SimCode: time 1.243e-06/1.922, allocations: 0 / 0.915 GB, free: 124.2 MB / 0.5294 GB Notification: Performance of Templates: time 0.1181/2.04, allocations: 77.47 MB / 0.9907 GB, free: 46.73 MB / 0.5294 GB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1)