Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.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.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.001155/0.001155, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001236/0.001237, allocations: 195.7 kB / 16.25 MB, free: 6.621 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.323/1.323, allocations: 205.1 MB / 222.1 MB, free: 4.688 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.001215/0.001215, allocations: 52.3 kB / 278.2 MB, free: 12.65 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1975/0.1987, allocations: 46.63 MB / 324.9 MB, free: 2.062 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.03842/0.2372, allocations: 40.98 MB / 365.9 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02328/0.2605, allocations: 10.92 MB / 376.8 MB, free: 120 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00799/0.2685, allocations: 259.1 kB / 377 MB, free: 15.86 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02027/0.2888, allocations: 8.253 MB / 385.3 MB, free: 7.574 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01371/0.3026, allocations: 3.421 MB / 388.7 MB, free: 4.137 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0078/0.3104, allocations: 2.261 MB / 391 MB, free: 1.871 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01737/0.3278, allocations: 13.88 MB / 404.8 MB, free: 3.938 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04289/0.3707, allocations: 29.12 MB / 434 MB, free: 6.66 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009841/0.3806, allocations: 7.202 MB / 441.2 MB, free: 15.44 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01132/0.3919, allocations: 8.315 MB / 449.5 MB, free: 7.098 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004574/0.3965, allocations: 2.027 MB / 451.5 MB, free: 5.07 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006338/0.4029, allocations: 2.429 MB / 453.9 MB, free: 2.641 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.294/0.6969, allocations: 4.24 MB / 458.2 MB, free: 42.97 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01528/0.7122, allocations: 8.046 MB / 466.2 MB, free: 42.45 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02441/0.7366, allocations: 26.8 MB / 493 MB, free: 34.17 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.129e-06/0.7367, allocations: 1.969 kB / 493 MB, free: 34.17 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.7367, allocations: 0 / 493 MB, free: 34.17 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0006144/0.7373, allocations: 0 / 493 MB, free: 34.17 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: 3597 * Number of variables: 3597 Notification: Performance of Generate backend data structure: time 0.04097/0.7783, allocations: 16.06 MB / 0.4972 GB, free: 24.03 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.152e-05/0.7783, allocations: 7.781 kB / 0.4972 GB, free: 24.03 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04738/0.8257, allocations: 9.178 MB / 0.5061 GB, free: 19.65 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01512/0.8409, allocations: 7.659 MB / 0.5136 GB, free: 12.31 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008828/0.8418, allocations: 0.9695 MB / 0.5145 GB, free: 11.36 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005968/0.8478, allocations: 1.282 MB / 0.5158 GB, free: 10.09 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05031/0.8981, allocations: 20.52 MB / 0.5358 GB, free: 5.5 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005971/0.8987, allocations: 19.81 kB / 0.5359 GB, free: 5.48 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004315/0.9031, allocations: 0.5299 MB / 0.5364 GB, free: 4.965 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007076/0.9038, allocations: 0.7455 MB / 0.5371 GB, free: 4.219 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04421/0.948, allocations: 19.24 MB / 0.5559 GB, free: 0.9766 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3046/1.253, allocations: 65.03 MB / 0.6194 GB, free: 151.3 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03316/1.286, allocations: 57.28 MB / 0.6753 GB, free: 98.81 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00613/1.292, allocations: 4.198 MB / 0.6794 GB, free: 98.73 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01724/1.309, allocations: 11.68 MB / 0.6909 GB, free: 97.66 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.14e-05/1.309, allocations: 71.81 kB / 0.6909 GB, free: 97.62 MB / 478.1 MB Notification: Performance of pre-optimization done (n=361): time 5.26e-06/1.309, allocations: 0 / 0.6909 GB, free: 97.62 MB / 478.1 MB Notification: Performance of matching and sorting (n=403): time 0.03145/1.341, allocations: 17.87 MB / 0.7084 GB, free: 91.29 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.923e-05/1.341, allocations: 97.3 kB / 0.7085 GB, free: 91.22 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006953/1.348, allocations: 5.684 MB / 0.714 GB, free: 89.14 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004339/1.348, allocations: 92.67 kB / 0.7141 GB, free: 89.06 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002596/1.351, allocations: 6.054 MB / 0.72 GB, free: 84.5 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001002/1.352, allocations: 1.413 MB / 0.7214 GB, free: 83.43 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001922/1.354, allocations: 1.547 MB / 0.7229 GB, free: 82.67 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 4.159e-05/1.354, allocations: 301.1 kB / 0.7232 GB, free: 82.37 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003766/1.358, allocations: 3.146 MB / 0.7263 GB, free: 81.02 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004858/1.363, allocations: 6.888 MB / 0.733 GB, free: 72.77 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009442/1.372, allocations: 10.82 MB / 0.7436 GB, free: 60.12 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.007e-05/1.372, allocations: 36 kB / 0.7436 GB, free: 60.08 MB / 478.1 MB Notification: Performance of matching and sorting (n=1007) (initialization): time 0.01399/1.386, allocations: 11.03 MB / 0.7544 GB, free: 48.98 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.088e-05/1.386, allocations: 63.91 kB / 0.7544 GB, free: 48.92 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001235/1.386, allocations: 132 kB / 0.7546 GB, free: 48.79 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002119/1.388, allocations: 0.98 MB / 0.7555 GB, free: 47.8 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005172/1.394, allocations: 1.856 MB / 0.7573 GB, free: 45.94 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009011/1.403, allocations: 10.25 MB / 0.7673 GB, free: 35.27 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006035/1.409, allocations: 459.2 kB / 0.7678 GB, free: 34.82 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00117/1.41, allocations: 432 kB / 0.7682 GB, free: 34.4 MB / 478.1 MB 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.008272/1.418, allocations: 4.508 MB / 0.7726 GB, free: 29.88 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001609/1.42, allocations: 0.575 MB / 0.7731 GB, free: 29.29 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01089/1.431, allocations: 6.704 MB / 0.7797 GB, free: 22.54 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.201e-05/1.431, allocations: 47.94 kB / 0.7797 GB, free: 22.5 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.097e-05/1.431, allocations: 8 kB / 0.7797 GB, free: 22.49 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.528e-05/1.431, allocations: 23.86 kB / 0.7798 GB, free: 22.46 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02768/1.459, allocations: 16.49 MB / 0.7959 GB, free: 5.93 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.196e-05/1.459, allocations: 4 kB / 0.7959 GB, free: 5.926 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002997/1.462, allocations: 0.784 MB / 0.7966 GB, free: 5.141 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001895/1.463, allocations: 0.8043 MB / 0.7974 GB, free: 4.32 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002573/1.464, allocations: 83.97 kB / 0.7975 GB, free: 4.238 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1856/1.649, allocations: 9.334 MB / 0.8066 GB, free: 148.5 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-06/1.649, allocations: 7.875 kB / 0.8066 GB, free: 148.5 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01399/1.663, allocations: 9.824 MB / 0.8162 GB, free: 148 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002309/1.666, allocations: 1.115 MB / 0.8173 GB, free: 147.9 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007048/1.666, allocations: 80.81 kB / 0.8174 GB, free: 147.9 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002375/1.669, allocations: 228.4 kB / 0.8176 GB, free: 147.9 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005773/1.669, allocations: 280.4 kB / 0.8179 GB, free: 147.9 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002562/1.67, allocations: 116.2 kB / 0.818 GB, free: 147.9 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005372/1.675, allocations: 3.753 MB / 0.8217 GB, free: 147.1 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.31e-07/1.675, allocations: 0 / 0.8217 GB, free: 147.1 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.007082/1.682, allocations: 2.042 MB / 0.8236 GB, free: 146.9 MB / 478.1 MB 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.0006512/1.683, allocations: 258.2 kB / 0.8239 GB, free: 146.7 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.03008/1.713, allocations: 13.87 MB / 0.8374 GB, free: 143.3 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.201e-05/1.713, allocations: 3.938 kB / 0.8374 GB, free: 143.3 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005423/1.718, allocations: 3.621 MB / 0.841 GB, free: 141.5 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007846/1.726, allocations: 1.413 MB / 0.8424 GB, free: 140.6 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03614/1.762, allocations: 26.9 MB / 0.8686 GB, free: 115.7 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008479/1.771, allocations: 7.693 MB / 0.8761 GB, free: 109.8 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.006712/1.778, allocations: 2.399 MB / 0.8785 GB, free: 108.2 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001231/1.779, allocations: 454.1 kB / 0.8789 GB, free: 107.8 MB / 478.1 MB Notification: Performance of SimCode: time 7.71e-07/1.779, allocations: 0 / 0.8789 GB, free: 107.8 MB / 478.1 MB Notification: Performance of Templates: time 0.1183/1.897, allocations: 82.35 MB / 0.9593 GB, free: 27.68 MB / 478.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1)