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.001438/0.001438, allocations: 109.6 kB / 17.06 MB, free: 6.023 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.001693/0.001693, allocations: 191 kB / 18 MB, free: 5.105 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.444/1.444, allocations: 205.1 MB / 223.9 MB, free: 12.26 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.001273/0.001273, allocations: 52.41 kB / 327.9 MB, free: 3.297 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08735/0.08863, allocations: 46.62 MB / 374.5 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.2356/0.3242, allocations: 15.11 MB / 389.6 MB, free: 4.508 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01144/0.3357, allocations: 5.115 MB / 394.7 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003907/0.3398, allocations: 88.34 kB / 394.8 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003549/0.3433, allocations: 1.118 MB / 395.9 MB, free: 332 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005393/0.3488, allocations: 1.295 MB / 397.2 MB, free: 15.47 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002868/0.3516, allocations: 0.9149 MB / 398.1 MB, free: 14.89 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006175/0.3578, allocations: 3.622 MB / 401.8 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007017/0.3649, allocations: 3.252 MB / 405 MB, free: 11.61 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005285/0.3702, allocations: 1.732 MB / 406.7 MB, free: 10.74 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00551/0.3757, allocations: 2.046 MB / 408.8 MB, free: 9.734 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002382/0.3781, allocations: 480.1 kB / 409.3 MB, free: 9.734 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004512/0.3826, allocations: 0.6817 MB / 409.9 MB, free: 9.656 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002942/0.3856, allocations: 1.146 MB / 411.1 MB, free: 8.793 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006356/0.392, allocations: 2.038 MB / 413.1 MB, free: 7.297 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01094/0.4029, allocations: 6.246 MB / 419.4 MB, free: 2.594 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.403, allocations: 8.844 kB / 419.4 MB, free: 2.586 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.403, allocations: 0 / 419.4 MB, free: 2.586 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002004/0.4032, allocations: 0 / 419.4 MB, free: 2.586 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.01107/0.4143, allocations: 4.241 MB / 423.6 MB, free: 14.42 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.142e-05/0.4143, allocations: 11.89 kB / 423.6 MB, free: 14.41 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002659/0.417, allocations: 0.6212 MB / 424.3 MB, free: 13.78 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00395/0.421, allocations: 2.132 MB / 426.4 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000175/0.4212, allocations: 234.7 kB / 426.6 MB, free: 11.36 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005023/0.4217, allocations: 312.3 kB / 426.9 MB, free: 11.06 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006879/0.4286, allocations: 4.051 MB / 431 MB, free: 6.945 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.932e-05/0.4287, allocations: 7.938 kB / 431 MB, free: 6.938 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002706/0.4289, allocations: 128 kB / 431.1 MB, free: 6.812 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001306/0.4291, allocations: 142.2 kB / 431.2 MB, free: 6.672 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00589/0.435, allocations: 3.374 MB / 434.6 MB, free: 3.289 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02147/0.4565, allocations: 13.18 MB / 447.8 MB, free: 5.664 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00427/0.4608, allocations: 3.958 MB / 451.8 MB, free: 1.203 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001538/0.4623, allocations: 0.9877 MB / 452.7 MB, free: 224 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004736/0.4671, allocations: 2.646 MB / 455.4 MB, free: 13.48 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.847e-05/0.4671, allocations: 55.44 kB / 455.4 MB, free: 13.42 MB / 382.1 MB Notification: Performance of pre-optimization done (n=108): time 2.645e-06/0.4672, allocations: 0 / 455.4 MB, free: 13.42 MB / 382.1 MB Notification: Performance of matching and sorting (n=142): time 0.01198/0.4791, allocations: 5.994 MB / 461.4 MB, free: 7.328 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.1e-05/0.4792, allocations: 72.7 kB / 461.5 MB, free: 7.242 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002861/0.4821, allocations: 1.889 MB / 463.4 MB, free: 5.309 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001123/0.4822, allocations: 49.7 kB / 463.4 MB, free: 5.254 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009626/0.4832, allocations: 1.505 MB / 464.9 MB, free: 3.73 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000383/0.4836, allocations: 485 kB / 465.4 MB, free: 3.25 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004826/0.4841, allocations: 335.2 kB / 465.8 MB, free: 2.914 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.33e-05/0.4842, allocations: 301.1 kB / 466 MB, free: 2.617 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001182/0.4854, allocations: 0.7691 MB / 466.8 MB, free: 1.848 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001553/0.4869, allocations: 1.375 MB / 468.2 MB, free: 208 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002939/0.4899, allocations: 2.316 MB / 470.5 MB, free: 13.62 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.116e-05/0.4899, allocations: 7.938 kB / 470.5 MB, free: 13.61 MB / 398.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004038/0.494, allocations: 2.469 MB / 473 MB, free: 11.12 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.39e-05/0.494, allocations: 12 kB / 473 MB, free: 11.11 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.997e-05/0.494, allocations: 20 kB / 473 MB, free: 11.09 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004232/0.4945, allocations: 134.9 kB / 473.1 MB, free: 10.95 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001802/0.4963, allocations: 487.2 kB / 473.6 MB, free: 10.48 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001154/0.4975, allocations: 1.402 MB / 475 MB, free: 8.934 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001657/0.4991, allocations: 112 kB / 475.1 MB, free: 8.824 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001691/0.4993, allocations: 87.98 kB / 475.2 MB, free: 8.738 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.001857/0.5012, allocations: 0.9928 MB / 476.2 MB, free: 7.734 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004769/0.5017, allocations: 205.4 kB / 476.4 MB, free: 7.531 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003549/0.5052, allocations: 1.961 MB / 478.4 MB, free: 5.551 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.218e-05/0.5052, allocations: 12 kB / 478.4 MB, free: 5.539 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.094e-06/0.5053, allocations: 4 kB / 478.4 MB, free: 5.535 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.486e-05/0.5053, allocations: 11.97 kB / 478.4 MB, free: 5.523 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008997/0.5143, allocations: 4.983 MB / 483.4 MB, free: 440 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.985e-06/0.5143, allocations: 4 kB / 483.4 MB, free: 436 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001362/0.5157, allocations: 319.8 kB / 483.7 MB, free: 116 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003053/0.516, allocations: 98.52 kB / 483.8 MB, free: 8 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001242/0.5161, allocations: 24.08 kB / 483.8 MB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009991/0.5171, allocations: 1.382 MB / 485.2 MB, free: 14.46 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.5172, allocations: 0 / 485.2 MB, free: 14.46 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004673/0.5218, allocations: 3.086 MB / 488.3 MB, free: 11.32 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001243/0.5231, allocations: 454.5 kB / 488.7 MB, free: 10.85 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005565/0.5237, allocations: 28 kB / 488.8 MB, free: 10.82 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001325/0.525, allocations: 75.91 kB / 488.8 MB, free: 10.75 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001962/0.5252, allocations: 97.19 kB / 488.9 MB, free: 10.66 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.865e-05/0.5253, allocations: 36 kB / 489 MB, free: 10.62 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002474/0.5278, allocations: 1.289 MB / 490.3 MB, free: 9.309 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.5278, allocations: 0 / 490.3 MB, free: 9.309 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002304/0.5301, allocations: 0.5312 MB / 490.8 MB, free: 8.777 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.0003752/0.5305, allocations: 162.9 kB / 490.9 MB, free: 8.605 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003516/0.534, allocations: 2.223 MB / 493.2 MB, free: 6.328 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.533e-06/0.534, allocations: 0 / 493.2 MB, free: 6.328 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001618/0.5357, allocations: 1.179 MB / 494.3 MB, free: 5.098 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002741/0.5384, allocations: 0.5121 MB / 494.9 MB, free: 4.582 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01145/0.5499, allocations: 5.57 MB / 0.4887 GB, free: 14.96 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002466/0.5524, allocations: 2.255 MB / 0.4909 GB, free: 12.67 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001647/0.554, allocations: 0.517 MB / 0.4914 GB, free: 12.15 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00041/0.5545, allocations: 151.4 kB / 0.4915 GB, free: 12 MB / 430.1 MB Notification: Performance of SimCode: time 7.02e-07/0.5545, allocations: 0 / 0.4915 GB, free: 12 MB / 430.1 MB Notification: Performance of Templates: time 0.04992/0.6044, allocations: 26.57 MB / 0.5175 GB, free: 1.383 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)