Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.001077/0.001077, allocations: 105.3 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.001116/0.001117, allocations: 195 kB / 18 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.379/1.379, allocations: 205.1 MB / 223.9 MB, free: 12.25 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.001364/0.001364, allocations: 51.94 kB / 327.9 MB, free: 3.277 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09812/0.0995, allocations: 46.61 MB / 374.5 MB, free: 4.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.2229/0.3224, allocations: 15.11 MB / 389.6 MB, free: 4.496 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01163/0.3341, allocations: 5.124 MB / 394.7 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004832/0.339, allocations: 84.91 kB / 394.8 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004123/0.3432, allocations: 1.062 MB / 395.9 MB, free: 372 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005946/0.3492, allocations: 1.258 MB / 397.1 MB, free: 15.53 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003151/0.3523, allocations: 0.9011 MB / 398 MB, free: 14.96 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007967/0.3603, allocations: 3.624 MB / 401.7 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00481/0.3652, allocations: 3.263 MB / 404.9 MB, free: 11.67 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003803/0.369, allocations: 1.727 MB / 406.7 MB, free: 10.8 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005103/0.3741, allocations: 2.046 MB / 408.7 MB, free: 9.797 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001199/0.3754, allocations: 478.3 kB / 409.2 MB, free: 9.797 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002777/0.3782, allocations: 0.683 MB / 409.8 MB, free: 9.719 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0012/0.3794, allocations: 1.142 MB / 411 MB, free: 8.875 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003132/0.3825, allocations: 2.037 MB / 413 MB, free: 7.383 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01113/0.3937, allocations: 6.259 MB / 419.3 MB, free: 2.664 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.701e-06/0.3937, allocations: 1.375 kB / 419.3 MB, free: 2.664 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.548e-06/0.3937, allocations: 0 / 419.3 MB, free: 2.664 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001961/0.394, allocations: 7.938 kB / 419.3 MB, free: 2.656 MB / 334.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.01925/0.4132, allocations: 4.23 MB / 423.5 MB, free: 14.51 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.826e-05/0.4133, allocations: 15.89 kB / 423.5 MB, free: 14.49 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005171/0.4185, allocations: 0.6095 MB / 424.1 MB, free: 13.88 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007751/0.4263, allocations: 2.136 MB / 426.3 MB, free: 11.69 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000294/0.4266, allocations: 242.6 kB / 426.5 MB, free: 11.45 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001067/0.4277, allocations: 312.3 kB / 426.8 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01299/0.4407, allocations: 4.043 MB / 430.9 MB, free: 7.039 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001204/0.4409, allocations: 4 kB / 430.9 MB, free: 7.035 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004199/0.4413, allocations: 128 kB / 431 MB, free: 6.91 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002082/0.4415, allocations: 150.2 kB / 431.1 MB, free: 6.762 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009652/0.4512, allocations: 3.374 MB / 434.5 MB, free: 3.379 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03359/0.4848, allocations: 13.18 MB / 447.7 MB, free: 5.758 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00623/0.4911, allocations: 3.951 MB / 451.6 MB, free: 1.305 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002357/0.4935, allocations: 0.9916 MB / 452.6 MB, free: 324 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007809/0.5014, allocations: 2.649 MB / 455.3 MB, free: 13.57 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.831e-05/0.5015, allocations: 47.5 kB / 455.3 MB, free: 13.52 MB / 382.1 MB Notification: Performance of pre-optimization done (n=108): time 4.268e-06/0.5015, allocations: 4 kB / 455.3 MB, free: 13.52 MB / 382.1 MB Notification: Performance of matching and sorting (n=142): time 0.01815/0.5196, allocations: 5.998 MB / 461.3 MB, free: 7.422 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.002e-05/0.5197, allocations: 64.72 kB / 461.4 MB, free: 7.344 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004044/0.5238, allocations: 1.889 MB / 463.3 MB, free: 5.41 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001058/0.5239, allocations: 49.7 kB / 463.3 MB, free: 5.355 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001146/0.5251, allocations: 1.505 MB / 464.8 MB, free: 3.832 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004655/0.5256, allocations: 492.9 kB / 465.3 MB, free: 3.344 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006639/0.5262, allocations: 331.2 kB / 465.6 MB, free: 3.012 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001352/0.5264, allocations: 305.1 kB / 465.9 MB, free: 2.711 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00137/0.5278, allocations: 0.7691 MB / 466.7 MB, free: 1.941 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001714/0.5295, allocations: 1.375 MB / 468.1 MB, free: 304 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003207/0.5327, allocations: 2.316 MB / 470.4 MB, free: 13.71 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.411e-05/0.5328, allocations: 11.94 kB / 470.4 MB, free: 13.7 MB / 398.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004473/0.5372, allocations: 2.477 MB / 472.9 MB, free: 11.21 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.592e-05/0.5373, allocations: 12 kB / 472.9 MB, free: 11.2 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.472e-05/0.5373, allocations: 20 kB / 472.9 MB, free: 11.18 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004341/0.5378, allocations: 122.9 kB / 473 MB, free: 11.05 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001807/0.5396, allocations: 491.2 kB / 473.5 MB, free: 10.57 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00127/0.5409, allocations: 1.402 MB / 474.9 MB, free: 9.023 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002272/0.5432, allocations: 116 kB / 475 MB, free: 8.91 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000214/0.5434, allocations: 87.98 kB / 475.1 MB, free: 8.824 MB / 398.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.002348/0.5458, allocations: 0.985 MB / 476.1 MB, free: 7.828 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006294/0.5464, allocations: 201.5 kB / 476.3 MB, free: 7.629 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003613/0.55, allocations: 1.958 MB / 478.3 MB, free: 5.652 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.595e-05/0.55, allocations: 16 kB / 478.3 MB, free: 5.637 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.778e-06/0.5501, allocations: 4 kB / 478.3 MB, free: 5.633 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.525e-05/0.5501, allocations: 11.97 kB / 478.3 MB, free: 5.621 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01023/0.5603, allocations: 4.987 MB / 483.3 MB, free: 0.5234 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.105e-06/0.5604, allocations: 0 / 483.3 MB, free: 0.5234 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001394/0.5618, allocations: 323.8 kB / 483.6 MB, free: 212 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003101/0.5621, allocations: 90.52 kB / 483.7 MB, free: 112 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001168/0.5622, allocations: 32 kB / 483.7 MB, free: 80 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001005/0.5632, allocations: 1.375 MB / 485.1 MB, free: 14.56 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.636e-06/0.5633, allocations: 4 kB / 485.1 MB, free: 14.56 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004789/0.568, allocations: 3.09 MB / 488.2 MB, free: 11.41 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00144/0.5695, allocations: 454.5 kB / 488.6 MB, free: 10.95 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006219/0.5701, allocations: 24 kB / 488.7 MB, free: 10.92 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00137/0.5715, allocations: 79.91 kB / 488.7 MB, free: 10.84 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001888/0.5717, allocations: 89.19 kB / 488.8 MB, free: 10.76 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.333e-05/0.5718, allocations: 40 kB / 488.9 MB, free: 10.72 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002664/0.5745, allocations: 1.285 MB / 490.1 MB, free: 9.41 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.5745, allocations: 3.938 kB / 490.1 MB, free: 9.406 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002879/0.5774, allocations: 0.5352 MB / 490.7 MB, free: 8.871 MB / 414.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.0004107/0.5778, allocations: 159 kB / 490.8 MB, free: 8.703 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003686/0.5815, allocations: 2.224 MB / 493.1 MB, free: 6.426 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.744e-06/0.5815, allocations: 4 kB / 493.1 MB, free: 6.422 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001644/0.5832, allocations: 1.175 MB / 494.2 MB, free: 5.195 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003347/0.5865, allocations: 0.5226 MB / 494.8 MB, free: 4.672 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01177/0.5983, allocations: 5.57 MB / 0.4886 GB, free: 15.05 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003422/0.6018, allocations: 2.259 MB / 0.4908 GB, free: 12.75 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002401/0.6042, allocations: 0.5131 MB / 0.4913 GB, free: 12.24 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007758/0.605, allocations: 151.4 kB / 0.4915 GB, free: 12.09 MB / 430.1 MB Notification: Performance of SimCode: time 1.112e-06/0.6051, allocations: 0 / 0.4915 GB, free: 12.09 MB / 430.1 MB Notification: Performance of Templates: time 0.0564/0.6615, allocations: 26.87 MB / 0.5177 GB, free: 1.164 MB / 446.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe 2>&1)